[Mjpeg-users] problem with mpeg2enc and -M option
mpeg2enc doesn't seem to work correctly when I use the -M option for multi-cpu encoding. I tired encoding a stream with these options: -f 5 -B 299 -S 700 -K kvcd -a 2 -p -g 6 -G 25 -b 2500 -q 3 --dualprime-mpeg2 and then the same exact options with -M 2 added. Without -M 2, mpeg2enc generates a stream of about 550 MB that mplex (with options -f 5 -r 0 -V) will accept without trouble. I can create a svcd with vcdimager and watch it on my DVD player with no problems. With -M 2, mpeg2enc doesn't have any trouble generate a mpeg2 stream. However, when I try to mplex it, mplex complains there are multiple sequences, and I need to put a %d in the filename: INFO: [lt-mplex] Scanned to end AU 1 ++ WARN: [lt-mplex] No seq. header starting new sequence after seq. end! INFO: [lt-mplex] Scanned to end AU 5 ++ WARN: [lt-mplex] No seq. header starting new sequence after seq. end! [snip] INFO: [lt-mplex] Video e0: buf= 13783 frame=01 sector=0006 INFO: [lt-mplex] New sequence commences... INFO: [lt-mplex] Video e0: buf= 186544 frame=17 sector=0103 ++ WARN: [lt-mplex] Stream e0: data will arrive too late sent(SCR)=13644802 required(DTS)=13629198 ++ WARN: [lt-mplex] Video e0: buf= 214883 frame=003666 sector=00014608 ++ WARN: [lt-mplex] Stream e0: data will arrive too late sent(SCR)=23705009 required(DTS)=23689248 [snip] ++ WARN: [lt-mplex] Stream e0: data will arrive too late sent(SCR)=73429807 required(DTS)=73036045 ++ WARN: [lt-mplex] Video e0: buf= 0 frame=019483 sector=00081855 **ERROR: [lt-mplex] Too many frame drops -exiting The first sequence results in an mpeg file that is only 238k. I also get many buffer overflow errors, and the stream won't multiplex. If I try to make a svcd, it skips like crazy on my dvd player. Again, if I do everything exactly the same but omit the -M 2 flag, everything works fine, but my CPUs are less utilized. --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] problem with mpeg2enc and -M option
On Wed, 2 Feb 2005, Trent Piepho wrote: mpeg2enc doesn't seem to work correctly when I use the -M option for multi-cpu encoding. Did you do a 'cvs update' recently (within the last week or 10 days)? I had the same problem (only on a OS/X system at the time) and Andrew checked in a change that fixed the problem - haven't seen it happen again. INFO: [lt-mplex] Scanned to end AU 1 ++ WARN: [lt-mplex] No seq. header starting new sequence after seq. end! INFO: [lt-mplex] Scanned to end AU 5 ++ WARN: [lt-mplex] No seq. header starting new sequence after seq. end! [snip] Yep -same exact error I was seeing. There was a subtle unitialized variable use that could cause the sequence end flag to be erroneously set. If a cvs update and rebuild doesn't fix the problem then it's back to the drawing board ;( Cheers, Steven Schultz --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] problem with mpeg2enc and -M option
On Wed, 2 Feb 2005, Steven M. Schultz wrote: On Wed, 2 Feb 2005, Trent Piepho wrote: mpeg2enc doesn't seem to work correctly when I use the -M option for multi-cpu encoding. Did you do a 'cvs update' recently (within the last week or 10 days)? You're right, it looks like it was fixed between when I noticed the problem and actually got around to sending an email. I had to do make clean after the cvs update, or mpeg2enc would crash. It seems the Makefile is missing some dependencies, but since it's autohell I have no idea how to fix it. --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] problem with mpeg2enc while using transcode.
On Wed, 7 Jan 2004, Nathan Morell wrote: The rest of your suggestions worked just fine! I removed the k option, and played around with the aspect [it was also screwey] and Great! It would appear that when exporting to mpeg2enc that transcode is already swapping the U and V planes into the correct order so giving a -k undid that and caused YV12 instead of 4:2:0p to be given to the encoder. everything is working fine except for the Audio now. I'll append a complete output from Mplayer and Transcode; otherwise, could you tell me This is wandering a bit away from mjpegtools but I think I have a method that will work to get the audio. If mplayer can play the input avi file then mplayer -dumpfile output.wav -dumpaudio input.avi mp2enc -b 128 -o output.mp2 output.wav should do the trick. Then use mplex to put the .m2v and .mp2 files together. Cheers, Steven Schultz --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users
[Mjpeg-users] problem with mpeg2enc while using transcode.
I posted this problem to the transcode list and they said it was a problem with the mjpeg tools. They also mentioned that the SuSe package for mjpeg tools was fubared. But I run slackware, and compiled it from source. Anybody have any ideas? [EMAIL PROTECTED]:~/media$ transcode -i Scratch.avi -V -y mpeg2enc,mp2enc -F 4 -E 44100 -b 128 -o SCRACH -j -92 -Z 480x576 -k transcode v0.6.11 (C) 2001-2003 Thomas Oestreich, 2003 T. Bitterberg [transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms [transcode] auto-probing source Scratch.avi (ok) [transcode] V: import format| DivX;-) RIFF data, AVI (V=ffmpeg|A=mp3) [transcode] V: import frame | 512x288 1.78:1 [transcode] V: clip frame (-) | 512x472 [transcode] V: zoom | 480x576 1.37:1 (Lanczos3) [transcode] V: rgb2bgr | yes [transcode] V: bits/pixel | 0.260 [transcode] V: decoding fps,frc | 25.000,3 [transcode] V: Y'CbCr | YV12/I420 [transcode] A: import format| 0x55MPEG layer-3 [44100,16,2] 127 kbps [transcode] A: export format| 0x50MPEG layer-2 [44100,16,2] 128 kbps [transcode] V: encoding fps,frc | 25.000,3 [transcode] A: bytes per frame | 7056 (7056.00) [transcode] A: adjustment | [EMAIL PROTECTED] [transcode] V: IA32 accel mode | 3dnow (3dnow mmxext mmx asm) [transcode] V: video buffer | 10 @ 512x576 [import_mp3.so] v0.1.4 (2003-08-04) (audio) MPEG [import_ffmpeg.so] v0.1.8 (2003-11-03) (video) FFmpeg0.4.8b4683: MS MPEG4v1-3/MPEG4/MJPEG [transcode] warning : /usr/local/lib/transcode/export_mpeg2enc.so: undefined symbol: y4m_dar_16_9 [transcode] warning : (dl_loader.c) loading /usr/local/lib/transcode/export_mpeg2enc.so failed [transcode] warning : (encoder.c) loading video export module failed [transcode] warning : failed to init export modules [transcode] critical: plug-in initialization failed --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] problem with mpeg2enc while using transcode.
Steven M. Schultz wrote: [transcode] warning : /usr/local/lib/transcode/export_mpeg2enc.so: undefined symbol: y4m_dar_16_9 [transcode] warning : (dl_loader.c) loading /usr/local/lib/transcode/export_mpeg2enc.so failed [transcode] warning : (encoder.c) loading video export module failed [transcode] warning : failed to init export modules Did you remember to recompile transcode after installing mjpegtools? The undefined symbol 'y4m_dar_16_9' should be defined in the mjpegtools library libmjpegutils.a. If that symbol is coming up undefined it would seem to indicate that transcode did not link against the right library. Which version of transcode are you using? the cvs version or the last release candidate? Steven Schultz I recompiled everything after installing mjpegtools, and it IS working now however, I am getting some funky results. My resulting mpeg2 video has a blue hue, do I need to run it thru some filter to get rid of this, or are my settings wrong? I'm still quite a bit new to this stuff. transcode -i Aqua\ Teen\ Hunger\ Force\ -\ The\ Cloning\ -\ Xavier.avi -V -y mpeg2enc,mp2enc -F 4 -E 44100 -b 128 -o athf -j -92 -Z 480x576 -k mplex -f 4 -S 700 -o athf%d.mpg athf.m2v athf.mpa the resulting video on that appears with a blue hue, also, the sound is wack on that video. I got this warning during the transcode, [export_mp2enc.so] (45/4096) cmd=mp2enc -v 0 -r 44100 -b 128 -s -o athf.mpa big_values too large! 509 Blocktype == 0 and window-switching == 1 not allowed. Can't step back 255! bitstream problem: resyncing... big_values too large! 440 big_values too large! 322 fatal error. MAXFRAMESIZE not large enough. Blocktype == 0 and window-switching == 1 not allowed. bitstream problem: resyncing... mpg123: Can't rewind stream by 119 bits! bitstream problem: resyncing... thanks again for the help --Nathan --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] problem with mpeg2enc while using transcode.
On Tue, 6 Jan 2004, Nathan Morell wrote: I recompiled everything after installing mjpegtools, and it IS working now however, I am getting some funky results. My resulting mpeg2 video has a blue hue, do I need to run it thru some filter to get rid of this, Could be that the chroma planes are swapped. or are my settings wrong? I'm still quite a bit new to this stuff. transcode -i Aqua\ Teen\ Hunger\ Force\ -\ The\ Cloning\ -\ Xavier.avi -V -y mpeg2enc,mp2enc -F 4 -E 44100 -b 128 -o athf -j -92 -Z 480x576 -k mplex -f 4 -S 700 -o athf%d.mpg athf.m2v athf.mpa What happens if you leave out the '-k' option? the resulting video on that appears with a blue hue, also, the sound is wack on that video. I got this warning during the transcode, [export_mp2enc.so] (45/4096) cmd=mp2enc -v 0 -r 44100 -b 128 -s -o athf.mpa big_values too large! 509 Blocktype == 0 and window-switching == 1 not allowed. Can't step back 255! ... 'fraid I can't help with the audio problem. Would seem to either not be a mp3 stream or it is corrupted somehow. Steven Schultz --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] Problem with mpeg2enc
$ cat result3.yuv | mpeg2enc -v -o result3.m1v **ERROR: [mpeg2enc] Could not read YUV4MPEG2 header: bad header magic! Have you tried running that in gdb, so you can find out where is really crashes. But I guess that the problem is not really in mpeg2enc. The -v to mpeg2enc requires a numeric argument --- that weird bad header magic error is because the argument was missing. (Thus, the -o was interpreted as the arg to -v, and then result3.m1v was interpreted as the *input* file --- which was certainly not a YUV4MPEG2 stream, even if it did exist.) (This doesn't explain the original problem, but maybe the debugging will be a little more productive.) -matt m. --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users
[Mjpeg-users] Problem with mpeg2enc
I'm trying to create an mpeg movie from a sequence of jpegs shot with my digital camera. Using section 4 of the Mjpeg How-To as a guide, I first tried this command: convert *.jpg -geometry 180x120 ppm:- | ppmtoy4m | mpeg2enc -o result.m1v I got this result: INFO: [ppmtoy4m] Command-line Parameters: INFO: [ppmtoy4m] framerate: 3:1001 INFO: [ppmtoy4m] pixel aspect ratio: 1:1 INFO: [ppmtoy4m] interlace: none/progressive INFO: [ppmtoy4m] starting frame: 0 INFO: [ppmtoy4m]# of frames: all, until input exhausted INFO: [ppmtoy4m] chroma subsampling: 4:2:0, JPEG/MPEG-1, interstitial siting INFO: [ppmtoy4m] Output Stream parameters: INFO: [ppmtoy4m] frame size: 160x120 pixels (28800 bytes) INFO: [ppmtoy4m] frame rate: 3/1001 fps (~29.970030) INFO: [ppmtoy4m] interlace: none/progressive INFO: [ppmtoy4m] sample aspect ratio: 1:1 INFO: [mpeg2enc] Selecting generic MPEG1 output profile INFO: [mpeg2enc] Assuming norm NTSC INFO: [mpeg2enc] Encoding MPEG-1 video to result.m1v INFO: [mpeg2enc] Horizontal size: 160 pel INFO: [mpeg2enc] Vertical size: 120 pel INFO: [mpeg2enc] Aspect ratio code: 1 = 1:1 (square pixels) INFO: [mpeg2enc] Frame rate code: 4 = 3.0/1001.0 (NTSC VIDEO) INFO: [mpeg2enc] Bitrate: 1151 KBit/s INFO: [mpeg2enc] Field order for input: none/progressive INFO: [mpeg2enc] Sequence unlimited length INFO: [mpeg2enc] Search radius: 16 INFO: [mpeg2enc] GOP SIZE RANGE 12 TO 12 INFO: [mpeg2enc] Setting colour/gamma parameters to NTSC INFO: [mpeg2enc] Progressive format frames = 1 INFO: [mpeg2enc] mpeg1 - setting intra_dc_precision = 0 INFO: [mpeg2enc] Using default unmodified quantization matrices INFO: [mpeg2enc] Buffering 33 frames INFO: [mpeg2enc] GOP start (12 frames) INFO: [mpeg2enc] Frame end 0 I quant=3.83 total act= 236.5 Segmentation fault If I prod mpeg2enc for verbosity like this: convert *.jpg -geometry 180x120 ppm:- | ppmtoy4m | mpeg2enc -v -o result.m1v I get this result: INFO: [ppmtoy4m] Command-line Parameters: INFO: [ppmtoy4m] framerate: 3:1001 INFO: [ppmtoy4m] pixel aspect ratio: 1:1 INFO: [ppmtoy4m] interlace: none/progressive INFO: [ppmtoy4m] starting frame: 0 INFO: [ppmtoy4m]# of frames: all, until input exhausted INFO: [ppmtoy4m] chroma subsampling: 4:2:0, JPEG/MPEG-1, interstitial siting **ERROR: [mpeg2enc] Could not read YUV4MPEG2 header: bad header magic! At this point I don't know if the problem is software related, data related, or user related. (A former colleague liked to say, We've found the problem. It's between the keyboard and the chair.) If I stop after the ppmtoy4m command, yuvplay will successfully display the resulting file. I am hoping someone can give me clues on how to fix this problem or at least suggestions on how to diagnose it. Thanks! Andrew Robinson --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] Problem with mpeg2enc and VCD creation
On 07:29, 9 / 2 / 2003, Bernhard Praschinger wrote: Hallo, Thanks for your answer, There the transcode mailinglists will also help you. Ok, I will try also there, but the problem appears only using mpeg2enc If you want information how to create a mpeg stream you can take a look that the mjpeg howto. I,ve already read that; what I need is either the specifications of the mpeg file format (I guess they're not free, isn't it?) or a tool to debug the header's fields and the frame order, or wathever else. I have two mpeg files, one working, made with the transcode built in encoder, while the other not (made with mpeg2enc), of the same piece of movie. Looking on the files they differ in some places (beginning at hex 1240 in the files) but I don't know the meaning of this. The file headers should be identical. Does vcdimager produce a differnet output ? I don't tested it, but I think so since also the mpeg are different. Thank you again for any information, especially about the mpeg file format. Mauro Spluga --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users