[FFmpeg-user] ffmpeg doesn't see audio stream
Ivan Gorin
ivangorin21 at gmail.com
Fri Oct 16 22:41:34 EEST 2020
I have several avi files I captured from miniDV cassettes, and now am
trying to compress using ffmpeg. running ffprobe on one of the files yields
this output:
ffprobe thailand.avi
ffprobe version 4.2.4-1ubuntu0.1 Copyright (c) 2007-2020 the FFmpeg
developers
built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
configuration: --prefix=/usr --extra-version=1ubuntu0.1
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl
--disable-stripping --enable-avresample --disable-filter=resample
--enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
--enable-libcdio --enable-libcodec2 --enable-libflite
--enable-libfontconfig --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame
--enable-libmysofa --enable-libopenjpeg --enable-libopenmpt
--enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband
--enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex
--enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
--enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq
--enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl
--enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm
--enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r
--enable-libx264 --enable-shared
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
[avi @ 0x55684bca9f00] Switching to NI mode, due to poor interleaving
[dvvideo @ 0x55684bcac340] AC EOB marker is absent pos=66
[dvvideo @ 0x55684bcac340] Concealing bitstream errors
......
[dvvideo @ 0x55684bcac340] AC EOB marker is absent pos=64
[dvvideo @ 0x55684bcac340] Concealing bitstream errors
Input #0, avi, from 'thailand.avi':
Duration: 00:43:24.04, start: 0.000000, bitrate: 28878 kb/s
Stream #0:0: Video: dvvideo, yuv420p, 720x576, 25000 kb/s, SAR 16:15
DAR 4:3, 25 fps, 25 tbr, 25 tbn, 25 tbc
(I shortened the output, there are many more repeating lines with AC
EOB...).
It seems like ffprobe doesn't see the audio stream. When viewing this file
with VLC the audio plays fine, but doing any operation using ffmpeg loses
the audio stream. I tried the solution from this
<https://superuser.com/questions/709313/how-can-i-check-the-integrity-of-an-avi-file-and-repair-it-automatically-in-linu>
question using mencoder, but it didn't see the audio stream either. How can
I fix this file?
Also, when running some ffmpeg command, for example ffmpeg -ss 00:00:05 -i
thailand.avi -t 00:00:10 -c copy -map 0 output.avi it outputs the same AC
EOB errors. But after starting the operation it outputs this:
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg
developers
built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
configuration: --prefix=/usr --extra-version=1ubuntu0.1
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl
--disable-stripping --enable-avresample --disable-filter=resample
--enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
--enable-libcdio --enable-libcodec2 --enable-libflite
--enable-libfontconfig --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame
--enable-libmysofa --enable-libopenjpeg --enable-libopenmpt
--enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband
--enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex
--enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
--enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq
--enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl
--enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm
--enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r
--enable-libx264 --enable-shared
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
[avi @ 0x558097763700] Switching to NI mode, due to poor interleaving
[dvvideo @ 0x558097765f00] AC EOB marker is absent pos=66
[dvvideo @ 0x558097765f00] Concealing bitstream errors
......
[dvvideo @ 0x558097765f00] AC EOB marker is absent pos=64
[dvvideo @ 0x558097765f00] Concealing bitstream errors
Input #0, avi, from 'thailand.avi':
Duration: 00:43:24.04, start: 0.000000, bitrate: 28878 kb/s
Stream #0:0: Video: dvvideo, yuv420p, 720x576, 25000 kb/s, SAR 16:15
DAR 4:3, 25 fps, 25 tbr, 25 tbn, 25 tbc
Output #0, avi, to 'output.avi':
Metadata:
ISFT : Lavf58.29.100
Stream #0:0: Video: dvvideo (dvsd / 0x64737664), yuv420p, 720x576 [SAR
16:15 DAR 4:3], q=2-31, 25000 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[avi @ 0x558097763700] New audio stream 0:1 at pos:18113032 and DTS:0s
[avi @ 0x558097763700] New audio stream 0:2 at pos:18113032 and DTS:0s
frame= 250 fps=0.0 q=-1.0 Lsize= 35168kB time=00:00:10.00
bitrate=28809.4kbits/s speed= 36x
video:35156kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.032672%
Seems like it finds the streams only after starting the operation, but
doesn't include them in the output?
More information about the ffmpeg-user
mailing list