[FFmpeg-trac] #2220(undetermined:open): FFMPEG unable to stream copy some wtv H264 into mpegts
FFmpeg
trac at avcodec.org
Mon Apr 1 15:46:53 CEST 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):
With the sample attached, you are correct. With samples I have -ss 1 does
fix the problem, but this may be due to the small sample size?
Any way to get this fixed?
-----
Using the sample attached:
{{{
ffmpeg -i input.wtv -vcodec copy -acodec copy -map 0:a -map 0:v -f mpegts
output.ts
}}}
Gives:
{{{
O:\ffmpegtest>ffmpeg -i H264_Copy_Remux_Fail_cut.wtv -vcodec copy -acodec
copy -
map 0:a -map 0:v -f mpegts H264_Copy_Remux_Fail_cut.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
[wtv @ 002cd3c0] reported file length (0x7d3ab468) exceeds number of
available s
ectors (0x40000000)
[aac_latm @ 002cece0] initializing latmctx
[aac_latm @ 002ce6e0] initializing latmctx
[h264 @ 002cf2e0] mmco: unref short failure
Last message repeated 2 times
Input #0, wtv, from 'H264_Copy_Remux_Fail_cut.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 mys
terious ways and summons all his strength, to move a one hundred and ten
tonne s
team 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: 22 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 'H264_Copy_Remux_Fail_cut.ts' already exists. Overwrite ? [y/N] y
Output #0, mpegts, to 'H264_Copy_Remux_Fail_cut.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 mys
terious ways and summons all his strength, to move a one hundred and ten
tonne s
team 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(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,
stereo
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:2 -> #0:1 (copy)
Stream #0:3 -> #0:2 (copy)
Press [q] to stop, [?] for help
[mpegts @ 03eefd60] pts (98593) < dts (105793) in stream 2
av_interleaved_write_frame(): Invalid argument
}}}
Using the sample attached:
{{{
ffmpeg - ss 1 -i input.wtv -vcodec copy -acodec copy -map 0:a -map 0:v -f
mpegts output.ts
}}}
{{{
O:\ffmpegtest>ffmpeg -ss 1 -i H264_Copy_Remux_Fail_cut.wtv -vcodec copy
-acodec
copy -map 0:a -map 0:v -f mpegts H264_Copy_Remux_Fail_cut.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
[wtv @ 01f9c2a0] reported file length (0x7d3ab468) exceeds number of
available s
ectors (0x40000000)
[aac_latm @ 01f9d2e0] initializing latmctx
[aac_latm @ 01f9ed20] initializing latmctx
[h264 @ 01f9d8e0] mmco: unref short failure
Last message repeated 2 times
Input #0, wtv, from 'H264_Copy_Remux_Fail_cut.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 mys
terious ways and summons all his strength, to move a one hundred and ten
tonne s
team 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: 22 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 'H264_Copy_Remux_Fail_cut.ts' already exists. Overwrite ? [y/N] y
Output #0, mpegts, to 'H264_Copy_Remux_Fail_cut.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 mys
terious ways and summons all his strength, to move a one hundred and ten
tonne s
team 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(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,
stereo
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:2 -> #0:1 (copy)
Stream #0:3 -> #0:2 (copy)
Press [q] to stop, [?] for help
[mpegts @ 035222c0] 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#comment:7>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list