[FFmpeg-trac] #2055(avformat:open): FFMPEG unable to copy attachment metadata in WTV files

FFmpeg trac at avcodec.org
Sun Dec 23 11:16:25 CET 2012


#2055: FFMPEG unable to copy attachment metadata in WTV files
-------------------------------------+------------------------------------
             Reporter:  ramitbhalla  |                    Owner:
                 Type:  enhancement  |                   Status:  open
             Priority:  wish         |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  wtv          |               Blocked By:
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  0            |
-------------------------------------+------------------------------------
Changes (by cehoyos):

 * status:  new => open
 * reproduced:  0 => 1
 * component:  undetermined => avformat
 * priority:  normal => wish
 * version:  unspecified => git-master
 * keywords:   => wtv
 * type:  defect => enhancement


Comment:

 Replying to [comment:1 ramitbhalla]:
 > Add on:
 >
 > if one uses -map 0:s then also it fails, afaik it's not able to copy
 subtitle streams either from a WTV to a WTV file.
 This is actually the only problem that you did report with the console
 output you posted...
 {{{
 $ ffmpeg -i test-wtv.wtv -c:t copy -map 0:4 out.wtv
 ffmpeg version N-48117-g707af43 Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Dec 23 2012 10:56:26 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl
   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.101 /  3. 29.101
   libswscale      2.  1.103 /  2.  1.103
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 [mpeg2video @ 0x26e6260] mpeg_decode_postinit() failure
     Last message repeated 12 times
 Input #0, wtv, from 'test-wtv.wtv':
   Metadata:
     WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
     WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
     Title           : Guys With Kids
     WM/SubTitle     : Thanksgiving
     WM/SubTitleDescription: Sheila tries to win the gang over with a
 traditional Thanksgiving dinner; Gary decides to spend the holiday waiting
 in line for a TV that's on sale.
     genre           : Comedy;Series
     WM/OriginalReleaseTime: 0
     WM/MediaCredits : Anthony Anderson/Zach Cregger/Jesse Bradford/Jamie-
 Lynn Sigler/Tempestt Bledsoe;;;Emmitt Smith/Erinn Hayes
     service_provider: KNBC
     service_name    : KNBC
     WM/MediaNetworkAffiliation: NBC Affiliate
     WM/MediaOriginalChannel: 4
     WM/MediaOriginalChannelSubNumber: 0
     WM/MediaOriginalBroadcastDateTime: 2012-11-21T08:00:00Z
     WM/MediaOriginalRunTime: 20974292466
     WM/MediaIsStereo: true
     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-22 04:28:02
     WM/WMRVSeriesUID: !MCSeries!274690485
     WM/WMRVServiceID: !MCService!28455445
     WM/WMRVProgramID: !MCProgram!282437030
     WM/WMRVRequestID: 0
     WM/WMRVScheduleItemID: 0
     WM/WMRVQuality  : 0
     WM/WMRVOriginalSoftPrePadding: 420
     WM/WMRVOriginalSoftPostPadding: 180
     WM/WMRVHardPrePadding: -300
     WM/WMRVHardPostPadding: 0
     WM/WMRVATSCContent: true
     WM/WMRVDTVContent: true
     WM/WMRVHDContent: false
   Duration: 00:31:59.52, start: 2.880931, bitrate: 8 kb/s
     Stream #0:0[0x29](eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
     Stream #0:1[0x2a](eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
     Stream #0:2[0x2b]: Video: mpeg2video (Main), yuv420p, 528x480 [SAR
 40:33 DAR 4:3], 29.97 fps, 29.97 tbr, 10000k tbn, 59.94 tbc
     Stream #0:3[0x2c]: Subtitle: eia_608
     Stream #0:4[0x0]: Attachment: mjpeg
     Metadata:
       title           : TV Thumbnail
 [wtv @ 0x27b4be0] unknown codec_type (0x4)
 [wtv @ 0x27b4be0] write stream codec info failed codec_type(0x4)
 [wtv @ 0x27b4be0] write stream codec failed codec_type(0x4)
 Output #0, wtv, to 'out.wtv':
   Metadata:
     WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
     WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
     Title           : Guys With Kids
     WM/SubTitle     : Thanksgiving
     WM/SubTitleDescription: Sheila tries to win the gang over with a
 traditional Thanksgiving dinner; Gary decides to spend the holiday waiting
 in line for a TV that's on sale.
     genre           : Comedy;Series
     WM/OriginalReleaseTime: 0
     WM/MediaCredits : Anthony Anderson/Zach Cregger/Jesse Bradford/Jamie-
 Lynn Sigler/Tempestt Bledsoe;;;Emmitt Smith/Erinn Hayes
     service_provider: KNBC
     service_name    : KNBC
     WM/MediaNetworkAffiliation: NBC Affiliate
     WM/MediaOriginalChannel: 4
     WM/MediaOriginalChannelSubNumber: 0
     WM/MediaOriginalBroadcastDateTime: 2012-11-21T08:00:00Z
     WM/MediaOriginalRunTime: 20974292466
     WM/MediaIsStereo: true
     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-22 04:28:02
     WM/WMRVSeriesUID: !MCSeries!274690485
     WM/WMRVServiceID: !MCService!28455445
     WM/WMRVProgramID: !MCProgram!282437030
     WM/WMRVRequestID: 0
     WM/WMRVScheduleItemID: 0
     WM/WMRVQuality  : 0
     WM/WMRVOriginalSoftPrePadding: 420
     WM/WMRVOriginalSoftPostPadding: 180
     WM/WMRVHardPrePadding: -300
     WM/WMRVHardPostPadding: 0
     WM/WMRVATSCContent: true
     WM/WMRVDTVContent: true
     WM/WMRVHDContent: false
     encoder         : Lavf54.49.102
     Stream #0:0: Attachment: mjpeg (MJPG / 0x47504A4D)
     Metadata:
       title           : TV Thumbnail
 Stream mapping:
   Stream #0:4 -> #0:0 (copy)
 Could not write header for output file #0 (incorrect codec parameters ?):
 Operation not permitted
 }}}
 {{{
 $
 }}}

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


More information about the FFmpeg-trac mailing list