[FFmpeg-user] No video only audio in the output file

richard nirmal singh tuty.richard at gmail.com
Tue May 9 17:31:09 EEST 2017


This command creates thumbnail images but output mp4 file has only audio no
video in it. Here is the stack trace of it.

fmmpeg -y -i MHPDV000195.mpg -i DAL_WaterMark642x342_new.png -r 1/10 -s
500x376 -f image2 OTMM__OUTPUT__FILE%4d.jpg -s 640x352 -aspect 16:9 -r
29.97 -b:v 800000 -b:a 96000 -ar 48000 -filter_complex 'overlay'
MHPDV000195-O.mp4

ffmpeg version N-85750-ga75ef15 Copyright (c) 2000-2017 the FFmpeg
developers
  built with gcc 6.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-cuda
--enable-cuvid --e
nable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc
--enable-avisynth --
enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
--enable-iconv
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
--enable-li
bfreetype --enable-libgme --enable-libgsm --enable-libilbc
--enable-libmodplug -
-enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enabl
e-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-li
bsnappy --enable-libsoxr --enable-libspeex --enable-libtheora
--enable-libtwolam
e --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx
 --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265
--enable
-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
  libavutil      55. 61.100 / 55. 61.100
  libavcodec     57. 93.100 / 57. 93.100
  libavformat    57. 72.101 / 57. 72.101
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6. 88.100 /  6. 88.100
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
Input #0, mpeg, from 'MHPDV000195.mpg':
  Duration: 00:02:37.89, start: 0.213367, bitrate: 4194 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bottom
first), 432
x324 [SAR 1:1 DAR 4:3], 3932 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 44100 Hz, stereo, s16p, 128 kb/s
Input #1, png_pipe, from 'DAL_WaterMark642x342_new.png':
  Duration: N/A, bitrate: N/A
    Stream #1:0: Video: png, rgba(pc), 652x342, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 (mpeg2video) -> overlay:main (graph 0)
  Stream #1:0 (png) -> overlay:overlay (graph 0)
  overlay (graph 0) -> Stream #0:0 (mjpeg)
  Stream #1:0 -> #1:0 (png (native) -> h264 (libx264))
  Stream #0:1 -> #1:1 (mp2 (native) -> aac (native))
Press [q] to stop, [?] for help
[swscaler @ 000000000227e7c0] deprecated pixel format used, make sure you
did se
t range correctly
Output #0, image2, to 'OTMM__OUTPUT__FILE%4d.jpg':
  Metadata:
    encoder         : Lavf57.72.101
    Stream #0:0: Video: mjpeg, yuvj420p(pc), 500x376 [SAR 376:375 DAR 4:3],
q=2-
31, 200 kb/s, 0.10 fps, 0.10 tbn, 0.10 tbc (default)
    Metadata:
      encoder         : Lavc57.93.100 mjpeg
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
No pixel format specified, yuv444p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0000000000519a20] using SAR=44/45
[libx264 @ 0000000000519a20] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2
AVX LZCNT
[libx264 @ 0000000000519a20] profile High 4:4:4 Predictive, level 3.0,
4:4:4 8-b
it
[libx264 @ 0000000000519a20] 264 - core 148 r2762 90a61ec - H.264/MPEG-4
AVC cod
ec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options:
cabac=1 r
ef=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_pski
p=1 chroma_qp_offset=4 threads=3 lookahead_threads=1 sliced_threads=0 nr=0
decim
ate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3
b_pyramid=2 b_a
dapt=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=abr mbtree=1 bitrate=800
ratetol
=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #1, mp4, to 'MHPDV000195-O.mp4':
  Metadata:
    encoder         : Lavf57.72.101
    Stream #1:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p,
640x35
2 [SAR 44:45 DAR 16:9], q=-1--1, 800 kb/s, 29.97 fps, 11988 tbn, 29.97 tbc
    Metadata:
      encoder         : Lavc57.93.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/800000 buffer size: 0 vbv_delay: -1
    Stream #1:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz,
stereo, flt
p, 96 kb/s
    Metadata:
      encoder         : Lavc57.93.100 aac
