[FFmpeg-trac] #2220(undetermined:open): FFMPEG unable to stream copy some wtv H264 into mpegts

FFmpeg trac at avcodec.org
Thu Mar 28 13:56:50 CET 2013


#2220: FFMPEG unable to stream copy some wtv H264 into mpegts
-------------------------------------+-------------------------------------
             Reporter:  ramitbhalla  |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:  wtv h264     |               Resolution:
  av_interleaved_write_frame         |               Blocked By:
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by dodgexander):

 Adding -ss 1 to the command fixes this, but why?

  Not working:

 {{{
 ffmpeg -i input.wtv -vcodec copy -acodec copy -map 0:a -map 0:v -f mpegts
 output.ts
 }}}


 {{{
 O:\ffmpegtest>ffmpeg -i broken.wtv -vcodec copy -acodec copy -map 0:a -map
 0:v -
 f mpegts broken.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-
 helpers/sandbox/mingw-w64-i686/bin/i686-w64-mi
 ngw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-
 avisynth -
 -enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib
 --enable-lib
 rtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-
 libopenjpe
 g --enable-gnutls --enable-libgsm --enable-libfreetype --enable-fontconfig
 --ena
 ble-libass --enable-libutvideo --enable-libopus --disable-w32threads
 --enable-fr
 ei0r --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-
 libxav
 s --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
 [aac_latm @ 0039f820] initializing latmctx
 [aac_latm @ 0039ec40] initializing latmctx
 [h264 @ 0039f220] mmco: unref short failure
     Last message repeated 2 times
 Input #0, wtv, from 'broken.wtv':
   Metadata:
     WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
     WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
     Title           : The Graham Norton Show
     WM/SubTitleDescription: The award-winning host continues his talk
 show. Grah
 am is joined by Sherlock Holmes star Jude Law, Ted and Family Guy actress
 Mila K
 unis, Spiderman and 127 Hours star James Franco, and the legendary Dame
 Judi Den
 ch. With music from Olly Murs.
     genre           : Shows;Talk Show
     WM/OriginalReleaseTime: 0
     WM/MediaCredits : ;Steve Smith;Graham Norton;
     service_provider: BBC One HD
     service_name    : BBC One HD
     WM/MediaOriginalChannel: 101
     WM/MediaOriginalChannelSubNumber: 0
     WM/MediaOriginalBroadcastDateTime: 2013-03-01T00:00:00Z
     WM/MediaOriginalRunTime: 29912779688
     WM/MediaIsStereo: false
     WM/MediaIsRepeat: false
     WM/MediaIsLive  : false
     WM/MediaIsTape  : false
     WM/MediaIsDelay : false
     WM/MediaIsSubtitled: true
     WM/MediaIsMovie : false
     WM/MediaIsPremiere: false
     WM/MediaIsFinale: false
     WM/MediaIsSAP   : false
     WM/MediaIsSport : false
     WM/Provider     : MediaCenterDefault
     WM/VideoClosedCaptioning: false
     WM/WMRVEncodeTime: 2013-03-01 22:33:08
     WM/WMRVSeriesUID: !GenericSeries!The Graham Norton Show
     WM/WMRVServiceID: !MCService!759242
     WM/WMRVProgramID: !MCProgram!49925152
     WM/WMRVRequestID: 0
     WM/WMRVScheduleItemID: 0
     WM/WMRVQuality  : 0
     WM/WMRVOriginalSoftPrePadding: 420
     WM/WMRVOriginalSoftPostPadding: 180
     WM/WMRVHardPrePadding: -300
     WM/WMRVHardPostPadding: 0
     WM/WMRVATSCContent: false
     WM/WMRVDTVContent: true
     WM/WMRVHDContent: true
     Duration        : 29918791257
     WM/WMRVEndTime  : 2013-03-01 23:23:00
     WM/WMRVBitrate  : 8.018846
     WM/WMRVKeepUntil: -1
     WM/WMRVActualSoftPrePadding: 411
     WM/WMRVActualSoftPostPadding: 180
     WM/WMRVContentProtected: false
     WM/WMRVContentProtectedPercent: 0
     WM/WMRVExpirationSpan: 9223372036854775807
     WM/WMRVInBandRatingSystem: 255
     WM/WMRVInBandRatingLevel: 255
     WM/WMRVInBandRatingAttributes: 0
     WM/WMRVWatched  : false
     WM/MediaThumbWidth: 352
     WM/MediaThumbHeight: 198
     WM/MediaThumbStride: 1056
     WM/MediaThumbRet: 0
     WM/MediaThumbRatingSystem: 255
     WM/MediaThumbRatingLevel: 255
     WM/MediaThumbRatingAttributes: 0
     WM/MediaThumbAspectRatioX: 1920
     WM/MediaThumbAspectRatioY: 1080
     WM/MediaThumbTimeStamp: -4616189618054758400
     WM/MediaThumbType: 2
   Duration: 00:49:50.88, start: 1.659108, bitrate: 8021 kb/s
     Stream #0:0[0x77](eng): Subtitle: dvb_subtitle
     Stream #0:1[0x78](eng): Audio: aac_latm ([2][22][0][0] / 0x1602),
 48000 Hz,
 stereo, fltp (hearing impaired)
     Stream #0:2[0x79]: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR
 16:9]
 , 25 fps, 25 tbr, 10000k tbn, 50 tbc
     Stream #0:3[0x7a](eng): Audio: aac_latm ([2][22][0][0] / 0x1602),
 48000 Hz,
 5.1, fltp
     Stream #0:4[0x0]: Attachment: mjpeg
     Metadata:
       title           : TV Thumbnail
 Output #0, mpegts, to 'broken.ts':
   Metadata:
     WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
     WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
     Title           : The Graham Norton Show
     WM/SubTitleDescription: The award-winning host continues his talk
 show. Grah
 am is joined by Sherlock Holmes star Jude Law, Ted and Family Guy actress
 Mila K
 unis, Spiderman and 127 Hours star James Franco, and the legendary Dame
 Judi Den
 ch. With music from Olly Murs.
     genre           : Shows;Talk Show
     WM/OriginalReleaseTime: 0
     WM/MediaCredits : ;Steve Smith;Graham Norton;
     service_provider: BBC One HD
     service_name    : BBC One HD
     WM/MediaOriginalChannel: 101
     WM/MediaOriginalChannelSubNumber: 0
     WM/MediaOriginalBroadcastDateTime: 2013-03-01T00:00:00Z
     WM/MediaOriginalRunTime: 29912779688
     WM/MediaIsStereo: false
     WM/MediaIsRepeat: false
     WM/MediaIsLive  : false
     WM/MediaIsTape  : false
     WM/MediaIsDelay : false
     WM/MediaIsSubtitled: true
     WM/MediaIsMovie : false
     WM/MediaIsPremiere: false
     WM/MediaIsFinale: false
     WM/MediaIsSAP   : false
     WM/MediaIsSport : false
     WM/Provider     : MediaCenterDefault
     WM/VideoClosedCaptioning: false
     WM/WMRVEncodeTime: 2013-03-01 22:33:08
     WM/WMRVSeriesUID: !GenericSeries!The Graham Norton Show
     WM/WMRVServiceID: !MCService!759242
     WM/WMRVProgramID: !MCProgram!49925152
     WM/WMRVRequestID: 0
     WM/WMRVScheduleItemID: 0
     WM/WMRVQuality  : 0
     WM/WMRVOriginalSoftPrePadding: 420
     WM/WMRVOriginalSoftPostPadding: 180
     WM/WMRVHardPrePadding: -300
     WM/WMRVHardPostPadding: 0
     WM/WMRVATSCContent: false
     WM/WMRVDTVContent: true
     WM/WMRVHDContent: true
     Duration        : 29918791257
     WM/WMRVEndTime  : 2013-03-01 23:23:00
     WM/WMRVBitrate  : 8.018846
     WM/WMRVKeepUntil: -1
     WM/WMRVActualSoftPrePadding: 411
     WM/WMRVActualSoftPostPadding: 180
     WM/WMRVContentProtected: false
     WM/WMRVContentProtectedPercent: 0
     WM/WMRVExpirationSpan: 9223372036854775807
     WM/WMRVInBandRatingSystem: 255
     WM/WMRVInBandRatingLevel: 255
     WM/WMRVInBandRatingAttributes: 0
     WM/WMRVWatched  : false
     WM/MediaThumbWidth: 352
     WM/MediaThumbHeight: 198
     WM/MediaThumbStride: 1056
     WM/MediaThumbRet: 0
     WM/MediaThumbRatingSystem: 255
     WM/MediaThumbRatingLevel: 255
     WM/MediaThumbRatingAttributes: 0
     WM/MediaThumbAspectRatioX: 1920
     WM/MediaThumbAspectRatioY: 1080
     WM/MediaThumbTimeStamp: -4616189618054758400
     WM/MediaThumbType: 2
     encoder         : Lavf54.49.102
     Stream #0:0(eng): Audio: aac_latm ([2][22][0][0] / 0x1602), 48000 Hz,
 stereo
  (hearing impaired)
     Stream #0:1(eng): Audio: aac_latm ([2][22][0][0] / 0x1602), 48000 Hz,
 5.1
     Stream #0:2: Video: h264, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9],
 q=2-31, 25
 fps, 90k tbn, 25 tbc
 Stream mapping:
   Stream #0:1 -> #0:0 (copy)
   Stream #0:3 -> #0:1 (copy)
   Stream #0:2 -> #0:2 (copy)
 Press [q] to stop, [?] for help
 [mpegts @ 03c607e0] pts (103514) < dts (110714) in stream 2
 av_interleaved_write_frame(): Invalid argument
 }}}


  Working:

 {{{
 ffmpeg -ss 1 -i input.wtv -vcodec copy -acodec copy -map 0:a -map 0:v -f
 mpegts output.ts
 }}}

 Console output:  [http://www.datafilehost.com/download-8501f315.html] (too
 large to copy and paste from cmd window due to excessive warnings)

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


More information about the FFmpeg-trac mailing list