atzplzw
15th June 2008, 10:56
Hi!
I want to convert a MKV Mpeg4/H264 movie trailer to Mpeg2 with ffmpeg, so that it plays with the same good quality on my Philips LCD which sadly isn't able to handle Mpeg4. The LCD is connected to the network and is able to play Mpeg2 through Twonky Media Server. Mainly this is for fun and testing only.
So I guessed that ffmpeg would be the best solution as it understands all the formats I need. I got the compiled version from from http://arrozcru.no-ip.org/ffmpeg_builds/
FFmpeg version SVN-r13712, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-memalign-hack --enable-avisynth --enable-libxvid --ena
ble-libx264 --enable-libgsm --enable-libfaac --enable-libfaad --enable-liba52 --
enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-pthreads --enab
le-swscale --enable-gpl
libavutil version: 49.7.0
libavcodec version: 51.57.2
libavformat version: 52.14.0
libavdevice version: 52.0.0
built on Jun 8 2008 21:33:14, gcc: 4.2.3
First I want the video to work smoothly before I'm going to convert the audio.
So I got some info on the movie:
ffmpeg.exe -i movie.mkv
Input #0, matroska, from 'movie.mkv':
Duration: 00:02:26.56, start: 0.000000, bitrate: N/A
Stream #0.0: Audio: liba52, 48000 Hz, 5:1
Stream #0.1(eng): Video: h264, yuv420p, 1280x544 [PAR 1:1 DAR 40:17], 23.98
tb(r)
So I guessed because I wanted the same quality this would work:
ffmpeg.exe -i movie.mkv -vcodec mpeg2video -an -sameq movie.mpg
While the video was ok sadly timestamps where completely wrong and no forward or rewind was possible!
If I don't use -sameq then the video is broken and unwatchable.
Any hints how to achieve a correct Mpeg2 conversion?
Thanks!
I want to convert a MKV Mpeg4/H264 movie trailer to Mpeg2 with ffmpeg, so that it plays with the same good quality on my Philips LCD which sadly isn't able to handle Mpeg4. The LCD is connected to the network and is able to play Mpeg2 through Twonky Media Server. Mainly this is for fun and testing only.
So I guessed that ffmpeg would be the best solution as it understands all the formats I need. I got the compiled version from from http://arrozcru.no-ip.org/ffmpeg_builds/
FFmpeg version SVN-r13712, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-memalign-hack --enable-avisynth --enable-libxvid --ena
ble-libx264 --enable-libgsm --enable-libfaac --enable-libfaad --enable-liba52 --
enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-pthreads --enab
le-swscale --enable-gpl
libavutil version: 49.7.0
libavcodec version: 51.57.2
libavformat version: 52.14.0
libavdevice version: 52.0.0
built on Jun 8 2008 21:33:14, gcc: 4.2.3
First I want the video to work smoothly before I'm going to convert the audio.
So I got some info on the movie:
ffmpeg.exe -i movie.mkv
Input #0, matroska, from 'movie.mkv':
Duration: 00:02:26.56, start: 0.000000, bitrate: N/A
Stream #0.0: Audio: liba52, 48000 Hz, 5:1
Stream #0.1(eng): Video: h264, yuv420p, 1280x544 [PAR 1:1 DAR 40:17], 23.98
tb(r)
So I guessed because I wanted the same quality this would work:
ffmpeg.exe -i movie.mkv -vcodec mpeg2video -an -sameq movie.mpg
While the video was ok sadly timestamps where completely wrong and no forward or rewind was possible!
If I don't use -sameq then the video is broken and unwatchable.
Any hints how to achieve a correct Mpeg2 conversion?
Thanks!