Buffer Underfollow e ignorando a mensagem de buffer do ffmpeg

0

Eu só queria mudar o volume do arquivo mpeg, então tente assim.

(O arquivo mpeg é um arquivo NTSC-HD de 20Mbps)

    ffmpeg -i <inputfile.mpg> -vcodec copy -filter:a "volume=+3dB" <output.mpg>

E eu encontrei muitas mensagens de advertência como esta

[mpeg @ 00000000030c24c0] buffer underflow st=1 bufi=1077 size=1152
[mpeg @ 00000000030c24c0] buffer underflow st=0 bufi=38310 size=111232
[mpeg @ 00000000030c24c0] buffer underflow st=1 bufi=1077 size=1152
[mpeg @ 00000000030c24c0] buffer underflow st=0 bufi=40351 size=111232
[mpeg @ 00000000030c24c0] buffer underflow st=1 bufi=1077 size=1152
[mpeg @ 00000000030c24c0] buffer underflow st=0 bufi=42392 size=111232
[mpeg @ 00000000030c24c0] buffer underflow st=1 bufi=1077 size=1152
[mpeg @ 00000000030c24c0] buffer underflow st=0 bufi=44433 size=111232
[mpeg @ 00000000030c24c0] buffer underflow st=1 bufi=1077 size=1152
[mpeg @ 00000000030c24c0] buffer underflow st=0 bufi=46474 size=111232
[mpeg @ 00000000030c24c0] buffer underflow st=1 bufi=1077 size=1152
[mpeg @ 00000000030c24c0] buffer underflow st=0 bufi=48515 size=111232
[mpeg @ 00000000030c24c0] buffer underflow st=1 bufi=1077 size=1152
[mpeg @ 00000000030c24c0] buffer underflow st=0 bufi=50556 size=111232
[mpeg @ 00000000030c24c0] packet too large, ignoring buffer limits to mux it
[mpeg @ 00000000030c24c0] buffer underflow st=0 bufi=317008 size=433920
[mpeg @ 00000000030c24c0] buffer underflow st=0 bufi=319049 size=433920
[mpeg @ 00000000030c24c0] packet too large, ignoring buffer limits to mux it
[mpeg @ 00000000030c24c0] buffer underflow st=0 bufi=319049 size=433920
[mpeg @ 00000000030c24c0] buffer underflow st=0 bufi=321090 size=433920
[mpeg @ 00000000030c24c0] packet too large, ignoring buffer limits to mux it
[mpeg @ 00000000030c24c0] buffer underflow st=0 bufi=321090 size=433920
[mpeg @ 00000000030c24c0] buffer underflow st=0 bufi=323131 size=433920
[mpeg @ 00000000030c24c0] packet too large, ignoring buffer limits to mux it

Eu tentei aumentar o buffer com -bufsize, mas é o mesmo .. Minha primeira tela é exibida assim.

ffmpeg version N-82143-gbf14393 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --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-decklink --enable-zlib
  libavutil      55. 35.100 / 55. 35.100
  libavcodec     57. 65.100 / 57. 65.100
  libavformat    57. 57.100 / 57. 57.100
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 66.100 /  6. 66.100
  libswscale      4.  3.100 /  4.  3.100
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
Input #0, mpeg, from 'EST0511.mpg':
  Duration: 00:00:19.02, start: 0.226944, bitrate: 20928 kb/s
    Stream #0:0[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 384 kb/s
    Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, top first), 1920x1080 [SAR 1:1 DAR 16:9], 20000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc

Posso ter algum conselho sobre isso?

    
por Andrei Kim 22.12.2016 / 08:18

2 respostas

0

Se a extensão de saída for .mpg , o ffmpeg assumirá que é um fluxo de Sistemas MPEG-1, que espera um fluxo mpeg1video, com o tamanho do buffer esperado.

Para o MPEG-2 PS, use -f dvd

ffmpeg -i <inputfile.mpg> -vcodec copy -c:a mp2 -af "volume=+3dB" -f dvd <output.mpg>
    
por 22.12.2016 / 10:31
0

Solução (talvez)

Tente remover -vcodec copy e permitir que ffmpeg faça o que quiser.

ffmpeg -i '<INPUT FILE PATH>' -filter:a 'volume=+3dB' OUTPUT.mpg

Acabei de fazer

ffmpeg -i test.flv -filter:a 'volume=+3dB' OUTPUT.mpg

e funcionou.

    
por 16.10.2017 / 13:20