Hallo
Hmmm, I wonder if 'mmap(2)' is part of the problem. Is there a method you can use that does not involve mmap?
Hmm, I have no idea...
Oh, ok. I seem to remember a "software"/"hardware" choice - ah, if you do a "lavplay -h" you'll see: -p/--playback [SHC] playback: (S)oftware, (H)ardware (screen) or (C)ard
what happens if you use "-p S" in the lavplay command?
The same error than without the "-p S" option (for both programms, glav and lavplay):
I didn't remember everything on that tread but. If you think you sound card cannot play back the sound because the sound cad does not support mmap play back. Thry playing back without sound -a 0.
OK, if i try lavplay -v 2 -a 0 it works, here is the output:
[EMAIL PROTECTED]:/video/video> lavplay -v 2 -a 0 test.avi
lavplay1.6.2
lavtools version 1.6.2
--DEBUG: [lavplay] Opening video file test.avi ...
--DEBUG: [lavplay] File: test.avi, absolute name: /video/video/test.avi
--DEBUG: [lavplay] frames: 608
--DEBUG: [lavplay] width: 768
--DEBUG: [lavplay] height: 576
--DEBUG: [lavplay] interlacing: top field first
--DEBUG: [lavplay] frames/sec: 25.000
--DEBUG: [lavplay] audio samps: 1072512
--DEBUG: [lavplay] audio chans: 2
--DEBUG: [lavplay] audio bits: 16
--DEBUG: [lavplay] audio rate: 44100
--DEBUG: [lavplay] 1.0/SPVF = 25.0000
--DEBUG: [lavplay] Initializing the threading system
--DEBUG: [lavplay] Starting software playback thread
--DEBUG: [lavplay] Playback thread: sleeping for new frames (waiting for frame 0)
INFO: [lavplay] Initialising SDL
INFO: [lavplay] SDL YUV overlay: hardware
INFO: [lavplay] Output norm: PAL
INFO: [lavplay] Output dimensions: 768x576
--DEBUG: [lavplay] Closing down the threading systemiff: 0.000000
"glav -v 2 -a 0 test.avi" works too.
The -p S/C/H is only for the video. Playing back the audio in read mode like it is possible when recording
is currently not possible.
Hmm, when i had 1.6.0 installed on SuSE 7.3 i had no problems with lavplay or glav with sound...
[EMAIL PROTECTED]:/video/video> glav -p S test.avi ++: Fatal signal: Segmentation Fault (SDL Parachute Deployed) [EMAIL PROTECTED]:/video/video> lavplay -p S test.avi lavplay1.6.2 lavtools version 1.6.2 Fatal signal: Segmentation Fault (SDL Parachute Deployed) Speicherzugriffsfehler
loks not nice, would it be possible that you run that command again with
-v 2. And attach the output.
OK, here is the output (with -v 2) if i try playback with sound (without -a 0):
[EMAIL PROTECTED]:/video/video> lavplay -v 2 -p S test.avi
lavplay1.6.2
lavtools version 1.6.2
--DEBUG: [lavplay] Opening video file test.avi ...
--DEBUG: [lavplay] File: test.avi, absolute name: /video/video/test.avi
--DEBUG: [lavplay] frames: 608
--DEBUG: [lavplay] width: 768
--DEBUG: [lavplay] height: 576
--DEBUG: [lavplay] interlacing: top field first
--DEBUG: [lavplay] frames/sec: 25.000
--DEBUG: [lavplay] audio samps: 1072512
--DEBUG: [lavplay] audio chans: 2
--DEBUG: [lavplay] audio bits: 16
--DEBUG: [lavplay] audio rate: 44100
--DEBUG: [lavplay] 1.0/SPVF = 25.0000
--DEBUG: [lavplay] Initializing the threading system
--DEBUG: [lavplay] Starting software playback thread
--DEBUG: [lavplay] Playback thread: sleeping for new frames (waiting for frame 0)
INFO: [lavplay] Initialising SDL
INFO: [lavplay] SDL YUV overlay: hardware
INFO: [lavplay] Using mmap(2) system call for capture
INFO: [lavplay] Output norm: PAL
INFO: [lavplay] Output dimensions: 768x576
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
Speicherzugriffsfehler
So when lav2yuv test.avi | yuvplay works but neither "glav -p S test.avi" nor the same with lavplay then it must be a problem with this two programms - no?
There is another thing that confuses me, the audio has actually 44100 Hz but the wav only has got 22050 Hz...
mp2enc -h
-r num Force output sampling rate to be num Hz (default: 44100)
22050 is not a valid rate for VCD/DVD/SVCD - mp2enc is upsamping the audio to 44100. You can specify a different rate with "-r".
Yeah, but the audio already comes at 44100 Hz from the source (camcorder), so it should actually have 44100 Hz in the recorded video - no?
Should be. If the audio has only 22050Hz sampling rate It is likely that
lavplay/glav will fail too.
pleas run lavinfo on the file and tell us also the audio samplerate.
Hmm, here is the output of lavinfo, looks like the output of playwave is wrong when i open the wavefile done by lav2wav, so audio has 44100, must be an error with playwave then :-)
[EMAIL PROTECTED]:/video/video> lavinfo test.avi video_frames=608 video_width=768 video_height=576 video_inter=1 video_norm=PAL video_fps=25.000000 video_sar_width=0 video_sar_height=0 max_frame_size=114016 MJPG_chroma=2 has_audio=1 audio_bps=4 audio_chans=2 audio_bits=16 audio_rate=44100 num_video_files=1
Cheers,
Frühmesser B.
auf hoffentlich bald,
Berni the Chaos of Woodquarter
Email: [EMAIL PROTECTED] www: http://www.lysator.liu.se/~gz/bernhard
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users