Hallo

> thanks to Alexei I found out I used a wrong bitrate (1510 instead of
> 1150) for the stream. I corrected the error and encountered the same
> problem.
> 
> I am using a recording made by a Hauppauge PVR 350 card using mythv. I
> am recording PAL btw.
> 
> Here's what I did:
> 
> [EMAIL PROTECTED] tmp]$ ffmpeg -i test.mpg -b 1150 -s 352x288 -r 25 -ab 224 -ar
> 44100 -f vcd -y out.mpg
> Input #0, mpeg, from 'test.mpg':
>  Stream #0.0: Video: mpegvideo, 720x576, 25.00 fps, 8000 kb/s
>  Stream #0.1: Audio: mp2, 48000 Hz, stereo, 384 kb/s
> Output #0, vcd, to 'out.mpg':
>  Stream #0.0: Video: mpeg1video, 352x288, 25.00 fps, q=2-31, 1150 kb/s
>  Stream #0.1: Audio: mp2, 44100 Hz, stereo, 224 kb/s
> Stream mapping:
>  Stream #0.0 -> #0.0
>  Stream #0.1 -> #0.1
> Press [q] to stop encoding
> frame=97386 q=2.0 size=  660148kB time=3895.4 bitrate=1388.3kbits/s
> [EMAIL PROTECTED] tmp]$ ~wei/mpgcut-1.1-i386-libc6/mpgcut -d out.mpg
> 
> mpgcut Ver 1.1 - (c)2000 Laurent Alacoque <[EMAIL PROTECTED]>
> 
> yahaaaa this is a system mpeg file
> mpeg video is 352 x 288
> picture rate is 25.000000 fps
> [EMAIL PROTECTED] tmp]$ mplex -f 1 chunk.m1v chunk.mp2 -o chunk.mpg
Seems that ffmpeg produces from time to time a not that constant
bitrate. And overshots the target bitrate. Try multiplexing the video as
custom VCD (-f2 -b 1500 or a higer bitrate).

Or use mpeg2enc (in combination with mplayer) for encoding the mpeg:
mkfifo stream.yuv
mplayer -vo yuv4mpeg -noframedrop -noaudio test.mpg &
cat stream.yuv | yuvscaler -O VCD | mpeg2enc -f 1 video.m1v 

And multiplex that video afterwards. 
BTW: You might have to change the command for mplayer. 

auf hoffentlich bald,

Berni the Chaos of Woodquarter

Email: [EMAIL PROTECTED] [EMAIL PROTECTED]
www: http://www.lysator.liu.se/~gz/bernhard


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to