Rockbox Technical Forums
Support and General Use => Plugins/Viewers => Topic started 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
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 :
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 ;)
-
Have you tried using the batch file that's provided? Or are you typing it in yourself?
-
I'm typing it myself. The batch file is for Windows and I'm on Linux
-
It seems VLC has problems with the "audio-sync" bit. What happens if you omit it?
-
Actually, try adding in the fps bit as 29.97.
-
When I try without sync :
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 :-[
-
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}
-
After height=240, add fps=29.97 to the line.
-
Or not if as gnu say's you can't use = in linux! :D
-
I brain farted, sorry! :P
-
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.
-
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)