HollywoodTonight
Posts: 4
Joined: Wed Feb 22, 2017 9:58 pm

Video Streaming

Wed Mar 22, 2017 4:50 am

Hi,

I'm currently working on a project to live video stream from an usb camera to a web application.

I'm using ffmpeg encoder along with x264 on a raspberry pi to video stream on a web application built in NodeJS. The client side uses a JSMpeg decoder which from what i read is a MPEG-1 decoder.
Even though the streaming works perfectly fine since i was able to do the code bit for it, I do not understand how is it possible to encode the images using ffmpeg and decode them using JSMpeg. If any of you guys know how this is possible please explain. I am very interested into this subject and I would really appreciate your help.


Thank you!
Regards,
Alex

User avatar
topguy
Posts: 6527
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Video Streaming

Wed Mar 22, 2017 1:17 pm

"-vcodec mpeg1video -acodec mp2"

According to this link:
https://en.wikibooks.org/wiki/FFMPEG_An ... MPEG#MPEG1

Probably simplest to verify with a file first before moving on to streaming.

Return to “Other programming languages”