Hallo I send that mail to the mjpe-users list too. I forgot that in the last mail.
Janos G Komaromi wrote: > Thanks, Berni for your investigation and for your quick response. > I was not so quick because of very busy past few days. No problem. >> I did as first test: >> lav2wav record.avi >record.wav >> and than: play record.wav >> > This worked well for me: > [apu@andraslinux ~]$ lav2wav record.avi > record.wav > INFO: [lav2wav] WAV done > and file played with xmms or with play. That is good. >> lav2wav record.avi | mp2enc -v 2 -r 44100 -o record.mp2 >> lav2yuv record.avi | mpeg2enc -f 1 -o video.m1v >> mplex -f 1 video.m1v record.mp2 -o record.mpg >> >> The video did work fine, and the sound did play back ok. > This worked only partially: > [apu@andraslinux ~]$ lav2wav record.avi | > mp2enc -v 2 -r 44100 -o record.mp2 > INFO: [mp2enc] Opened WAV file, freq = 44100 Hz, channels = 2, > bits = 16 > INFO: [mp2enc] format = 0x1, audio length = 2147483392 bytes > --DEBUG: [mp2enc] Encoding configuration: > --DEBUG: [mp2enc] Layer=II mode=stereo extn=0 psy model=2 > --DEBUG: [mp2enc] samp frq=44.1 kHz total bitrate=224 kbps > --DEBUG: [mp2enc] de-emph=0 c/right=0 orig=0 errprot=0 > --DEBUG: [mp2enc] output file: 'record.mp2' > INFO: [mp2enc] SpF=731, frac SpF=0.429, bitrate=224 kbps, > sfreq=44.1 kHz > INFO: [mp2enc] Fractional number of slots, padding required > INFO: [mp2enc] System is little endian > --DEBUG: [mp2enc] 1 seconds done .... > **ERROR: [lav2wav] rewind failed - wav-header is corrupt > --DEBUG: [mp2enc] 10 seconds done > --DEBUG: [mp2enc] 11 seconds done > INFO: [mp2enc] Num frames 349 Avg slots/frame = 731.427; > b/smp = 5.08; br = 223.999 kbps > INFO: [mp2enc] Encoding to layer 2 with psychoacoustic model > 2 is finished > INFO: [mp2enc] The MPEG encoded output file name is "record.mp2" That output looks ok for me the error with the rewind looks scary, but is harmless. I forgot the exact background, it has to do something with the pipeline to mp2enc, lav2wav can't update the header. > [apu@andraslinux ~]$ lav2wav record.avi | mpeg2enc -f 1 -o video.mlv > INFO: [mpeg2enc] SETTING EXTENDED MMX for MOTION! > INFO: [mpeg2enc] SETTING SSE and MMX for TRANSFORM! > INFO: [mpeg2enc] SETTING EXTENDED MMX for PREDICTION! > **ERROR: [mpeg2enc] Could not read YUV4MPEG2 header: bad header magic! That is the wrong command. For video encoding you need to use lav2yuv (take a look at the manpage). lav2yuv is used to create the video content for mpeg2enc. Try a command like I wrote above: lav2yuv record.avi | mpeg2enc -f 1 -o video.m1v Just a note about file extensions. They are not necessary, but it make it easier if you use .mp2 for mpeg2 audio Files, .m1v for mpeg1 video, .m2v for mpeg2 video files and .mpg for the final multiplexed video file. > Could these ERRORs indicate what might be the problem with playing > sound in glav? No, playback and encoding are something different. > At any rate, I understand your points, and I think I'm all set for > now. > This is a challenge for me and a learning experience. You wrote before > that the initial pop or click could be the sigh of an initialization. > I'll attempt to do some debugging, maybe looking at the source code - > when I have some quiet time. > > Just an idea: do you have any short clip that plays in your glav with > sound, and can you send me that file? No, as far as I know that is a problem with the OSS Sound emulation since the 3.10 Kernel or a earlier kernel release. To make the audio playback working again we need some person that can convert the code from OSS to ALSA. I cut my clips without hearing the sound. auf hoffentlich bald, Berni the Chaos of Woodquarter Email: shadowl...@utanet.at www: http://www.lysator.liu.se/~gz/bernhard ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users