adamato Posted July 9, 2005 Report Share Posted July 9, 2005 Hello all, does anybody know why I can encode raw video files from my cam into mpeg2 dvd compliant using kino with the following options on the MPEG section: video pipe: mpeg2enc -v 0 -b 4000 audio encoding: mp2enc -v 0 -r 48000 whilst if I use command line scripting with similar options like: lav2wav +p file.avi | mp2enc -v 0 -r 48000 -o file.mp2 lav2yuv +p file.avi | mpeg2enc -v 0 -b 4000 -n p -f 8 -s -r 16 -o file.m1v mplex -f 8 file.mp2 file.m1v -o file.mpg I get the final file.mpg which is totally green (no other colours!) thanks a lot adamato [moved from Software by spinynorman] Quote Link to comment Share on other sites More sharing options...
adamato Posted July 12, 2005 Author Report Share Posted July 12, 2005 I spent quite some time yesterday night, and I found the solution. the correct command to stream a avi file into a yuv file is smil2yuv, not lav2yuv. The correct sequence is therefore: smil2yuv avifile -a tempaudio.mp2 | mpeg2enc -v 0 -b 4000 -f 8 -I 1 -n p -a 2 -o tempvideo.m1v mplex -f 8 tempaudio.mp2 tempvideo.m1v -o outfile.mpeg2 the first line streams out the audio from the avifile to a temporary tempaudio.mp2 file and the video to a tempvideo.m1v the second command multiplexes audio and video files together into outfile.mpeg2 (-n p option is for PAL) have fun! adamato Marked the thread Solved - Artificial Intelligence Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.