[MPlayer-users] combining a still with an audio file

Miriam English mim at miriam-english.org
Thu Jul 26 03:22:21 EEST 2018


It does look a bit like it has a problem with the image...

One point of difference between your output and mine is that yours gives:

Opening video filter: [scale]
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0x7f68a23c4120]bicubic scaler, from yuv444p to yuv420p using 
MMXEXT
videocodec: libavcodec (2860x4948 fourcc=34504d46 [FMP4])
Movie-Aspect is undefined - no prescaling applied.
Writing header...


where mine gives:

Opening video filter: [scale]
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
[swscaler @ 0x8c9c920]BICUBIC scaler, from yuv444p to yuv420p using MMX2
videocodec: libavcodec (800x600 fourcc=34504d46 [FMP4])
Writing header...

I don't know why that would be. Perhaps someone else here might have 
some insight.

I'm using an earlier version of libavcodec version 54.23.100 (internal)
Yours is more recent: libavcodec version 57.107.100 (external)

I doubt that would cause the problem though. If you want to email me 
directly (not through the list) the image as an attachment I'll try it 
with my sound file to try to rule that out.

Hmmm... when I tried rescaling my 800x600 image to the size of yours -- 
2860x4948 -- it encodes much more slowly. But the result refuses to play 
in mplayer at all, giving the error message:

Movie-Aspect is 0.58:1 - prescaling to correct movie aspect.
VO: [xv] 2860x4948 => 2860x4948 Planar YV12
Source image dimensions are too high: 2860x4948 (maximum is 4096x4096)
FATAL: Cannot initialize video driver.

Although my copy of mencoder did still seem to encode it properly:

Opening video filter: [scale]
Movie-Aspect is 0.58:1 - prescaling to correct movie aspect.
[swscaler @ 0x8c9c920]BICUBIC scaler, from yuv444p to yuv420p using MMX2
videocodec: libavcodec (2860x4948 fourcc=34504d46 [FMP4])
Writing header...

If I try to use a different player (vlc) it gives this error:
"Your video output acceleration driver does not support the required 
resolution: 2860x4948 pixels. The maximum supported resolution is 2860x4096.
Video output acceleration will be disabled. However, rendering videos 
with overly large resolution may cause severe performance degration."
but then goes ahead and shows it anyway.

Try resizing the image smaller and putting it on a background with a 
more normal aspect ratio. Try something radically smaller, like putting 
it on an 800x600 background. See if that fixes your problem.

Cheers,

     - Miriam


arthurpeabody wrote:
> Thanks, Ms English!
>
>>   seconds=443; for x in `seq $seconds`; do cat Sunset.jpg; done | mencoder
>>   -o out.avi -fps 1 -ovc lavc -demuxer lavf -lavfdopts format=mjpeg
>>   -audiofile Mirage.mp3 -oac copy -
> The file produced has the audio but a blank screen (I used the correct files for input).  Does anything in the output point to the problem?  The still is much larger than my screen, but I tried with a scaled-down version also.
>
> MEncoder 20180720-8.1.1 (C) 2000-2018 MPlayer Team
> 192 audio&  400 video codecs
> Reading from stdin...
> success: format: 0  data: 0x0 - 0x0
> libavformat version 57.83.100 (external)
> Forced lavf raw MJPEG video demuxer
> libavformat file format detected.
> [lavf] stream 0: video (mjpeg), -vid 0
> VIDEO:  [MJPG]  2860x4947  0bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
> Forced lavf raw MJPEG video demuxer
> Audio only file format detected.
> [V] filefmt:65536  fourcc:0x47504A4D  size:2860x4947  fps:25.000  ftime:=0.0400
> Input fps will be interpreted as 1.000 instead.
> libavcodec version 57.107.100 (external)
> Opening video filter: [expand osd=1]
> Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
> ==========================================================================
> Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
> Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG)
> ==========================================================================
> audiocodec: framecopy (format=55 chans=1 rate=22050 bits=16 B/s=4000 sample-0)
> Could not find matching colorspace - retrying with -vf scale...
> Opening video filter: [scale]
> Movie-Aspect is undefined - no prescaling applied.
> [swscaler @ 0x7f68a23c4120]bicubic scaler, from yuv444p to yuv420p using MMXEXT
> videocodec: libavcodec (2860x4948 fourcc=34504d46 [FMP4])
> Movie-Aspect is undefined - no prescaling applied.
> Writing header...
> ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
> Writing header...
> ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
> Pos:   1.0s      1f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
>
> Skipping frame!
> Pos:   1.0s      2f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.100 [0:31]
>
> Flushing video frames.
> Writing index...
> Writing header...
> ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
>
> Video stream: 4853.352 kbit/s  (606669 B/s)  size: 606669 bytes  1.000 secs  2 frames
>
> Audio stream:   32.000 kbit/s  (3999 B/s)  size: 99892 bytes  24.973 secs
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users

-- 
What is the most important thing in the world you could be working on right now, and if you are not working on that, why aren't you?
  -- Aaron Swartz (internet genius, philanthropist)



More information about the MPlayer-users mailing list