Jump to content

scripting versus kino [solved]


Recommended Posts

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!)

:cheeky:

thanks a lot

adamato

 

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...