Rockbox Technical Forums

Support and General Use => Plugins/Viewers => Topic started by: Hp_Zouil on August 18, 2007, 04:56:30 AM

Title: VLC error message while converting .avi to .mpg
Post by: Hp_Zouil on August 18, 2007, 04:56:30 AM
Hi all,

I don't know if my problem was already discussed here but I did a quick search and I found nothing ...

I have an iPod video 30g

I tried to convert a .avi to .mpg using VLC with the command line that I found at http://www.rockbox.org/twiki/bin/view/Main/PluginMpegplayer#Encoding

Code: [Select]
vlc ~/Desktop/myMovie.avi --sout=#transcode{vcodec=mp2v,vb=600,width=320,height=240,acodec=mp3,ab=128,samplerate=44100,audio-sync}:std{access=file,mux=ps,url=myMovie.mpg}

When I do that it displays some errors :

Code: [Select]
VLC media player 0.8.6 Janus
[00000292] main private error: no sout stream module matched "transcodeaudio-sync"
[00000291] main stream output error: stream chain failed for `transcodeaudio-sync:stdurl=myMovie.mpg'
[00000289] main input error: cannot start stream output instance, aborting
[00000280] main playlist: nothing to play

I don't understand what's wrong with my command line  ???

Any help would be appreciated  ;)

Title: Re: VLC error message while converting .avi to .mpg
Post by: LambdaCalculus on August 18, 2007, 08:21:31 AM
Have you tried using the batch file that's provided? Or are you typing it in yourself?
Title: Re: VLC error message while converting .avi to .mpg
Post by: Hp_Zouil on August 18, 2007, 10:04:18 AM
I'm typing it myself. The batch file is for Windows and I'm on Linux
Title: Re: VLC error message while converting .avi to .mpg
Post by: gnu on August 18, 2007, 10:40:13 AM
It seems VLC has problems with the "audio-sync" bit. What happens if you omit it?
Title: Re: VLC error message while converting .avi to .mpg
Post by: LambdaCalculus on August 18, 2007, 10:46:31 AM
Actually, try adding in the fps bit as 29.97.
Title: Re: VLC error message while converting .avi to .mpg
Post by: Hp_Zouil on August 18, 2007, 10:53:15 AM
When I try without sync :

Code: [Select]
me@my-laptop:~$ vlc ~/Desktop/myMovie.avi --sout=#transcode{vcodec=mp2v,vb=600,width=320,height=240,acodec=mp3,ab=128,samplerate=44100}:std{access=file,mux=ps,url=myMovie.mpg}
VLC media player 0.8.6 Janus
[00000292] main private error: no sout stream module matched "transcodesamplerate=44100"
[00000291] main stream output error: stream chain failed for `transcodesamplerate=44100:stdurl=myMovie.mpg'
[00000289] main input error: cannot start stream output instance, aborting
[00000280] main playlist: nothing to play

And how I'm supposed to change the FPS ?
Sorry to ask that but I'm a complete noob in transcoding  :-[
Title: Re: VLC error message while converting .avi to .mpg
Post by: gnu on August 19, 2007, 12:11:51 PM
A quick search with google suggests that you can't use "=" in Linux. so your command line should/could/may be

vlc ~/Desktop/myMovie.avi --sout #transcode{vcodec mp2v,vb 600,width 320,height 240,acodec mp3,ab 128,samplerate 44100,audio-sync}:std{access file,mux ps,url myMovie.mpg}

Title: Re: VLC error message while converting .avi to .mpg
Post by: LambdaCalculus on August 19, 2007, 01:35:09 PM
After height=240, add fps=29.97 to the line.
Title: Re: VLC error message while converting .avi to .mpg
Post by: AlexP on August 19, 2007, 01:37:30 PM
Or not if as gnu say's you can't use = in linux!  :D
Title: Re: VLC error message while converting .avi to .mpg
Post by: LambdaCalculus on August 19, 2007, 08:06:58 PM
I brain farted, sorry!  :P
Title: Re: VLC error message while converting .avi to .mpg
Post by: dionoea on August 22, 2007, 11:45:02 AM
Linux shell expands a{b,c,d}e patterns to abe ace ade. You thus need to add quotes arround the transcode argument to prevent that from happening. I made sure that I provided a Linux/OS X command and a Windows command when I added the VLC command line to the rockbox wiki. Someone might have changed that in the meanwhile.
Title: Re: VLC error message while converting .avi to .mpg
Post by: dionoea on August 22, 2007, 11:46:57 AM
You should also add the -vv and --color options to your command line to get extra debug information which might help solving future problems you get when transcoding with VLC. (And you can also add "-I dummy" to prevent it from loading an interface)