Page 1 of 1

Transcoding mpeg4 video to mpeg2 video

Posted: 25 Jan 2010 10:55
by michaeldjcox
I have noticed that if I stream a live mpeg4 video stream and transcode to mpeg2 video.

Code: Select all

vlc %url% --sout="#transcode{vcodec=mp2v,vb=4000,fps=30,scale=1,width=720,height=576,acodec=mpga,ab=128,channels=2}:duplicate{dst=std{access=file,mux=ts,dst='test.mpg'}}" --sout-transcode-audio-sync
If the streaming is finished the mpeg file is playable but if the mpeg file is still being created I cannot start playing it.

For other types of input stream this is possible.

Does anyone know if this is a known limitation of mpeg 4 video or more likely to be something wrong with my settings.

Thanks,

Michael

Re: Transcoding mpeg4 video to mpeg2 video

Posted: 25 Jan 2010 17:16
by RĂ©mi Denis-Courmont
Yeah. You should use Transport Streams rather than MP4 if you want to support progressive playback.

Re: Transcoding mpeg4 video to mpeg2 video

Posted: 25 Jan 2010 18:35
by michaeldjcox
The mp4 is from an ip camera.

So I guess unless the camera comes with options its not going to work.

Or can I process mp4 into some intermediate format and then to mpeg-2 TS?