Page 1 of 1

Transcoding YouTube Video

Posted: 15 Jun 2008 17:36
by boilerjt
I am having difficulty transcoding YouTube videos to my DirecTV HR20 using MediaTomb. Here is the command line:

Code: Select all

/usr/bin/vlc -I dummy "$1" --sout "#transcode{vcodec=mp2v,vb=4096,canvas-width=448,canvas-height=252,acodec=mp2a,ab=64,samplerate=44100,channels=1}:standard{access=file,mux=ts,dst="$2"}"
$1 is the input YouTube URL and $2 is the output. This works flawlessly in the Ubuntu Hardy stock 0.8.6e, but I am having problems with this in 0.9.0git. This has been tested on various compilations over the last two weeks and the latest test was on the 6/15/08 nightly for Ubuntu Hardy x86. The problems I am seeing are:

1) Samplerate conversion is not working. Youtube sends an MP3, 22050 Hz, 64Mbps stream and when I transcode to mp2a 44100 Hz, the audio plays really fast.
2) canvas-width and canvas-height are not working at all.

No error messages are displayed in the terminal