[Libav-user] avconv mjpeg vfr input

mm26859 at gmail.com mm26859 at gmail.com
Sun Aug 26 14:10:45 CEST 2012


Dňa 26.08.2012 13:15, Carl Eugen Hoyos wrote / napísal(a):
> Please note that avconv is known to contain several hundred 
> regressions over ffmpeg, some of them possibly security relevant, so 
> it cannot be supported here.
my mistake
>
>> is there any way to preserve VFR ?
> This does not work for mp4, but I believe it should work
> for other containers, please add (ffmpeg) command line
> together with complete, uncut console output.
btw. mp4 generally supports vfr (vlc works)

so i installed the ffmpeg from ppa jon-severinsson
the end result is , that the ouput is CFR ,but expected is VFR
the resulting file has length 10:00 but it has frames from much longer 
input cca. 18s

ffmpeg -analyzeduration 0 -f mjpeg -i 
"http://ip/videostream.cgi?user=admin&pwd=&resolution=32&rate=0" -vsync 
vfr -t 10:00 -vcodec copy -y output.mkv

output:

WARNING: gnome-keyring:: couldn't connect to: 
/tmp/keyring-QCVqZz/pkcs11: No such file or directory
ffmpeg version 0.10.4-6:0.10.4-0ubuntu0jon2 Copyright (c) 2000-2012 the 
FFmpeg developers
built on Jun 12 2012 23:02:05 with gcc 4.6.3
configuration: --extra-version='6:0.10.4-0ubuntu0jon2' --arch=amd64 
--prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --disable-stripping 
--enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls 
--enable-libgsm --enable-libschroedinger --enable-libspeex 
--enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib 
--enable-libvpx --enable-runtime-cpudetect --enable-libfreetype 
--enable-libpulse --enable-vaapi --enable-librtmp --enable-gpl 
--enable-postproc --enable-x11grab --enable-libcdio --enable-version3 
--enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared 
--disable-static
avutil configuration: --extra-version='6:0.10.4.0ubuntu0jon2.2' 
--arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu 
--disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib 
--enable-gnutls --enable-libgsm --enable-libschroedinger 
--enable-libspeex --enable-libtheora --enable-libvorbis 
--enable-pthreads --enable-zlib --enable-libvpx 
--enable-runtime-cpudetect --enable-libfreetype --enable-libpulse 
--enable-vaapi --enable-libopenjpeg --enable-libmp3lame --enable-librtmp 
--enable-frei0r --enable-libopencv --enable-gpl --enable-postproc 
--enable-x11grab --enable-libcdio --enable-libx264 --enable-version3 
--enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libdc1394 
--shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
swresample configuration: --extra-version='6:0.10.4.0ubuntu0jon2.2' 
--arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu 
--disable-stripping --enable-vaapi --enable-vdpau --enable-bzlib 
--enable-gnutls --enable-libgsm --enable-libschroedinger 
--enable-libspeex --enable-libtheora --enable-libvorbis 
--enable-pthreads --enable-zlib --enable-libvpx 
--enable-runtime-cpudetect --enable-libfreetype --enable-libpulse 
--enable-vaapi --enable-libopenjpeg --enable-libmp3lame --enable-librtmp 
--enable-frei0r --enable-libopencv --enable-gpl --enable-postproc 
--enable-x11grab --enable-libcdio --enable-libx264 --enable-version3 
--enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libdc1394 
--shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
[mjpeg @ 0x815440] max_analyze_duration 0 reached at 0
[mjpeg @ 0x815440] Estimating duration from bitrate, this may be inaccurate
Input #0, mjpeg, from 
'http://ip/videostream.cgi?user=admin&pwd=&resolution=32&rate=0':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj422p, 640x480, 25 tbr, 1200k tbn, 25 tbc
Output #0, matroska, to 'output.mkv':
Metadata:
encoder : Lavf53.32.100
Stream #0:0: Video: mjpeg, yuvj422p, 640x480, q=2-31, 1k tbn, 1200k tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame= 250 fps= 13 q=-1.0 Lsize= 9973kB time=00:00:09.96 
bitrate=8202.4kbits/s
video:9962kB audio:0kB global headers:0kB muxing overhead 0.102927%

thanks for help.

M.


More information about the Libav-user mailing list