[MPlayer-users] mplayer won't play what I mencoder ed

Carl Karsten carl at personnelware.com
Sun Nov 4 19:55:08 CET 2007


John Brown wrote:
> 
> On Sun, 4 Nov 2007 11:56:46 -0600, Carl Karsten wrote:
>> John Brown wrote:
>>> On Sun, 4 Nov 2007 09:31:46 -0600, Carl Karsten wrote:
>>>> Trying to do mpg+=jpg, but I can't even make a useable mpg. (when I try to add
>>>> a 2nd jpg, mencoder errors, and I am trying to debug that, which lead me to this.)
>>>>
>>>> ++ mencoder mf://071103100100.jpg -mf type=jpeg -nosound -ovc lavc -lavcopts
>>>> vcodec=mpeg2video:cmp=2:subcmp=2:mbd=2:trell:vqscale=31: -of mpeg -ofps 30 -vf
>>>> harddup -o q1.mpg
>>>>
>>> MPlayer cannot play a file that has only one frame. I believe that it needs at least 3.
>> 10 did the trick: mencoder mf://071103100?00.jpg...
>>
>> Ok, so does mencoder have a similar restriction?
>>
>> Carl K
> 
> I don't think so.
 > Windows Media Player can play my 1-frame MPEG produced by MEncoder.

good.  looks like something else is creeping in.  see below.

> By the way, are you taking pictures at 30 fps?
No, but I know what your getting at: -ofps 30
That is kinda a left over from the output options I was using when mencoder-ing 
an .avi made from the .jpg's by some win thing.  once I hard the source was a 
dir of jpeg's I decided to cut that part out.

However, the jpegs are snapped every min as part of a weather station, the 
resulting mpg should be a time laps of the last X hours.  so the 30fps may be 
just fine.  I'll worry about tuning that once I get something to complete.

Here is my current wall:

# make seed file, then add 2 jpg's using add.sh script.

mencoder mf://071103100100.jpg -mf type=jpeg -nosound -ovc lavc -lavcopts 
vcodec=mpeg2video:cmp=2:subcmp=2:mbd=2:trell:vqscale=31: -of mpeg -ofps 30 -vf 
harddup -o q.mpg

./add.sh ./071103100100.jpg
./add.sh ./071103100200.jpg


# add.sh
# make i.mpg out of passed jpg
# combine i.mpg and q.mpg into q1.mpg
# replace q.mpg with q1.mpg

mencoder mf://$1 -mf type=jpeg -nosound -ovc lavc -lavcopts 
vcodec=mpeg2video:cmp=2:subcmp=2:mbd=2:trell:vqscale=31: -of mpeg -ofps 30 -vf 
harddup -o i.mpg
mencoder q.mpg i.mpg -ovc copy -of mpeg -o q1.mpg
mv -f q1.mpg q.mpg


output:

++ mencoder mf://071103100100.jpg -mf type=jpeg -nosound -ovc lavc -lavcopts 
vcodec=mpeg2video:cmp=2:subcmp=2:mbd=2:trell:vqscale=31: -of mpeg -ofps 30 -vf 
harddup -o q.mpg
MEncoder 2:1.0~rc1-0ubuntu13 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 2, Stepping: 9)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 16  data: 0x0 - 0x0
MF file format detected.
[mf] search expr: 071103100100.jpg*
[mf] number of files: 1 (4)
VIDEO:  [IJPG]  0x0  24bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:16  fourcc:0x47504A49  size:0x0  fps:25.00  ftime:=0.0400
PACKET SIZE: 2048 bytes, deltascr: 245760
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
Limiting audio preload to 0.4s.
Increasing audio density to 4.
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 3)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
videocodec: libavcodec (640x480 fourcc=3267706d [mpg2])
[VE_LAVC] High quality encoding selected (non-realtime)!
[VE_LAVC] Using constant qscale = 31.000000 (VBR).
Writing header...
INITV: 0.200, 0.167, fps: 30.000
Pos:   0.0s      1f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
Flushing video frames
Writing index...

Overhead: 30.311% (3811 / 12573)
Writing header...

