[FFmpeg-trac] #1952(undetermined:new): FFMPEG not able to copy audio streams from WTV to TS
FFmpeg
trac at avcodec.org
Thu Nov 22 18:29:48 CET 2012
#1952: FFMPEG not able to copy audio streams from WTV to TS
-------------------------------------+-------------------------------------
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: When trying to copy audio streams it reports the audio
stream as 0 channels and then fails to copy the stream.
How to reproduce:
ffmpeg.x86.exe -i broken_remux.wtv -codec copy -map 0:a out.ts
{{{
ffmpeg version N-46726-g2f74f8d Copyright (c) 2000-2012 the FFmpeg
developers
built on Nov 13 2012 19:29:51 with gcc 4.7.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-pthreads
--enable-runtime-cpudetect --enable-avisynth --enable
-bzlib --enable-frei0r --enable-libass --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libfreetype --enab
le-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg
--enable-libopus --enable-librtmp --enable-libschroed
inger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-
libvo-aacenc --enable-libvo-amrwbenc --enable-li
bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid
--enable-zlib
libavutil 52. 6.100 / 52. 6.100
libavcodec 54. 71.100 / 54. 71.100
libavformat 54. 36.100 / 54. 36.100
libavdevice 54. 3.100 / 54. 3.100
libavfilter 3. 23.100 / 3. 23.100
libswscale 2. 1.102 / 2. 1.102
libswresample 0. 16.100 / 0. 16.100
libpostproc 52. 1.100 / 52. 1.100
[wtv @ 01f7af20] reported file length (0x4fd7094c) exceeds number of
available sectors (0x40000000)
[mpeg2video @ 03cd5cc0] mpeg_decode_postinit() failure
Last message repeated 18 times
[wtv @ 01f7af20] Could not find codec parameters for stream 2 (Audio: ac3,
0 channels, s16): unspecified sample rate
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
Input #0, wtv, from 'broken_remux.wtv':
Metadata:
WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
Title : Covert Affairs
WM/SubTitle : Scary Monsters (and Super Creeps)
genre : Drama;General;Series
WM/OriginalReleaseTime: 0
WM/MediaCredits : Piper Perabo/Christopher Gorham/Peter Gallagher/Anne
Dudek/Kari Matchett;;;
service_provider: USA
service_name : USA Network
WM/MediaNetworkAffiliation: Satellite
WM/MediaOriginalChannel: 35
WM/MediaOriginalChannelSubNumber: 0
WM/MediaOriginalBroadcastDateTime: 2012-11-06T06:00:00Z
WM/MediaOriginalRunTime: 36583578040
WM/MediaIsStereo: false
WM/MediaIsRepeat: false
WM/MediaIsLive : false
WM/MediaIsTape : false
WM/MediaIsDelay : false
WM/MediaIsSubtitled: false
WM/MediaIsMovie : false
WM/MediaIsPremiere: false
WM/MediaIsFinale: false
WM/MediaIsSAP : false
WM/MediaIsSport : false
WM/ParentalRating: TV-PG
WM/Provider : MediaCenterDefault
WM/VideoClosedCaptioning: true
WM/WMRVEncodeTime: 2012-11-07 03:00:01
WM/WMRVSeriesUID: !MCSeries!236524124
WM/WMRVServiceID: !MCService!28459373
WM/WMRVProgramID: !MCProgram!281435509
WM/WMRVRequestID: 0
WM/WMRVScheduleItemID: 0
WM/WMRVQuality : 1
WM/WMRVOriginalSoftPrePadding: 300
WM/WMRVOriginalSoftPostPadding: 0
WM/WMRVHardPrePadding: -300
WM/WMRVHardPostPadding: 0
WM/WMRVATSCContent: true
WM/WMRVDTVContent: true
WM/WMRVHDContent: false
Duration : 36586250864
WM/WMRVEndTime : 2012-11-07 04:01:00
WM/WMRVBitrate : 2.930237
WM/WMRVKeepUntil: -1
WM/WMRVActualSoftPrePadding: 298
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: 352
WM/MediaThumbHeight: 310
WM/MediaThumbStride: 1056
WM/MediaThumbRet: 0
WM/MediaThumbRatingSystem: 9
WM/MediaThumbRatingLevel: 10
WM/MediaThumbRatingAttributes: 0
WM/MediaThumbAspectRatioX: 4
WM/MediaThumbAspectRatioY: 3
WM/MediaThumbTimeStamp: 4644421659667696459
Duration: 00:40:32.01, start: 12135.221998, bitrate: 6 kb/s
Stream #0:0[0x30]: Subtitle: eia_608
Stream #0:1[0x31]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
Stream #0:2[0x32]: Audio: ac3, 0 channels, s16
Stream #0:3[0x33]: Video: mpeg2video (Main), yuv420p, 544x480 [SAR
20:17 DAR 4:3], 29.97 fps, 29.97 tbr, 10000k tbn,
59.94 tbc
Stream #0:4[0x0]: Attachment: mjpeg
Metadata:
title : TV Thumbnail
[mpegts @ 03f08520] sample rate not set
Output #0, mpegts, to 'out.ts':
Metadata:
WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
Title : Covert Affairs
WM/SubTitle : Scary Monsters (and Super Creeps)
genre : Drama;General;Series
WM/OriginalReleaseTime: 0
WM/MediaCredits : Piper Perabo/Christopher Gorham/Peter Gallagher/Anne
Dudek/Kari Matchett;;;
service_provider: USA
service_name : USA Network
WM/MediaNetworkAffiliation: Satellite
WM/MediaOriginalChannel: 35
WM/MediaOriginalChannelSubNumber: 0
WM/MediaOriginalBroadcastDateTime: 2012-11-06T06:00:00Z
WM/MediaOriginalRunTime: 36583578040
WM/MediaIsStereo: false
WM/MediaIsRepeat: false
WM/MediaIsLive : false
WM/MediaIsTape : false
WM/MediaIsDelay : false
WM/MediaIsSubtitled: false
WM/MediaIsMovie : false
WM/MediaIsPremiere: false
WM/MediaIsFinale: false
WM/MediaIsSAP : false
WM/MediaIsSport : false
WM/ParentalRating: TV-PG
WM/Provider : MediaCenterDefault
WM/VideoClosedCaptioning: true
WM/WMRVEncodeTime: 2012-11-07 03:00:01
WM/WMRVSeriesUID: !MCSeries!236524124
WM/WMRVServiceID: !MCService!28459373
WM/WMRVProgramID: !MCProgram!281435509
WM/WMRVRequestID: 0
WM/WMRVScheduleItemID: 0
WM/WMRVQuality : 1
WM/WMRVOriginalSoftPrePadding: 300
WM/WMRVOriginalSoftPostPadding: 0
WM/WMRVHardPrePadding: -300
WM/WMRVHardPostPadding: 0
WM/WMRVATSCContent: true
WM/WMRVDTVContent: true
WM/WMRVHDContent: false
Duration : 36586250864
WM/WMRVEndTime : 2012-11-07 04:01:00
WM/WMRVBitrate : 2.930237
WM/WMRVKeepUntil: -1
WM/WMRVActualSoftPrePadding: 298
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: 352
WM/MediaThumbHeight: 310
WM/MediaThumbStride: 1056
WM/MediaThumbRet: 0
WM/MediaThumbRatingSystem: 9
WM/MediaThumbRatingLevel: 10
WM/MediaThumbRatingAttributes: 0
WM/MediaThumbAspectRatioX: 4
WM/MediaThumbAspectRatioY: 3
WM/MediaThumbTimeStamp: 4644421659667696459
Stream #0:0: Audio: ac3, 48000 Hz, stereo, 192 kb/s
Stream #0:1: Audio: ac3, 0 channels
Stream mapping:
Stream #0:1 -> #0:0 (copy)
Stream #0:2 -> #0:1 (copy)
Could not write header for output file #0 (incorrect codec parameters ?):
Invalid argument
}}}
Ideally it should copy the stream, and if there is an issue then anyways
it should not fail, maybe skip the stream
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1952>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list