[FFmpeg-user] mmsh streams and immense buffering

Patrick Cornwell pat at nerdy.co.uk
Wed May 23 01:43:33 CEST 2012


> Forgot to mention that 10000 works fine here.
> 
> Sorry, Carl Eugen

Carl,

I wonder if you can help me with the next problem!

Weirdly now, if I try to do an on-the-fly conversion to a file, the
problematic streams don't seem to save any data. Those earlier image%d.jpg's
seemed to work but any other format (other than .wmv which works) does not.
This is what happens, for example with a simple command to go to .mp4:

C:\ffmpeg\bin>ffmpeg -probesize 2048 -i "mmsh://209.105.232.35/csmello58"
movie.mp4

ffmpeg version N-40640-g5edd4fc Copyright (c) 2000-2012 the FFmpeg
developers
built on May 13 2012 18:02:34 with gcc 4.6.3
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r
--enable-libass --enable-libcelt --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libfreetype --enable-libgsm
--enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs
--enable-libxvid --enable-zlib 
libavutil      51. 50.100 / 51. 50.100
libavcodec     54. 21.101 / 54. 21.101
libavformat    54.  4.100 / 54.  4.100
libavdevice    53.  4.100 / 53.  4.100
libavfilter     2. 72.105 /  2. 72.105
libswscale      2.  1.100 /  2.  1.100
libswresample   0. 11.100 /  0. 11.100
libpostproc    52.  0.100 / 52.  0.100
[wmv3 @ 0000000001dd7220] Extra data: 8 bits left, value: 0
[asf @ 0000000001f0f040] Stream #0: not enough frames to estimate rate;
consider increasing probesize
[asf @ 0000000001f0f040] Stream #1: not enough frames to estimate rate;
consider increasing probesize                                        [asf @
0000000001f0f040] Estimating duration from bitrate, this may be inaccurate
Input #0, asf, from 'mmsh://209.105.232.35/csmello58':
Metadata:
WMFSDKVersion   : 11.0.6002.18049
WMFSDKNeeded    : 0.0.0.0000
IsVBR           : 0
Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 22050 Hz, 1 channels,
s16, 16 kb/s 
Stream #0:1(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 640x480,
225 kb/s, 1k tbr, 1k tbn, 1k tbc
w:640 h:480 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:flags=2
[buffersink @ 0000000001e16420] No opaque field provided
[libx264 @ 0000000001e4e9e0] MB rate (1200000) > level limit (983040)
[libx264 @ 0000000001e4e9e0] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.2 AVX
[libx264 @ 0000000001e4e9e0] profile High, level 5.1
[libx264 @ 0000000001e4e9e0] 264 - core 120 r2164 da19765 - H.264/MPEG-4 AVC
codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options:
cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1
cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1
weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40
intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0
qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Guessed Channel Layout for  Input Stream #0.0 : mono
[wmv3 @ 0000000001dd7220] Extra data: 8 bits left, value: 0
Output #0, mp4, to 'movie.mp4':
Metadata:
WMFSDKVersion   : 11.0.6002.18049
WMFSDKNeeded    : 0.0.0.0000
IsVBR           : 0
Stream #0:0(eng): Video: h264 (![0][0][0] / 0x0021), yuv420p, 640x480,
q=-1--1, 1k tbn, 1k tbc
Stream #0:1(eng): Audio: aac (@[0][0][0] / 0x0040), 22050 Hz, mono, s16, 128
kb/s
Stream mapping:
Stream #0:1 -> #0:0 (wmv3 -> libx264)
Stream #0:0 -> #0:1 (wmav2 -> libvo_aacenc)
Press [q] to stop, [?] for help
frame=  401 fps=0.0 q=33.0 size=       0kB time=00:00:00.00 bitrate=
0.0kbits/
frame=  753 fps=701 q=33.0 size=       0kB time=00:00:00.00 bitrate=
0.0kbits/
frame= 1121 fps=701 q=33.0 size=       0kB time=00:00:00.00 bitrate=
0.0kbits/
frame= 1473 fps=685 q=33.0 size=       0kB time=00:00:00.00 bitrate=
0.0kbits/
frame= 1841 fps=687 q=33.0 size=       0kB time=00:00:00.00 bitrate=
0.0kbits/
frame= 2081 fps=652 q=33.0 size=       0kB time=00:00:00.00 bitrate=
0.0kbits/
frame= 2401 fps=650 q=33.0 size=       0kB time=00:00:00.00 bitrate=
0.0kbits/
frame= 2753 fps=647 q=33.0 size=       0kB time=00:00:00.00 bitrate=
0.0kbits/
frame= 3073 fps=646 q=33.0 size=       0kB time=00:00:00.00 bitrate=
0.0kbits/
frame= 3393 fps=645 q=33.0 size=       0kB time=00:00:00.00 bitrate=
0.0kbits/
frame= 3761 fps=649 q=33.0 size=       0kB time=00:00:00.00 bitrate=
0.0kbits/
Trying to remove 1024 samples, but que empty


When I pressed 'q', FFMpeg actually crashed after outputting the line about
'trying to remove 1024 samples' above. There is no further info other than
the usual 'FFMPEG has stopped working' and the outputting of a windows
memory dump to a temp location (which seems to mean nothing).
The 'movie.mp4' contains this and this only:
"    ftypisom   isomiso2avc1mp41   free    mdat"

I have tried altering the rate (adding -r 25 for example) but that makes no
difference.

The non problematic (i.e. don't have to muck about with probesize) streams
save in whatever format without problems. So, again, confusion!

Hope you can help,

Pat



More information about the ffmpeg-user mailing list