Hi Ronald > > I tried with several input files, but always lav2yuv stops > > at frame 18000 - 18100 around. > > What does lavinfo say about the file? Maybe we're breaking the 32bit > limit in audio samples? IIRC, lav2yuv uses ints for audio sample > counting... > Here we go...
lavinfo 07-scene7-mjpeg.avi video_frames=18088 video_width=768 video_height=576 video_inter=0 video_norm=PAL video_fps=25.000000 video_sar_width=0 video_sar_height=0 max_frame_size=201807 MJPG_chroma=2 has_audio=0 audio_bps=0 audio_chans=0 audio_bits=0 audio_rate=0 num_video_files=1 It's even getting more puzzling here. The file definitely HAS audio, I can hear it in mplayer: Playing 07-scene7-mjpeg.avi Cache fill: 2.83% (237568 bytes) AVI file format detected. AVI: ODML: Building odml index (2 superindexchunks) VIDEO: [MJPG] 768x576 24bpp 25.000 fps 11836.2 kbps (1444.8 kbyte/s) Clip info: Software: MEncoder 1.0pre5-3.3.2 ========================================================================== Trying to force audio codec driver family libmad... Opening audio decoder: [libmad] libmad mpeg audio decoder AUDIO: 44100 Hz, 1 ch, 16 bit (0x10), ratio: 16000->88200 (128.0 kbit) Selected audio codec: [mad] afm:libmad (libMAD MPEG layer 1-2-3) ========================================================================== vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display) ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family [mjpeg @ 0x858f080]mjpeg: using external huffman table Selected video codec: [ffmjpeg] vfm:ffmpeg (FFmpeg MJPEG decoder) ========================================================================== Checking audio filter chain for 44100Hz/1ch/16bit -> 44100Hz/2ch/16bit... AF_pre: af format: 2 bps, 1 ch, 44100 hz, little endian signed int AF_pre: 44100Hz 1ch Signed 16-bit (Little-Endian) AO: [oss] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps) Building audio filter chain for 44100Hz/1ch/16bit -> 44100Hz/2ch/16bit... Starting playback... VDec: vo config request - 768 x 576 (preferred csp: Planar YV12) VDec: using Planar YV12 as output csp (no 3) Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. VO: [xv] 768x576 => 768x576 Planar YV12 [zoom] A: 3.0 V: 3.0 A-V: -0.000 ct: -0.001 75/ 75 23% 18% 2.8% 6 0 49% also tcprobe says: [tcprobe] RIFF data, AVI video [avilib] V: 25.000 fps, codec=MJPG, frames=18088, width=768, height=576 [avilib] A: 44100 Hz, format=0x55, bits=0, channels=1, bitrate=128 kbps, [avilib] 27697 chunks, 11576215 bytes, CBR [tcprobe] summary for 07-scene7-mjpeg.avi, (*) = not default, 0 = not detected import frame size: -g 768x576 [720x576] (*) frame rate: -f 25.000 [25.000] frc=3 audio track: -a 0 [0] -e 44100,0,1 [48000,16,2] -n 0x55 [0x2000] (*) bitrate=128 kbps length: 18088 frames, frame_time=40 msec, duration=0:12:03.520 But what I see here, is the length of 18088 frames reported by both tcprobe and lavinfo. (?) But it's definitely longer. When playing the mjpeg-file in mplayer, it counts up to 26266 frames! A:1050.4 V:1050.6 A-V: -0.193 ct: 0.062 26266/26266 19% 11% 8.4% 0 0 0%% Whats going on here? Maybe there's s.th. wrong with the captured mjpeg-file? I captured with both transcode (v4l-support) using ffmpeg codec and mencoder using lavcodec. So the problem is wrong information about the number of frames in the header of the mjpeg-coded avi. Mjpegtools have nothing to do with that. I should move to the v4l or ffmpeg lists. You pushed me a step in the right direction, thanks for that. Any hints how to repair this broken headers in already captured files? Greetings, Rainer. ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users