frame=    2 fps=0.0 q=1.6 q=0.0 size=N/A time=00:00:20.00 bitrate=N/A dup=0
drop
frame=    3 fps=2.9 q=1.6 q=0.0 size=N/A time=00:00:30.00 bitrate=N/A dup=0
drop
frame=    3 fps=2.0 q=1.6 q=0.0 size=N/A time=00:00:30.00 bitrate=N/A dup=0
drop
frame=    4 fps=2.0 q=1.6 q=0.0 size=N/A time=00:00:40.00 bitrate=N/A dup=0
drop
frame=    4 fps=1.6 q=1.6 q=0.0 size=N/A time=00:00:40.00 bitrate=N/A dup=0
drop
frame=    5 fps=1.6 q=1.6 q=0.0 size=N/A time=00:00:50.00 bitrate=N/A dup=0
drop
frame=    6 fps=1.7 q=1.6 q=0.0 size=N/A time=00:01:00.00 bitrate=N/A dup=0
drop
frame=    6 fps=1.5 q=1.6 q=0.0 size=N/A time=00:01:00.00 bitrate=N/A dup=0
drop
frame=    7 fps=1.5 q=1.6 q=0.0 size=N/A time=00:01:10.00 bitrate=N/A dup=0
drop
frame=    7 fps=1.4 q=1.6 q=0.0 size=N/A time=00:01:10.00 bitrate=N/A dup=0
drop
frame=    8 fps=1.4 q=1.6 q=0.0 size=N/A time=00:01:20.00 bitrate=N/A dup=0
drop
frame=    8 fps=1.3 q=1.6 q=0.0 size=N/A time=00:01:20.00 bitrate=N/A dup=0
drop
frame=    9 fps=1.4 q=1.6 q=0.0 size=N/A time=00:01:30.00 bitrate=N/A dup=0
drop
frame=   10 fps=1.4 q=1.6 q=0.0 size=N/A time=00:01:40.00 bitrate=N/A dup=0
drop
frame=   10 fps=1.3 q=1.6 q=0.0 size=N/A time=00:01:40.00 bitrate=N/A dup=0
drop
frame=   11 fps=1.4 q=1.6 q=0.0 size=N/A time=00:01:50.00 bitrate=N/A dup=0
drop
frame=   11 fps=1.3 q=1.6 q=0.0 size=N/A time=00:01:50.00 bitrate=N/A dup=0
drop
frame=   12 fps=1.3 q=1.6 q=0.0 size=N/A time=00:02:00.00 bitrate=N/A dup=0
drop
frame=   12 fps=1.2 q=1.6 q=0.0 size=N/A time=00:02:00.00 bitrate=N/A dup=0
drop
frame=   13 fps=1.3 q=1.6 q=0.0 size=N/A time=00:02:10.00 bitrate=N/A dup=0
drop
frame=   13 fps=1.2 q=1.6 q=0.0 size=N/A time=00:02:10.00 bitrate=N/A dup=0
drop
frame=   14 fps=1.3 q=1.6 q=0.0 size=N/A time=00:02:20.00 bitrate=N/A dup=0
drop
frame=   15 fps=1.3 q=1.6 q=0.0 size=N/A time=00:02:30.00 bitrate=N/A dup=0
drop
frame=   15 fps=1.2 q=1.6 q=0.0 size=N/A time=00:02:30.00 bitrate=N/A dup=0
drop
frame=   16 fps=1.3 q=1.6 q=0.0 size=N/A time=00:02:40.00 bitrate=N/A dup=0
drop
frame=   16 fps=1.2 q=1.6 q=0.0 size=N/A time=00:02:40.00 bitrate=N/A dup=0
drop
frame=   17 fps=1.2 q=1.6 q=0.0 size=N/A time=00:02:50.00 bitrate=N/A dup=0
drop
frame=   17 fps=1.2 q=1.6 Lq=32.0 size=N/A time=00:02:50.00 bitrate=N/A
dup=0 dr
op=4715 speed=12.1x
video:762kB audio:1890kB subtitle:0kB other streams:0kB global headers:0kB
muxin
g overhead: unknown
[libx264 @ 0000000000519a20] frame I:1     Avg QP:29.58  size:  4492
[libx264 @ 0000000000519a20] mb I  I16..4: 51.4% 22.8% 25.8%
[libx264 @ 0000000000519a20] final ratefactor: 27.15
[libx264 @ 0000000000519a20] 8x8 transform intra:22.8%
[libx264 @ 0000000000519a20] coded y,u,v intra: 14.6% 0.0% 0.0%
[libx264 @ 0000000000519a20] i16 v,h,dc,p: 53% 45%  2%  0%
[libx264 @ 0000000000519a20] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27%  5% 64%  3%
 1%
 0%  0%  0%  0%
[libx264 @ 0000000000519a20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 18% 27%  9%
 9%
 1%  1%  1%  1%
[libx264 @ 0000000000519a20] kb/s:1077.00
[aac @ 0000000000525740] Qavg: 697.071


Watermarking command this commands work which creates mp4 file with both
video and audio.

ffmpeg.exe -y -i MHPDV000195.mpg -i DAL_WaterMark642x342_new.png -s 640x352
-aspect 16:9 -r 29.97 -b:v 800000 -b:a 96000 -ar 48000 -filter_complex
"overlay=W-w-0:H-h-0"  MHPDV000195-O.mp4

Regards,
Richard

On Tue, May 9, 2017 at 6:44 PM, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:

> 2017-05-09 14:21 GMT+02:00 richard nirmal singh <tuty.richard at gmail.com>:
>
> > ffmpeg.exe -loglevel warning -y -i MHPDV000195.mpg -i
> > WaterMark642x352_new.png -r 1/10 -s 500x376 -f image2
> > OTMM__OUTPUT__FILE%4d.jpg -s 640x352 -aspect 16:9 -r 29.97 -b:v 800000
> -b:a
> > 96000 -ar 48000 -filter_complex "overlay=W-w-0:H-h-0" MHPDV000195-O.mp4
>
> Please remove the loglevel option and provide both command line
> and complete, uncut console output when asking for help here.
>
> Remember to test current FFmpeg git head, Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".




-- 
Regards,
Richard


More information about the ffmpeg-user mailing list