Dear list,

I was trying to convert a gif image to mp4. The conversion
didn't throw any error but the resulting file
(video.gif.mp4) is really small (70K) and doesn't play on
vlc. The original gif is 155M so I'm suspicious about the
conversion's success. Also notice from the debug output
that the input file'sduration was 00:00:00.04
(if that's relevant ?)

Any help appreciated.

ychaouche#ychaouche-PC 13:01:27 /mnt/partage_local/VIDEOS/SCREENCASTS $ avconv 
-v debug -i video.gif  -pix_fmt yuv420p video.gif.mp4
avconv version 9.20-6:9.20-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav 
developers
  built on Dec  7 2016 21:22:31 with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
  configuration: --arch=amd64 --enable-pthreads --enable-runtime-cpudetect 
--extra-version='6:9.20-0ubuntu0.14.04.1' --libdir=/usr/lib/x86_64-linux-gnu 
--prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype 
--enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame 
--enable-librtmp --enable-libopenjpeg --enable-libopus --enable-libpulse 
--enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi 
--enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl 
--enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 
--enable-libxvid --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared 
--disable-static
  avcodec     configuration: --arch=amd64 --enable-pthreads 
--enable-runtime-cpudetect --extra-version='6:9.20-0ubuntu0.14.04.1' 
--libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib 
--enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls 
--enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopenjpeg 
--enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex 
--enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis 
--enable-libvpx --enable-zlib --enable-gpl --enable-swscale --enable-libcdio 
--enable-x11grab --enable-libx264 --enable-libxvid 
--shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static 
--enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb 
--enable-version3 --enable-libvo-aacenc --enable-version3 
--enable-libvo-amrwbenc --enable-version3
  libavutil     52.  3. 0 / 52.  3. 0
  libavcodec    54. 35. 1 / 54. 35. 1
  libavformat   54. 20. 4 / 54. 20. 4
  libavdevice   53.  2. 0 / 53.  2. 0
  libavfilter    3.  3. 0 /  3.  3. 0
  libavresample  1.  0. 1 /  1.  0. 1
  libswscale     2.  1. 1 /  2.  1. 1
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set libav* logging level) with 
argument 'debug'.
Reading option '-i' ... matched as input file with argument 'video.gif'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) 
with argument 'yuv420p'.
Reading option 'video.gif.mp4' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set libav* logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file video.gif.
Successfully parsed a group of options.
Opening an input file: video.gif.
[image2 @ 0x1863940] Probe buffer size limit 5000000 reached
Input #0, image2, from 'video.gif':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0.0, 1, 1/25: Video: gif, pal8, 1280x720, 0/1, 25 tbn
Successfully openened the file.
Parsing a group of options: output file video.gif.mp4.
Applying option pix_fmt (set pixel format) with argument yuv420p.
Successfully parsed a group of options.
Opening an output file: video.gif.mp4.
File 'video.gif.mp4' already exists. Overwrite ? [y/N] y
Successfully openened the file.
[buffer @ 0x1868bc0] w:1280 h:720 pixfmt:pal8
[FPS filter @ 0x18661a0] Setting value '25/1' for key 'fps'
[fps @ 0x18688e0] fps=25/1
[buffersink @ 0x1867f40] auto-inserting filter 'auto-inserted fifo 0' between 
the filter 'fps for output stream 0:0' and the filter 'output stream 0:0'
[format @ 0x18682a0] auto-inserting filter 'auto-inserted scaler 0' between the 
filter 'Parsed filter 0 null' and the filter 'format'
[scale @ 0x18547a0] w:1280 h:720 fmt:pal8 -> w:1280 h:720 fmt:yuv420p flags:0x4
[libx264 @ 0x1864e00] using mv_range_thread = 56
[libx264 @ 0x1864e00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX 
AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x1864e00] profile High, level 3.1
[libx264 @ 0x1864e00] 264 - core 142 r2389 956c8d8 - H.264/MPEG-4 AVC codec - 
Copyleft 2003-2014 - 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=6 lookahead_threads=1 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.25 aq=1:1.00
Output #0, mp4, to 'video.gif.mp4':
  Metadata:
    encoder         : Lavf54.20.4
    Stream #0.0, 0, 1/25: Video: libx264, yuv420p, 1280x720, 1/25, q=-1--1, 25 
tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (gif -> libx264)
Press ctrl-c to stop encoding
[libx264 @ 0x1864e00] using mv_range_thread = 56
No more output streams to write to, finishing.
[libx264 @ 0x1864e00] using mv_range_thread = 56
[libx264 @ 0x1864e00] frame=   0 QP=29.63 NAL=3 Slice:I Poc:0   I:3600 P:0    
SKIP:0    size=69930 bytes
frame=    1 fps=  0 q=28.0 Lsize=      70kB time=0.04 bitrate=14281.0kbits/s
video:0kB audio:0kB global headers:0kB muxing overhead 182989.743590%
[libx264 @ 0x1864e00] frame I:1     Avg QP:29.63  size: 69930
[libx264 @ 0x1864e00] mb I  I16..4: 28.0% 28.8% 43.2%
[libx264 @ 0x1864e00] 8x8 transform intra:28.8%
[libx264 @ 0x1864e00] coded y,uvDC,uvAC intra: 35.3% 31.2% 25.6%
[libx264 @ 0x1864e00] i16 v,h,dc,p: 47% 52%  1%  0%
[libx264 @ 0x1864e00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37%  3% 58%  0%  0%  0%  
0%  0%  1%
[libx264 @ 0x1864e00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 34% 11%  3%  3%  3%  
4%  3%  5%
[libx264 @ 0x1864e00] i8c dc,h,v,p: 67% 23% 10%  1%
[libx264 @ 0x1864e00] kb/s:13986.00
[fps @ 0x18688e0] 1 frames in, 1 frames out; 0 frames dropped, 0 frames 
duplicated.
ychaouche#ychaouche-PC 13:02:18 /mnt/partage_local/VIDEOS/SCREENCASTS $ ls 
video*
-rwxrwxrwx 1 root root 155M Dec 26  2016 video.gif
-rwxrwxrwx 1 root root  70K Dec 24 13:02 video.gif.mp4
-rwxrwxrwx 1 root root 795K Apr  5  2016 video.mkv
-rwxrwxrwx 1 root root 791K Dec 24 11:05 video.mp4
-rwxrwxrwx 1 root root 9.9K Dec 24 10:40 videosbylength
ychaouche#ychaouche-PC 13:02:37 /mnt/partage_local/VIDEOS/SCREENCASTS $



_______________________________________________
libav-tools mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-tools

Reply via email to