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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...