[vdr] how to convert vdr to divx?

Craig Sanders cas at taz.net.au
Wed Mar 23 07:19:59 CET 2005


thanks, that points me in the right direction at least.

On Wed, Mar 23, 2005 at 07:14:58AM +0200, Jukka Tastula wrote:
> 1) configure mplayer with --enable-largefiles

ok.

> 2) don't ever cut the recordings with vdr

ok.

> 3) run the recording through vdrsync.pl -mpeg2

would love to do that, if it worked.

with vdrsync-snap050222.tgz & vdrsync-0.1.3PRE1.tgz, i got the following
error (same on both):

# vdrsync.pl /video/Star_Trek__Enterprise/2005-03-22.23.59.99.99.rec/ -mpeg2
Parameter validation not complete yet
Initialising and analysing the streams....
3009 Mbytes of 3009 read
 1547289 PES packets processed
Assuming final sync for stream c0, cause there is no new chunk_start
Modfied Target to /var/lib/video//vdrsync%d.mpg

Starting multiplexer
Error while running 'nice -n 19 /usr/bin/mplex  -V -f 3 -r 9800  -o /var/lib/video//vdrsync%d.mpg  /var/lib/video//vdrsync.mpv /var/lib/video//vdrsync.ac3 /var/lib/video//vdrsync0.mpa > /dev/null 2> /dev/null '
Housekeeping...
Trying to remove /tmp/268871111556671/

Finished processing /video/Star_Trek__Enterprise/2005-03-22.23.59.99.99.rec/ 
No need to finish DVD Image, since there is none
Last fork ended for vdrsync.pl 26887



with vdrsync-0.1.2.2.tgz, i got this:

# vdrsync.pl /video/Star_Trek__Enterprise/2005-03-22.23.59.99.99.rec/ -mpeg2 -o /video/TMP/
Got parameter /video/Star_Trek__Enterprise/2005-03-22.23.59.99.99.rec/
got a directory on the command line
trying to open /video/Star_Trek__Enterprise/2005-03-22.23.59.99.99.rec/
Got parameter -mpeg2
Got parameter -o
Initialising and analysing the streams....
  10 Mbytes of 0 read
Created new MPEG stream object for stream ea, master video stream

Created new MPEG stream object for stream bd 

Created new MPEG stream object for stream c0 
analysed the first 2000 packets...
Total Input Size is 3009230447
  30 Mbytes of 3009 readTimedrift bigger than 10 Seconds, killing stream bd
got the kill list bd
Stream bd was killed due to an error
2090 Mbytes of 3009 read/video/Star_Trek__Enterprise/2005-03-22.23.59.99.99.rec//002.vdr is the next file
3000 Mbytes of 3009 read
all Input files processed
EOF reached
3009 Mbytes of 3009 read
 1547289 PES packets processed
154833 frames written for stream c0 (3715.992 sec) 
92900 frames written for stream ea (3716 sec) 
Ignoring stream bd

audio stream c0 info (MPEG1_Layer_2):
Sample frequency:    48000
Bitrate:             256000
Mode:                joint_stereo
Frame length (bytes) 768
Frame length (ticks) 2160 (90000 / sec)


video stream ea info:
Frame length (ticks) 3600 (90000 / sec)
Aspect ratio         16:9
Horizontal size      720 
Vertical size        576 
Frames per Second    25 
Bitrate:             10000000


/video/TMP//eampv_c0mpa_remux.mpg as outputname
executeing nice -19 /usr/bin/tcmplex -i /video/TMP//ea.mpv -p /video/TMP//c0.mpa -m 2 -o /video/TMP//eampv_c0mpa_remux.mpg

INFO: using reference profile (MPEG2)
INFO: profile type is (PAL)

ERROR: File /video/TMP//ea.mpv is not a 11172-2 or 13818-2 Video stream.

Deleting temp files
/video/TMP//ea.mpv
/video/TMP//c0.mpa



analysing the file with '-i' shows that it has an ac3 stream, mp2 stream,
and a video stream.


# vdrsync.pl -i /video/Star_Trek__Enterprise/2005-03-22.23.59.99.99.rec/
Got parameter -i
Got parameter /video/Star_Trek__Enterprise/2005-03-22.23.59.99.99.rec/
got a directory on the command line
trying to open /video/Star_Trek__Enterprise/2005-03-22.23.59.99.99.rec/
Initialising and analysing the streams....
  10 Mbytes of 0 read
Created new MPEG stream object for stream ea, master video stream

Created new MPEG stream object for stream bd 

Created new MPEG stream object for stream c0 
analysed the first 2000 packets...
Total Input Size is 3009230447

audio stream bd info (AC3_audio):
Sample frequency:    48000
Bitrate:             192000
Mode:                2/0
Frame length (bytes) 768
Frame length (ticks) 2880 (90000 / sec)



audio stream c0 info (MPEG1_Layer_2):
Sample frequency:    48000
Bitrate:             256000
Mode:                joint_stereo
Frame length (bytes) 768
Frame length (ticks) 2160 (90000 / sec)


video stream ea info:
Frame length (ticks) 3600 (90000 / sec)
Aspect ratio         16:9
Horizontal size      720 
Vertical size        576 
Frames per Second    25 
Bitrate:             10000000





> 4) optionally use avidemux to cut (hint: the way to not get any artifacts 
> at cut points is to cut so that the last frame in a segment will be a p 
> frame and the first in the next segment an i frame) out anything you don't 
> want in the final file, 

so avidemux will work on the output of vdrsync.pl? good. useful to know
that. it doesn't like vdr's "00n.vdr" files at all.

> I suggest avidemux 2.0.36. .38 seems a bit messed up

i have 2.0.38+rc1-0.0 installed.  i can wait for it to be fixed, for now i just
want to be able to convert the entire file to divx.  i can worry about fancy
stuff like stripping ads later (most of the stuff i watch is on the
non-commercial channels anyway, so no ads.  about the only thing i watch on
commercial TV is a few science fiction shows).

> 5) run the resulting one big mpeg2 file through mencoder

ok, that makes sense.  now to find a version of vdrsync.pl where -mpeg2 works.

craig

-- 
craig sanders <cas at taz.net.au>           (part time cyborg)




More information about the vdr mailing list