Transcoding mpeg4 video to mpeg2 video

About encoding, codec settings, muxers and filter usage
michaeldjcox
Blank Cone
Blank Cone
Posts: 61
Joined: 08 Dec 2008 13:06

Transcoding mpeg4 video to mpeg2 video

Postby michaeldjcox » 25 Jan 2010 10:55

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Transcoding mpeg4 video to mpeg2 video

Postby Rémi Denis-Courmont » 25 Jan 2010 17:16

Yeah. You should use Transport Streams rather than MP4 if you want to support progressive playback.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

michaeldjcox
Blank Cone
Blank Cone
Posts: 61
Joined: 08 Dec 2008 13:06

Re: Transcoding mpeg4 video to mpeg2 video

Postby michaeldjcox » 25 Jan 2010 18:35

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?


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 8 guests