Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: Convert VDR/DVB Recording with FFMPEG
Axel Gruber wrote:
>
> So - if anyone have a working-Way to make a REAL-MPEG1 Movie out of a DVB/VDR-File
> please mail !
>
> I now have tryed this Programms:
>
> transcode
> mplex - for multiplexing
> several demultiplexing-Tools from /DVB/mpegtools
> jmpeg package
> bbmpeg-package
> mplayer-package
>
> Iīm sure there is a way - but i donīt find it :-(
>
The most helpful site I found so far is Peter Hofmanns SVCD Howto:
http://www.pxh.de/fs/svcd/
I do the following steps for mpeg1/vcd or mpeg2/svcd conversion
(mini-mini-howto):
Step 1: get the video-audio-delay with mplex from the dvb driver package
> mplex -o /dev/null 00X.vdr
the intersting information is in the line 'VPTS - APTS = XXXms' - keep
this for a later step. the output isn't used hence /dev/null. i often
get better results with older mplex versions - if you don't get anything
meaningful assume 300ms :-)
Step 2: get the resolution of your source video
> streamtype 00X.vdr
should be 720x576 or 480x576 (PAL!) - keep this info for the next step
Step 3: trancode the videostream using dvb- and mjpeg-tools (version
1.4.1 works fine)
for mpeg2/svcd 720x576 input (use -q to change quality/size of output)
> pes2vid_es 00X.vdr | \
mpeg2dec -o YUVs | \
mpeg2enc -o vid.m2v -q 9 -b 2300 -v 0 -m 2 -F 3 -V 400 -g 6 -G 18
for mpeg2/svcd 480x576 input
> pes2vid_es 00X.vdr | \
mpeg2dec -o YUV | \
mpeg2enc -o vid.m2v -q 9 -b 2300 -v 0 -m 2 -F 3 -V 400 -g 6 -G 18
for mpeg1/vcd 720x576 input
> pes2vid_es 00X.vdr | \
mpeg2dec -o YUVh | \
mpeg2enc -o vid.m1v -m 1 -s
Step 4: transcode the audiostream (48khz -> 44.1khz)
> pes2aud_es 00X.vdr | \
mpg123 -q -s - | \
sox -c 2 -s -r 48000 -w -t raw - -r 44100 -t wav - resample | \
toolame -e -p 2 -b 224 - aud.mp2
Step 5: remultiplex the streams (XXX see step 1, mplex from dvb driver
tools))
for mpeg2/svcd
> mplex -t SVCD -v XXX -i ES_STREAM -o svcd.mpg aud.mp2 vid.m2v
for mpeg1/vcd
> mplex -t VCD -v XXX -i ES_STREAM -o vcd.mpg aud.mp2 vid.m1v
the SVCDs play well on most newer h/w players - VCDs get sometimes out
of audio-video-sync (haven't further examined this since i prefer
SVCDs)
HTH
Thomas
Home |
Main Index |
Thread Index