[FFmpeg-trac] #2220(undetermined:new): FFMPEG unable to stream copy come H264 into mpegts
FFmpeg
trac at avcodec.org
Fri Feb 1 15:17:02 CET 2013
#2220: FFMPEG unable to stream copy come H264 into mpegts
-------------------------------------+-------------------------------------
Reporter: ramitbhalla | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
with some H264 files ffmpeg is able to stream copy the video stream
perfectly fine, with other it's not able to.
I've uploaded the file "H264 Copy Remux Fail.wtv" to the FTP server.
How to reproduce:
{{{
ffmpeg -i "H264 Copy Remux Fail.wtv" -vcodec copy -an test.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
[wtv @ 0033d420] reported file length (0x7d3ab468) exceeds number of
available sectors (0x40000000)
[aac_latm @ 0033ee40] initializing latmctx
[aac_latm @ 0033e840] initializing latmctx
[h264 @ 0033f440] mmco: unref short failure
Last message repeated 2 times
Input #0, wtv, from 'H264 Copy Remux Fail.wtv':
Metadata:
WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
Title : Great British Railway Journeys
WM/SubTitle : Taunton to Minehead
WM/SubTitleDescription: Michael Portillo explores a church that moves
in mysterious ways and summons all his strengt
h, to move a one hundred and ten tonne steam locomotive.
genre : Documentary;Other
WM/OriginalReleaseTime: 0
WM/MediaCredits : ;Dave Minchin;Michael Portillo;
service_provider: BBC HD
service_name : BBC HD
WM/MediaOriginalChannel: 102
WM/MediaOriginalChannelSubNumber: 0
WM/MediaOriginalBroadcastDateTime: 2013-01-30T00:00:00Z
WM/MediaOriginalRunTime: 19711177116
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-01-30 18:30:08
WM/WMRVSeriesUID: !GenericSeries!Great British Railway Journeys
WM/WMRVServiceID: !MCService!755567
WM/WMRVProgramID: !MCProgram!49381242
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 : 17918570369
WM/WMRVEndTime : 2013-01-30 19:00:00
WM/WMRVBitrate : 9.382929
WM/WMRVKeepUntil: -1
WM/WMRVActualSoftPrePadding: 291
WM/WMRVActualSoftPostPadding: 0
WM/WMRVContentProtected: false
WM/WMRVContentProtectedPercent: 0
WM/WMRVExpirationSpan: 9223372036854775807
WM/WMRVInBandRatingSystem: 255
WM/WMRVInBandRatingLevel: 255
WM/WMRVInBandRatingAttributes: 0
WM/WMRVWatched : false
WM/MediaThumbWidth: 0
WM/MediaThumbHeight: 0
WM/MediaThumbStride: 0
WM/MediaThumbRet: 4
WM/MediaThumbRatingSystem: 255
WM/MediaThumbRatingLevel: 255
WM/MediaThumbRatingAttributes: 19243776
WM/MediaThumbAspectRatioX: 0
WM/MediaThumbAspectRatioY: 0
WM/MediaThumbTimeStamp: -4616189618054758400
Duration: 00:14:59.19, start: 1.691285, bitrate: 2798 kb/s
Stream #0:0[0x38](eng): Subtitle: dvb_subtitle
Stream #0:1[0x39](eng): Audio: aac_latm ([2][22][0][0] / 0x1602),
48000 Hz, stereo, fltp (hearing impaired)
Stream #0:2[0x3a](eng): Audio: aac_latm ([2][22][0][0] / 0x1602),
48000 Hz, stereo, fltp
Stream #0:3[0x3b]: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR
16:9], 25 fps, 25 tbr, 10000k tbn, 50 tbc
Output #0, mpegts, to 'test.ts':
Metadata:
WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
Title : Great British Railway Journeys
WM/SubTitle : Taunton to Minehead
WM/SubTitleDescription: Michael Portillo explores a church that moves
in mysterious ways and summons all his strengt
h, to move a one hundred and ten tonne steam locomotive.
genre : Documentary;Other
WM/OriginalReleaseTime: 0
WM/MediaCredits : ;Dave Minchin;Michael Portillo;
service_provider: BBC HD
service_name : BBC HD
WM/MediaOriginalChannel: 102
WM/MediaOriginalChannelSubNumber: 0
WM/MediaOriginalBroadcastDateTime: 2013-01-30T00:00:00Z
WM/MediaOriginalRunTime: 19711177116
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-01-30 18:30:08
WM/WMRVSeriesUID: !GenericSeries!Great British Railway Journeys
WM/WMRVServiceID: !MCService!755567
WM/WMRVProgramID: !MCProgram!49381242
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 : 17918570369
WM/WMRVEndTime : 2013-01-30 19:00:00
WM/WMRVBitrate : 9.382929
WM/WMRVKeepUntil: -1
WM/WMRVActualSoftPrePadding: 291
WM/WMRVActualSoftPostPadding: 0
WM/WMRVContentProtected: false
WM/WMRVContentProtectedPercent: 0
WM/WMRVExpirationSpan: 9223372036854775807
WM/WMRVInBandRatingSystem: 255
WM/WMRVInBandRatingLevel: 255
WM/WMRVInBandRatingAttributes: 0
WM/WMRVWatched : false
WM/MediaThumbWidth: 0
WM/MediaThumbHeight: 0
WM/MediaThumbStride: 0
WM/MediaThumbRet: 4
WM/MediaThumbRatingSystem: 255
WM/MediaThumbRatingLevel: 255
WM/MediaThumbRatingAttributes: 19243776
WM/MediaThumbAspectRatioX: 0
WM/MediaThumbAspectRatioY: 0
WM/MediaThumbTimeStamp: -4616189618054758400
encoder : Lavf54.49.102
Stream #0:0: Video: h264, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9],
q=2-31, 25 fps, 90k tbn, 25 tbc
Stream mapping:
Stream #0:3 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mpegts @ 03cb2720] H.264 bitstream malformed, no startcode found, use the
h264_mp4toannexb bitstream filter (-bsf h264_
mp4toannexb)
av_interleaved_write_frame(): Invalid argument
}}}
{{{
ffmpeg -i "H264 Copy Remux Fail.wtv" -vcodec copy -an -bsf:v
h264_mp4toannexb test.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
[wtv @ 01f3d4e0] reported file length (0x7d3ab468) exceeds number of
available sectors (0x40000000)
[aac_latm @ 01f3eee0] initializing latmctx
[aac_latm @ 01f3e8e0] initializing latmctx
[h264 @ 01f3f4c0] mmco: unref short failure
Last message repeated 2 times
Input #0, wtv, from 'H264 Copy Remux Fail.wtv':
Metadata:
WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
Title : Great British Railway Journeys
WM/SubTitle : Taunton to Minehead
WM/SubTitleDescription: Michael Portillo explores a church that moves
in mysterious ways and summons all his strengt
h, to move a one hundred and ten tonne steam locomotive.
genre : Documentary;Other
WM/OriginalReleaseTime: 0
WM/MediaCredits : ;Dave Minchin;Michael Portillo;
service_provider: BBC HD
service_name : BBC HD
WM/MediaOriginalChannel: 102
WM/MediaOriginalChannelSubNumber: 0
WM/MediaOriginalBroadcastDateTime: 2013-01-30T00:00:00Z
WM/MediaOriginalRunTime: 19711177116
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-01-30 18:30:08
WM/WMRVSeriesUID: !GenericSeries!Great British Railway Journeys
WM/WMRVServiceID: !MCService!755567
WM/WMRVProgramID: !MCProgram!49381242
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 : 17918570369
WM/WMRVEndTime : 2013-01-30 19:00:00
WM/WMRVBitrate : 9.382929
WM/WMRVKeepUntil: -1
WM/WMRVActualSoftPrePadding: 291
WM/WMRVActualSoftPostPadding: 0
WM/WMRVContentProtected: false
WM/WMRVContentProtectedPercent: 0
WM/WMRVExpirationSpan: 9223372036854775807
WM/WMRVInBandRatingSystem: 255
WM/WMRVInBandRatingLevel: 255
WM/WMRVInBandRatingAttributes: 0
WM/WMRVWatched : false
WM/MediaThumbWidth: 0
WM/MediaThumbHeight: 0
WM/MediaThumbStride: 0
WM/MediaThumbRet: 4
WM/MediaThumbRatingSystem: 255
WM/MediaThumbRatingLevel: 255
WM/MediaThumbRatingAttributes: 19243776
WM/MediaThumbAspectRatioX: 0
WM/MediaThumbAspectRatioY: 0
WM/MediaThumbTimeStamp: -4616189618054758400
Duration: 00:14:59.19, start: 1.691285, bitrate: 2798 kb/s
Stream #0:0[0x38](eng): Subtitle: dvb_subtitle
Stream #0:1[0x39](eng): Audio: aac_latm ([2][22][0][0] / 0x1602),
48000 Hz, stereo, fltp (hearing impaired)
Stream #0:2[0x3a](eng): Audio: aac_latm ([2][22][0][0] / 0x1602),
48000 Hz, stereo, fltp
Stream #0:3[0x3b]: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR
16:9], 25 fps, 25 tbr, 10000k tbn, 50 tbc
File 'test.ts' already exists. Overwrite ? [y/N] y
Output #0, mpegts, to 'test.ts':
Metadata:
WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
Title : Great British Railway Journeys
WM/SubTitle : Taunton to Minehead
WM/SubTitleDescription: Michael Portillo explores a church that moves
in mysterious ways and summons all his strengt
h, to move a one hundred and ten tonne steam locomotive.
genre : Documentary;Other
WM/OriginalReleaseTime: 0
WM/MediaCredits : ;Dave Minchin;Michael Portillo;
service_provider: BBC HD
service_name : BBC HD
WM/MediaOriginalChannel: 102
WM/MediaOriginalChannelSubNumber: 0
WM/MediaOriginalBroadcastDateTime: 2013-01-30T00:00:00Z
WM/MediaOriginalRunTime: 19711177116
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-01-30 18:30:08
WM/WMRVSeriesUID: !GenericSeries!Great British Railway Journeys
WM/WMRVServiceID: !MCService!755567
WM/WMRVProgramID: !MCProgram!49381242
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 : 17918570369
WM/WMRVEndTime : 2013-01-30 19:00:00
WM/WMRVBitrate : 9.382929
WM/WMRVKeepUntil: -1
WM/WMRVActualSoftPrePadding: 291
WM/WMRVActualSoftPostPadding: 0
WM/WMRVContentProtected: false
WM/WMRVContentProtectedPercent: 0
WM/WMRVExpirationSpan: 9223372036854775807
WM/WMRVInBandRatingSystem: 255
WM/WMRVInBandRatingLevel: 255
WM/WMRVInBandRatingAttributes: 0
WM/WMRVWatched : false
WM/MediaThumbWidth: 0
WM/MediaThumbHeight: 0
WM/MediaThumbStride: 0
WM/MediaThumbRet: 4
WM/MediaThumbRatingSystem: 255
WM/MediaThumbRatingLevel: 255
WM/MediaThumbRatingAttributes: 19243776
WM/MediaThumbAspectRatioX: 0
WM/MediaThumbAspectRatioY: 0
WM/MediaThumbTimeStamp: -4616189618054758400
encoder : Lavf54.49.102
Stream #0:0: Video: h264, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9],
q=2-31, 25 fps, 90k tbn, 25 tbc
Stream mapping:
Stream #0:3 -> #0:0 (copy)
Press [q] to stop, [?] for help
[NULL @ 03b21d80] Warning: SPS NALU missing or invalid. The resulting
stream may not play.
[NULL @ 03b21d80] Warning: PPS NALU missing or invalid. The resulting
stream may not play.
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec
copy: Invalid argument
[mpegts @ 03d18a40] H.264 bitstream malformed, no startcode found, use the
h264_mp4toannexb bitstream filter (-bsf h264_
mp4toannexb)
av_interleaved_write_frame(): Invalid argument
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2220>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list