Video stream: 3017.520 kbit/s  (377190 B/s)  size: 12573 bytes  0.033 secs  1 frames
++ ./add.sh ./071103100100.jpg
+++ mencoder mf://./071103100100.jpg -mf type=jpeg -nosound -ovc lavc -lavcopts 
vcodec=mpeg2video:cmp=2:subcmp=2:mbd=2:trell:vqscale=31: -of mpeg -ofps 30 -vf 
harddup -o i.mpg
MEncoder 2:1.0~rc1-0ubuntu13 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 2, Stepping: 9)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 16  data: 0x0 - 0x0
MF file format detected.
[mf] search expr: ./071103100100.jpg*
[mf] number of files: 1 (4)
VIDEO:  [IJPG]  0x0  24bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:16  fourcc:0x47504A49  size:0x0  fps:25.00  ftime:=0.0400
PACKET SIZE: 2048 bytes, deltascr: 245760
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
Limiting audio preload to 0.4s.
Increasing audio density to 4.
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 3)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
videocodec: libavcodec (640x480 fourcc=3267706d [mpg2])
[VE_LAVC] High quality encoding selected (non-realtime)!
[VE_LAVC] Using constant qscale = 31.000000 (VBR).
Writing header...
INITV: 0.200, 0.167, fps: 30.000
Pos:   0.0s      1f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
Flushing video frames
Writing index...

Overhead: 30.311% (3811 / 12573)
Writing header...

Video stream: 3017.520 kbit/s  (377190 B/s)  size: 12573 bytes  0.033 secs  1 frames
+++ mencoder q.mpg i.mpg -ovc copy -of mpeg -o q1.mpg
MEncoder 2:1.0~rc1-0ubuntu13 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 2, Stepping: 9)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0  data: 0x0 - 0x4800
MPEG-PS file format detected.
MPEG: No audio stream found -> no sound.
VIDEO:  MPEG2  640x480  (aspect 1)  30.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:640x480  fps:30.00  ftime:=0.0333
PACKET SIZE: 2048 bytes, deltascr: 245760
videocodec: framecopy (640x480 24bpp fourcc=10000002)
Limiting audio preload to 0.4s.
Increasing audio density to 4.
success: format: 0  data: 0x0 - 0x4800
MPEG-PS file format detected.
MPEG: No audio stream found -> no sound.
VIDEO:  MPEG2  640x480  (aspect 1)  30.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:640x480  fps:30.00  ftime:=0.0333
videocodec: framecopy (640x480 24bpp fourcc=10000002)
Limiting audio preload to 0.4s.
Writing index...

Overhead: nan% (0 / 0)
Writing header...

Video stream:      nan kbit/s  (-2147483648 B/s)  size: 0 bytes  0.000 secs  0 
frames
+++ mv -f q1.mpg q.mpg
++ ./add.sh ./071103100200.jpg
+++ mencoder mf://./071103100200.jpg -mf type=jpeg -nosound -ovc lavc -lavcopts 
vcodec=mpeg2video:cmp=2:subcmp=2:mbd=2:trell:vqscale=31: -of mpeg -ofps 30 -vf 
harddup -o i.mpg
MEncoder 2:1.0~rc1-0ubuntu13 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 2, Stepping: 9)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 16  data: 0x0 - 0x0
MF file format detected.
[mf] search expr: ./071103100200.jpg*
[mf] number of files: 1 (4)
VIDEO:  [IJPG]  0x0  24bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:16  fourcc:0x47504A49  size:0x0  fps:25.00  ftime:=0.0400
PACKET SIZE: 2048 bytes, deltascr: 245760
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
Limiting audio preload to 0.4s.
Increasing audio density to 4.
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 3)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
videocodec: libavcodec (640x480 fourcc=3267706d [mpg2])
[VE_LAVC] High quality encoding selected (non-realtime)!
[VE_LAVC] Using constant qscale = 31.000000 (VBR).
Writing header...
INITV: 0.200, 0.167, fps: 30.000
Pos:   0.0s      1f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
Flushing video frames
Writing index...

Overhead: 29.723% (3754 / 12630)
Writing header...

Video stream: 3031.200 kbit/s  (378900 B/s)  size: 12630 bytes  0.033 secs  1 frames


+++ mencoder q.mpg i.mpg -ovc copy -of mpeg -o q1.mpg
MEncoder 2:1.0~rc1-0ubuntu13 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 2, Stepping: 9)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0  data: 0x0 - 0x800
MPEG: Missing video stream!? Contact the author, it may be a bug :(
Win32 LoadLibrary failed to load: avisynth.dll, /usr/lib/win32/avisynth.dll, 
/usr/local/lib/win32/avisynth.dll
libavformat file format detected.
LAVF_header: av_find_stream_info() failed
============ Sorry, this file format is not recognized/supported =============
=== If this file is an AVI, ASF or MPEG stream, please contact the author! ===
Cannot open demuxer.
Exiting...

Carl K



More information about the MPlayer-users mailing list