After some more tests I suspect that the problem is actually with PS->TS conversion done by VLC...
Are there any tools which can check whether a PS/ES stream is CBR or not? On Mon, May 29, 2006 at 12:56:14AM +0300, Vladimir Ivashchenko wrote: > Hi, > > I can't get mpeg2enc to generate strict CBR. I need CBR for streaming. > > Using diagnostic tool from Kasenna VOD server, I get the following > information on the file generated by > mpeg2enc (converted into TS by vlc): > > == > MPEG-2 Transport Stream Tool > Copyright (C) 1995-1997 Silicon Graphics, Inc. > All Rights Reserved. > > Max_bitrate seen = 3595509 avgBitrate Calculated = 3362108 > FATAL ERROR: End-of-file reached before pre-scan complete. > -> Could not compute a stable bitrate from the PCRs. > == > > I tried playing with various command line parameters without success, the one > I use for the example above is > as follows: > > mpeg2enc -v 0 -I 0 -b 3300 -o "$OUTPUT/$OUTPUT.m2v" --cbr -P -V 128 -c > mplex -M -f 3 -o $OUTPUT/$OUTPUT.mpg $OUTPUT/$OUTPUT.m2v $OUTPUT/$OUTPUT.mpa > > At the same time, on a demo 3.5 mbps CBR file generated by a proprietary > encoder I get the following: > > == > MPEG-2 Transport Stream Tool > Copyright (C) 1995-1997 Silicon Graphics, Inc. > All Rights Reserved. > > Pre-scan complete ... > Rate = 3500000 bps > PCR PID = 0x1023 > Video PID = 0x1023 > Audio PID = 0x1022 > > Max_bitrate seen = 3500000 avgBitrate Calculated = 3500001 > == > > Any ideas on how to get content generated by mpeg2enc closer to CBR? > > -- > Best Regards > Vladimir Ivashchenko > Chief Technology Officer > Thunderworx, Cyprus - www.thunderworx.com -- Best Regards Vladimir Ivashchenko Chief Technology Officer Thunderworx, Cyprus - www.thunderworx.com ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 _______________________________________________ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users