I got a little further and resolved why my video was not correctly rendering:
1) for some reason, probably my big fat fingers, an audio transition was placed right at the beginning of the project (Timecode 00:00:00). I deleted this. 2) I noticed that for joins between separate videos on the same a/v tracks, the joins between the audio and video segments did not end at the exact same place. http://content.serveftp.net/video/avmisaligned.png To stop this, I went to the end of each segment, zoomed in all the way, and made sure that each video and audio segment ended at the exact same time. If they didn't end at the exact same time, I clipped off a bit of whatever audio or video track is dangling by using the mark in/mark out indicators and doing a "cut". After doing the cut, the segments aligned perfectly. Even with these changes, however, I still get a similar version of my original error when I load the project: int YUVStream::read_header(): y4m_read_stream_header() failed: bad stream or frame header int YUVStream::open_read(char*): Bad YUV4MPEG2 header: parameter out of range However, I can output it to a usable format, so I don't mind the rather ugly error messages. Perhaps someone has a better explanation for them.. scott On Sun, 2006-10-15 at 12:28 -0400, Scott C. Frase wrote: > Hi guys, > For v932 SVN, I wanted to output my HDV format video to an iPod ready > resolution. In my tests, I found that outputting HDV from Cinelerra to > a smaller format mpeg2video using these ffmpeg params: > ffmpeg -f yuv4mpegpipe -i - -y -b 1500 -s 320x180 -aspect 16:9 -r 29.97 > -f mpeg2video % > > yields the following Cinelerra errors: > int YUVStream::read_header(): y4m_read_stream_header() failed: bad > header magic > int YUVStream::open_read(char*): Bad YUV4MPEG2 header: parameter out of > range > > Outputting the same project using the ffmpeg standard "-target dvd": > ffmpeg -f yuv4mpegpipe -i - -y -target dvd % > > gives me the same errors. > > Also, if I bring either video back into Cinelerra and try to align it > with the audio I exported from the original project, the a/v tracks end > at slightly different times. This is not due to any sample rate error: > I've made sure that my output project was set to output audio as 48000. > New project is set to same. The video ends first, as seen in this PNG: > http://content.serveftp.net/video/mpeg2truncate.png > > Note that I can play both in Mplayer successfully. Here is the output > of one: > [EMAIL PROTECTED] 20060812]# mplayer ../20060831/20060831sbad.m2v > Using GNU internationalization > Original domain: messages > Original dirname: /usr/share/locale > Current domain: mplayer > Current dirname: /usr/share/locale > > MPlayer 1.0pre7-4.0.2 (C) 2000-2005 MPlayer Team > CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 9) > Detected cache-line size is 64 bytes > CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 > > Opening joystick device /dev/input/js0 > Can't open joystick device /dev/input/js0 : No such file or directory > Can't init input joystick > Setting up LIRC support... > mplayer: could not connect to socket > mplayer: No such file or directory > Failed to open LIRC support. > You will not be able to use your remote control. > Playing ../20060831/20060831sbad.m2v. > MPEG-ES file format detected. > VIDEO: MPEG2 320x180 (aspect 1) 29.970 fps 0.0 kbps ( 0.0 > kbyte/s) > vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local > display) > ========================================================================== > Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough > VDec: vo config request - 320 x 180 (preferred csp: Mpeg PES) > Could not find matching colorspace - retrying with -vf scale... > Opening video filter: [scale] > The selected video_out device is incompatible with this codec. > VDecoder init failed :( > Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder > libmpeg2-v0.4.0b > Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG-1 or 2 (libmpeg2)) > ========================================================================== > Audio: no sound > Starting playback... > VDec: vo config request - 320 x 180 (preferred csp: Planar YV12) > Could not find matching colorspace - retrying with -vf scale... > Opening video filter: [scale] > VDec: using Planar YV12 as output csp (no 0) > Movie-Aspect is undefined - no prescaling applied. > SwScaler: using unscaled Planar YV12 -> BGR 24-bit special converter > VO: [gl2] 320x180 => 320x180 BGR 24-bit > [gl2] You have OpenGL >= 1.2 capable drivers, GOOD (16bpp and BGR is > ok!) > [gl2] antialiasing off > [gl2] bilinear linear > V: 21.7 650/650 2% 68% 0.0% 0 0 > > Exiting... (End of file) > > Anyone have any ideas on how to workaround this or why it may be > happening? > > scott > > > _______________________________________________ > Cinelerra mailing list > [email protected] > https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra _______________________________________________ Cinelerra mailing list [email protected] https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra
