> That sounds like a problem with X11 and maybe your grafic card driver.
>
> I had something similair, it was a problem with open gl, disabling that
> helped.
> Does lavplay work ?
Yes, it works with -pH and outputs video through my Miro card :)

> Do other SDL based programm work which are not included in the
> mjpegtools ?
:)
yes, Toppler (Nebulous) game uses SDL and it works perfectly :)

> If you tell us the version of the grafic card driver, X11 version and
> the error message we might provide further help.

I am using Ati Radeon 8500 LE with xorg-6.8.2-r4
Tried with ati proprietary drivers, with open source radeon driver,
and even vesa :)
Anyway glav gives me SDL parachute error :)
But I have very good news!
I can use glav with -pH option, so I can easily create .eli files
looking on tv screen

It is very good :)

But I have a bad news too...

I created some .eli files and wanted to convert videos to dvd
compliant mpeg2 or vcd compliant mpeg1.
Before I post the troubles I want to paste how I captured videos
lavrec -i P -w -f a -d 1 -q 77 -a 16 -r 44100 -l -1 -R l -c 2 -t
100000 -T 1 -n 32 -b 256 -s --max-file-size 1900
/home/norik/Desktop/%09.avi

some files was captured with --use-read option because I mistakely
captured it with script for another computer, where sound card only
support read() :)

-q parameter for some files is 50, for another files is 36
I did not mixed videos with different -q option in one .eli file :)

I was trying to convert with:
lav2yuv $1 | yuvdenoise | yuvscaler -O DVD | mpeg2enc -f 8 -q 4 -s -o
video_tmp.m2v

And have
   INFO: [yuvscaler] yuvscaler 1.6.2 (31-12-2003) is a general scaling
utility for yuv frames
   INFO: [yuvscaler] (C) 2001-2003 Xavier Biquard <[EMAIL PROTECTED]>,
yuvscaler -h for help, or man yuvscaler
   INFO: [mpeg2enc] SETTING EXTENDED MMX for MOTION!
   INFO: [mpeg2enc] SETTING MMX for TRANSFORM!
   INFO: [mpeg2enc] SETTING EXTENDED MMX for PREDICTION!
   INFO: [yuvscaler] DVD output format requested in PAL/SECAM norm
   INFO: [yuvscaler] input:   frame size:  768x576 pixels (663552 bytes)
   INFO: [yuvscaler] input:   frame rate:  25/1 fps (~25.000000)
   INFO: [yuvscaler] input:    interlace:  top-field-first
   INFO: [yuvscaler] input: sample aspect ratio:  1:1
   INFO: [yuvscaler] from 768x576, take 768x576+0+0, INTERLACED_TOP_FIRST
   INFO: [yuvscaler] scale to 720x576, 720x576 being displayed
  INFO: [yuvscaler] (C) 2001-2003 Xavier Biquard <[EMAIL PROTECTED]>,
yuvscaler -h for help, or man yuvscaler
   INFO: [mpeg2enc] SETTING EXTENDED MMX for MOTION!
   INFO: [mpeg2enc] SETTING MMX for TRANSFORM!
   INFO: [mpeg2enc] SETTING EXTENDED MMX for PREDICTION!
   INFO: [yuvscaler] DVD output format requested in PAL/SECAM norm
   INFO: [yuvscaler] input:   frame size:  768x576 pixels (663552 bytes)
   INFO: [yuvscaler] input:   frame rate:  25/1 fps (~25.000000)
   INFO: [yuvscaler] input:    interlace:  top-field-first
   INFO: [yuvscaler] input: sample aspect ratio:  1:1
   INFO: [yuvscaler] from 768x576, take 768x576+0+0, INTERLACED_TOP_FIRST
   INFO: [yuvscaler] scale to 720x576, 720x576 being displayed
   INFO: [yuvscaler] Scaling uses the RESAMPLE algorithm,
   INFO: [yuvscaler] frame rate: 25.000 fps
   INFO: [yuvscaler] Scaling ratio for width is 16 to 15
   INFO: [yuvscaler] and is 1 to 1 for height
   INFO: [yuvscaler] Specific downscaling routing number 1
   INFO: [yuvscaler] output:   frame size:  720x576 pixels (622080 bytes)
   INFO: [yuvscaler] output:   frame rate:  25/1 fps (~25.000000)
   INFO: [yuvscaler] output:    interlace:  top-field-first
   INFO: [yuvscaler] output: sample aspect ratio:  16:15
   INFO: [mpeg2enc] Selecting DVD output profile
   INFO: [mpeg2enc] Assuming norm PAL
   INFO: [mpeg2enc] Interlaced input - selecting interlaced encoding.
   INFO: [yuvscaler] Scaling uses the RESAMPLE algorithm,
   INFO: [yuvscaler] frame rate: 25.000 fps
   INFO: [yuvscaler] Scaling ratio for width is 16 to 15
   INFO: [yuvscaler] and is 1 to 1 for height
   INFO: [yuvscaler] Specific downscaling routing number 1
   INFO: [yuvscaler] output:   frame size:  720x576 pixels (622080 bytes)
   INFO: [yuvscaler] output:   frame rate:  25/1 fps (~25.000000)
   INFO: [yuvscaler] output:    interlace:  top-field-first
   INFO: [yuvscaler] output: sample aspect ratio:  16:15
   INFO: [mpeg2enc] Selecting DVD output profile
   INFO: [mpeg2enc] Assuming norm PAL
   INFO: [mpeg2enc] Interlaced input - selecting interlaced encoding.
   INFO: [mpeg2enc] Encoding MPEG-2 video to video_tmp.m2v
   INFO: [mpeg2enc] Horizontal size: 720 pel
   INFO: [mpeg2enc] Vertical size: 576 pel
   INFO: [mpeg2enc] Aspect ratio code: 2 = 4:3 display
   INFO: [mpeg2enc] Frame rate code:   3 = 25.0 (PAL/SECAM VIDEO /
converted FILM)
   INFO: [mpeg2enc] Bitrate: 7500 KBit/s
   INFO: [mpeg2enc] Quality factor: 8 (Quantisation = 9) (1=best, 31=worst)
   INFO: [mpeg2enc] Field order for input: top-field-first
   INFO: [mpeg2enc] Sequence unlimited length
   INFO: [mpeg2enc] Search radius: 16
   INFO: [mpeg2enc] GOP SIZE RANGE 9 TO 15
   INFO: [mpeg2enc] Encoding MPEG-2 video to video_tmp.m2v
   INFO: [mpeg2enc] Horizontal size: 720 pel
   INFO: [mpeg2enc] Vertical size: 576 pel
   INFO: [mpeg2enc] Aspect ratio code: 2 = 4:3 display
   INFO: [mpeg2enc] Frame rate code:   3 = 25.0 (PAL/SECAM VIDEO /
converted FILM)
   INFO: [mpeg2enc] Bitrate: 7500 KBit/s
   INFO: [mpeg2enc] Quality factor: 8 (Quantisation = 9) (1=best, 31=worst)
   INFO: [mpeg2enc] Field order for input: top-field-first
   INFO: [mpeg2enc] Sequence unlimited length
   INFO: [mpeg2enc] Search radius: 16
   INFO: [mpeg2enc] GOP SIZE RANGE 9 TO 15
   INFO: [mpeg2enc] Setting colour/gamma parameters to "PAL B/G"
   INFO: [mpeg2enc] Progressive format frames = 0
   INFO: [mpeg2enc] Using default unmodified quantization matrices
   INFO: [mpeg2enc] Buffering 33 frames
   INFO: [yuvscaler] End of stream!
   INFO: [yuvscaler] Normal exit: end of stream with frame number 0!
   INFO: [mpeg2enc] Signaling last frame = -1
   INFO: [mpeg2enc] SETTING SSE and EXTENDED MMX for QUANTIZER!
   INFO: [mpeg2enc] GOP start (0 frames)
   INFO: [mpeg2enc] Guesstimated final muxed size = 4

   INFO: [mp2enc] Opened WAV file, freq = 44100 Hz, channels = 2, bits = 16

After that mpeg createion not continued, but only audio :)


I searched through the list and found an advice to use -M 0 with
mpeg2enc, however that didn't help, and after that I removed -q
parameter, I removed yuvdenoise but unsuccessfully.

The same result was when creating vcd
After that I tried y4mscaler

lav2yuv $1 | y4mscaler -I sar=1:1 -O sar=PAL -O size=704x756 -S
option=sinc:4 | mpeg2enc -M 0 -f 8 -o video_tmp.m2v


   INFO: [mpeg2enc] SETTING EXTENDED MMX for MOTION!
   INFO: [mpeg2enc] SETTING MMX for TRANSFORM!
   INFO: [mpeg2enc] SETTING EXTENDED MMX for PREDICTION!
   INFO: [y4mscaler] Input Stream Header:
   INFO: [y4mscaler] <<<   frame size:  768x576 pixels (663552 bytes)
   INFO: [y4mscaler] <<<   frame rate:  25/1 fps (~25.000000)
   INFO: [y4mscaler] <<<    interlace:  top-field-first
   INFO: [y4mscaler] <<< sample aspect ratio:  1:1
   INFO: [y4mscaler] Source matte region defaulting to full source frame.
   INFO: [y4mscaler] Source active region defaulting to full source frame.
   INFO: [y4mscaler] Target interlacing defaulting to match source.
   INFO: [y4mscaler] Target chroma subsampling defaulting to match source.
   INFO: [y4mscaler] Target active region defaulting to full target frame.
   INFO: [y4mscaler] Deriving ratios from active regions and SARs...
   INFO: [y4mscaler] ...using scaling ratios which pad target.
   INFO: [y4mscaler] ...using scaling ratios which are simple.
++ WARN: [y4mscaler] Target active region clipped by projection of source.
++ WARN: [y4mscaler] Source active region clipped by projection of target.
   INFO: [y4mscaler] <<<    interlace:  top-field-first
   INFO: [y4mscaler] <<< sample aspect ratio:  1:1
   INFO: [y4mscaler] Source matte region defaulting to full source frame.
   INFO: [y4mscaler] Source active region defaulting to full source frame.
   INFO: [y4mscaler] Target interlacing defaulting to match source.
   INFO: [y4mscaler] Target chroma subsampling defaulting to match source.
   INFO: [y4mscaler] Target active region defaulting to full target frame.
   INFO: [y4mscaler] Deriving ratios from active regions and SARs...
   INFO: [y4mscaler] ...using scaling ratios which pad target.
   INFO: [y4mscaler] ...using scaling ratios which are simple.
++ WARN: [y4mscaler] Target active region clipped by projection of source.
++ WARN: [y4mscaler] Source active region clipped by projection of target.
   INFO: [y4mscaler] === SOURCE parameters: =================
   INFO: [y4mscaler] < stream:
   INFO: [y4mscaler] <   768x576, SAR 1:1, top-field-first
   INFO: [y4mscaler] <   chroma subsampling:  420_JPEG
   INFO: [y4mscaler] <   chroma ss ratios:  x 1:2  y 1:2
   INFO: [y4mscaler] < active region:
   INFO: [y4mscaler] <   704.000000x574.723164 at 32.000000,0.666667
   INFO: [y4mscaler] < matte region:
   INFO: [y4mscaler] <   768x576 at 0,0  (bg Y'CbCr: 16,128,128)
   INFO: [y4mscaler] === SCALING parameters: ================
   INFO: [y4mscaler] | Scaler:  Matto's Generic Scaler
   INFO: [y4mscaler] |          kernels:  sinc:4, sinc:4
   INFO: [y4mscaler] === SOURCE parameters: =================
   INFO: [y4mscaler] < stream:
   INFO: [y4mscaler] <   768x576, SAR 1:1, top-field-first
   INFO: [y4mscaler] <   chroma subsampling:  420_JPEG
   INFO: [y4mscaler] <   chroma ss ratios:  x 1:2  y 1:2
   INFO: [y4mscaler] < active region:
   INFO: [y4mscaler] <   704.000000x574.723164 at 32.000000,0.666667
   INFO: [y4mscaler] < matte region:
   INFO: [y4mscaler] <   768x576 at 0,0  (bg Y'CbCr: 16,128,128)
   INFO: [y4mscaler] === SCALING parameters: ================
   INFO: [y4mscaler] | Scaler:  Matto's Generic Scaler
   INFO: [y4mscaler] |          kernels:  sinc:4, sinc:4
   INFO: [y4mscaler] === TARGET parameters: =================
   INFO: [y4mscaler] > stream:
   INFO: [y4mscaler] >   704x756, SAR 59:54, top-field-first
   INFO: [y4mscaler] <   chroma subsampling:  420_JPEG
   INFO: [y4mscaler] <   chroma ss ratios:  x 1:2  y 1:2
   INFO: [y4mscaler] > active region:
   INFO: [y4mscaler] >   704x628 at 0,64  (bg Y'CbCr: 16,128,128)
   INFO: [y4mscaler] > X ratio:  1/1
   INFO: [y4mscaler] > Y ratio:  59/54
   INFO: [mpeg2enc] Selecting DVD output profile
   INFO: [mpeg2enc] Assuming norm PAL
++ WARN: [mpeg2enc] No aspect ratio specifed and no guess possible: assuming 4:3
  INFO: [y4mscaler] === TARGET parameters: =================
   INFO: [y4mscaler] > stream:
   INFO: [y4mscaler] >   704x756, SAR 59:54, top-field-first
   INFO: [y4mscaler] <   chroma subsampling:  420_JPEG
   INFO: [y4mscaler] <   chroma ss ratios:  x 1:2  y 1:2
   INFO: [y4mscaler] > active region:
   INFO: [y4mscaler] >   704x628 at 0,64  (bg Y'CbCr: 16,128,128)
   INFO: [y4mscaler] > X ratio:  1/1
   INFO: [y4mscaler] > Y ratio:  59/54
   INFO: [mpeg2enc] Selecting DVD output profile
   INFO: [mpeg2enc] Assuming norm PAL
++ WARN: [mpeg2enc] No aspect ratio specifed and no guess possible:
assuming 4:3 display aspect!
   INFO: [mpeg2enc] Interlaced input - selecting interlaced encoding.
   INFO: [mpeg2enc] Encoding MPEG-2 video to video_tmp.m2v
   INFO: [mpeg2enc] Horizontal size: 704 pel
   INFO: [mpeg2enc] Vertical size: 756 pel
   INFO: [mpeg2enc] Aspect ratio code: 2 = 4:3 display
   INFO: [mpeg2enc] Frame rate code:   3 = 25.0 (PAL/SECAM VIDEO /
converted FILM)
   INFO: [mpeg2enc] Bitrate: 7500 KBit/s
   INFO: [mpeg2enc] Quality factor: 8 (Quantisation = 9) (1=best, 31=worst)
   INFO: [mpeg2enc] Field order for input: top-field-first
   INFO: [mpeg2enc] Sequence unlimited length
display aspect!
   INFO: [mpeg2enc] Interlaced input - selecting interlaced encoding.
   INFO: [mpeg2enc] Encoding MPEG-2 video to video_tmp.m2v
   INFO: [mpeg2enc] Horizontal size: 704 pel
   INFO: [mpeg2enc] Vertical size: 756 pel
   INFO: [mpeg2enc] Aspect ratio code: 2 = 4:3 display
   INFO: [mpeg2enc] Frame rate code:   3 = 25.0 (PAL/SECAM VIDEO /
converted FILM)
   INFO: [mpeg2enc] Bitrate: 7500 KBit/s
   INFO: [mpeg2enc] Quality factor: 8 (Quantisation = 9) (1=best, 31=worst)
   INFO: [mpeg2enc] Field order for input: top-field-first
   INFO: [mpeg2enc] Sequence unlimited length
   INFO: [mpeg2enc] Search radius: 16
   INFO: [mpeg2enc] GOP SIZE RANGE 9 TO 15
   INFO: [mpeg2enc] Setting colour/gamma parameters to "PAL B/G"
   INFO: [mpeg2enc] Progressive format frames = 0
**ERROR: [mpeg2enc] Vertical size is greater than permitted in specified Level
   INFO: [y4mscaler] Output Stream Header:
   INFO: [y4mscaler] >>>   frame size:  704x756 pixels (798336 bytes)
   INFO: [y4mscaler] >>>   frame rate:  25/1 fps (~25.000000)
   INFO: [y4mscaler] >>>    interlace:  top-field-first
   INFO: [y4mscaler] >>> sample aspect ratio:  59:54
   INFO: [y4mscaler] Frame number 0
   INFO: [y4mscaler] End of stream at frame 0.
  INFO: [mpeg2enc] Search radius: 16
   INFO: [mpeg2enc] GOP SIZE RANGE 9 TO 15
   INFO: [mpeg2enc] Setting colour/gamma parameters to "PAL B/G"
   INFO: [mpeg2enc] Progressive format frames = 0
**ERROR: [mpeg2enc] Vertical size is greater than permitted in specified Level
   INFO: [y4mscaler] Output Stream Header:
   INFO: [y4mscaler] >>>   frame size:  704x756 pixels (798336 bytes)
   INFO: [y4mscaler] >>>   frame rate:  25/1 fps (~25.000000)
   INFO: [y4mscaler] >>>    interlace:  top-field-first
   INFO: [y4mscaler] >>> sample aspect ratio:  59:54
   INFO: [y4mscaler] Frame number 0
   INFO: [y4mscaler] End of stream at frame 0.
   INFO: [mp2enc] Opened WAV file, freq = 44100 Hz, channels = 2, bits = 16
   INFO: [mp2enc] format = 0x1, audio length = 2147483392 bytes

And besides when I playing captured files with mplayer, it tells me
that file is bad interleaved

localhost 2 # mplayer -identify 000000001.avi
MPlayer 1.0pre7try2-3.3.5-20050130 (C) 2000-2005 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 3)
Detected cache-line size is 32 bytes
MMX2 supported but disabled
CPUflags:  MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX SSE



85 audio & 196 video codecs
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 000000001.avi.
Cache fill:  0.00% (0 bytes)    AVI file format detected

Compiled for x86 CPU with extensions: MMX SSE



85 audio & 196 video codecs
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 000000001.avi.
Cache fill:  0.00% (0 bytes)    AVI file format detected.
ID_VIDEO_ID=0
ID_AUDIO_ID=1
VIDEO:  [MJPG]  768x576  24bpp  25.000 fps  45775.9 kbps (5587.9 kbyte/s)
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
ID_FILENAME=000000001.avi
ID_VIDEO_FORMAT=MJPG
ID_VIDEO_BITRATE=45775920
ID_VIDEO_WIDTH=768
ID_VIDEO_ID=0
ID_AUDIO_ID=1
VIDEO:  [MJPG]  768x576  24bpp  25.000 fps  45775.9 kbps (5587.9 kbyte/s)
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
ID_FILENAME=000000001.avi
ID_VIDEO_FORMAT=MJPG
ID_VIDEO_BITRATE=45775920
ID_VIDEO_WIDTH=768
ID_VIDEO_HEIGHT=576
ID_VIDEO_FPS=25.000
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_CODEC=pcm
ID_AUDIO_FORMAT=1
ID_AUDIO_BITRATE=1411200
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
ID_LENGTH=337
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
ID_VIDEO_HEIGHT=576
ID_VIDEO_FPS=25.000
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_CODEC=pcm
ID_AUDIO_FORMAT=1
ID_AUDIO_BITRATE=1411200
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
ID_LENGTH=337
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm:ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
AF_pre: 44100Hz/2ch/s16le
AO: [oss] 44100Hz 2ch s16le (2 bps)
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
Starting playback...
VDec: vo config request - 768 x 576 (preferred csp: Planar 422P)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar 422P as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.

Selected video codec: [ffmjpeg] vfm:ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
AF_pre: 44100Hz/2ch/s16le
AO: [oss] 44100Hz 2ch s16le (2 bps)
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
Starting playback...
VDec: vo config request - 768 x 576 (preferred csp: Planar 422P)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar 422P as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8

SwScaler: BICUBIC scaler, from Planar 422P to Planar YV12 using MMX
VO: [xv] 768x576 => 768x576 Planar YV12
A:   1.5 V:   0.6 A-V:  0.901 ct:  0.060  16/ 16 273%  8% 61.1% 15 0 28%
Badly interleaved AVI file detected - switching to -ni mode...
A:   3.5 V:   1.5 A-V:  2.006 ct:  0.152  39/ 39 220%  3% 25.9% 38 0 27%

So, I am now unable to convert videos using mjpegtools :)

May be I have captured files with some mistake?

Thank you very much :)

Good Luck

Norayr Chilingaryan


---
http://www.geocities.com/asprayama/if-so


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to