Hallo
JD wrote:
> mjpegtools-2.0.0-1.fc16.i686
>
> My question is if mpeg2enc is able to convert
> mp4 videos to mpeg2 dvd format. This is how I am invoking it:
>
> $ mpeg2enc  --no-constraints -o video_12.dvd  < $PWD/Video_12.mp4
>     INFO: [mpeg2enc] SETTING EXTENDED MMX for MOTION!
>     INFO: [mpeg2enc] SETTING SSE and MMX for TRANSFORM!
>     INFO: [mpeg2enc] SETTING EXTENDED MMX for PREDICTION!
> **ERROR: [mpeg2enc] Could not read YUV4MPEG2 header: bad header magic!
>
> $ file Video_12.mp4
> Video_12.mp4: ISO Media, MPEG v4 system, version 2
>
> The mp4 video plays just fine using ffplay, mplayer, vlc, ...etc
> on Linux.

mpeg2enc cannot transcode this way.
You need some other program to generate the yuv4mpeg format, mplayer for 
example can do this for you. In the mjpegtools wiki is a short howto: 
http://sourceforge.net/apps/mediawiki/mjpeg/index.php?title=Creating_videos_from_other_sources

 > mkfifo stream.yuv
 > cat stream.yuv | mpeg2enc -f 8 -o video.m2v &
 > mplayer -nosound -noframedrop -vo yuv4mpeg yourfile.mp4

The thing slightly missing is the audio decoding/ encoding:
 > mplayer -vo null -ao pcm:fast Video_12.mp4
 > cat audiodump.wav | mp2enc -r 48000 -o audio.mp2

and than mplex it together with:
 > mplex -f 8 audio.mp2 video.m2v -o reencoded.mpg

the last step is running dvdauthor.

auf hoffentlich bald,

Berni the Chaos of Woodquarter

Email: shadowl...@utanet.at
www: http://www.lysator.liu.se/~gz/bernhard

------------------------------------------------------------------------------
How fast is your code?
3 out of 4 devs don\\\'t know how their code performs in production.
Find out how slow your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219672;13503038;z?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to