[FFmpeg-trac] #1952(undetermined:new): FFMPEG not able to copy empty audio stream in wtv

FFmpeg trac at avcodec.org
Tue Jan 1 15:25:51 CET 2013


#1952: FFMPEG not able to copy empty audio stream in wtv
-------------------------------------+-------------------------------------
             Reporter:  ramitbhalla  |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:  wtv ac3      |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by ramitbhalla):

 Folks - any thoughts on this? It's driving me crazy, I'm not able to
 convert files because ffmpeg keeps bugging out on Audio Tracks with zero
 channels.

 I'm facing the same issue with TS  files also - attaching a sample.
 Very frustrating issue, I'm trying to cut a section of the video and it
 just bugs out because of this zero channel audio track.

 There should be some way to continue the stream copy and not FAIL because
 of a invalid track. This isn't just a microsoft issue, it looks like other
 media recorders also also creating this zero track audio channel fro some
 reason.

 Can FFMPEG throw a warning or put a flag like -ignoreInvalidTracks to skip
 over these channels?

 Here's the output

 {{{
 ffmpeg -i zeroAudioChannel.ts -map 0:a -map 0:v -vcodec copy -acodec copy
 test-out.ts

 ffmpeg version N-48065-g6375318 Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Dec 21 2012 09:06:30 with gcc 4.7.2 (GCC)
   configuration: --enable-static --arch=x86 --target-os=mingw32 --cross-
 prefix=/home/rdp/dev/ffmpeg-windows-build-helper
 s/sandbox/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config
 --enable-gpl --enable-libx264 --enable-avisynth -
 -enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib
 --enable-librtmp --enable-libvorbis --enable-libtheo
 ra --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm
 --enable-libfreetype --enable-fontconfig --ena
 ble-libass --enable-libutvideo --enable-libopus --disable-w32threads
 --enable-frei0r --enable-filter=frei0r --enable-lib
 vo-aacenc --enable-bzlib --enable-libxavs --extra-
 cflags=-DPTW32_STATIC_LIB --enable-libopencore-amrnb --enable-libopenc
 ore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-
 libbluray --enable-libvpx --enable-runtime-cpudetect

   libavutil      52. 12.100 / 52. 12.100
   libavcodec     54. 81.100 / 54. 81.100
   libavformat    54. 49.102 / 54. 49.102
   libavdevice    54.  3.102 / 54.  3.102
   libavfilter     3. 29.100 /  3. 29.100
   libswscale      2.  1.103 /  2.  1.103
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 [mpegts @ 01e1c920] PES packet size mismatch
     Last message repeated 1 times
 [mpeg2video @ 01e1d0e0] mpeg_decode_postinit() failure
     Last message repeated 2 times
 [mp1 @ 02ccace0] Header missing
 [mpeg2video @ 01e1d0e0] mpeg_decode_postinit() failure
     Last message repeated 3 times
 [mp1 @ 02ccace0] Header missing
 [mpeg2video @ 01e1d0e0] mpeg_decode_postinit() failure
     Last message repeated 3 times
 [mp1 @ 02ccace0] Header missing
 [mpeg2video @ 01e1d0e0] mpeg_decode_postinit() failure
     Last message repeated 2 times
 [mp1 @ 02ccace0] Header missing
     Last message repeated 3 times
 [mpegts @ 01e1c920] Could not find codec parameters for stream 3 (Unknown:
 none (TVG1 / 0x31475654)): unknown codec
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [mpegts @ 01e1c920] decoding for stream 4 failed
 [mpegts @ 01e1c920] Could not find codec parameters for stream 4 (Audio:
 mp1 ([6][0][0][0] / 0x0006), 0 channels, s16p):
  unspecified frame size
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [NULL @ 02cca4e0] start time is not set in estimate_timings_from_pts
 [NULL @ 02ccace0] start time is not set in estimate_timings_from_pts
 [mpegts @ 01e1c920] PES packet size mismatch
 Input #0, mpegts, from 'zeroAudioChannel.ts':
   Duration: 00:00:01.26, start: 93213.317522, bitrate: 13338 kb/s
   Program 1
     Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
 yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fp
 s, 29.97 tbr, 90k tbn, 59.94 tbc
     Stream #0:1[0x33](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
 5.1(side), fltp, 384 kb/s
     Stream #0:2[0x34](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
 stereo, fltp, 192 kb/s
     Stream #0:3[0x111]: Unknown: none (TVG1 / 0x31475654)
     Stream #0:4[0x110]: Audio: mp1 ([6][0][0][0] / 0x0006), 0 channels,
 s16p
 [mpegts @ 0398e020] sample rate not set
 Output #0, mpegts, to 'test-out.ts':
     Stream #0:0(eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side),
 384 kb/s
     Stream #0:1(eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo,
 192 kb/s
     Stream #0:2: Audio: mp1 ([6][0][0][0] / 0x0006), 0 channels
     Stream #0:3: Video: mpeg2video ([2][0][0][0] / 0x0002), yuv420p,
 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 90
 k tbn, 29.97 tbc
 Stream mapping:
   Stream #0:1 -> #0:0 (copy)
   Stream #0:2 -> #0:1 (copy)
   Stream #0:4 -> #0:2 (copy)
   Stream #0:0 -> #0:3 (copy)
 Could not write header for output file #0 (incorrect codec parameters ?):
 Invalid argument
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1952#comment:5>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list