[FFmpeg-trac] #2227(undetermined:new): ffmpeg incorrectly identifying mjpeg as video stream instead of attachment

FFmpeg trac at avcodec.org
Thu Apr 4 01:40:20 CEST 2013


#2227: ffmpeg incorrectly identifying mjpeg as video stream instead of attachment
-------------------------------------+-------------------------------------
             Reporter:  ramitbhalla  |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:  wtv          |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by ramitbhalla):

 FYI - using map 0:v:0 does NOT work always.

 Here's an example where it ends up trying to copy of the mjpeg attachment:


 {{{
 ffmpeg -i "..\NoStreams FFMPEG South Park_Viva_2012_04_25_21_00_16.wtv"
 ffmpeg version N-51511-g599866f Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Apr  1 2013 12:44:46 with gcc 4.8.0 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth --enable-bzlib --enable-fontconfi
 g --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray
 --enable-libcaca --enable-libfreetype --enable-libg
 sm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb
 --enable-libopencore-amrwb --enable-libopenjpeg --ena
 ble-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr
 --enable-libspeex --enable-libtheora --enable-lib
 twolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
 --enable-libvpx --enable-libx264 --enable-libxa
 vs --enable-libxvid --enable-zlib
   libavutil      52. 24.100 / 52. 24.100
   libavcodec     55.  2.100 / 55.  2.100
   libavformat    55.  1.100 / 55.  1.100
   libavdevice    55.  0.100 / 55.  0.100
   libavfilter     3. 48.105 /  3. 48.105
   libswscale      2.  2.100 /  2.  2.100
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 [wtv @ 02537a80] truncated file
     Last message repeated 3 times
 [wtv @ 02537a80] max_analyze_duration 5000000 reached at 5016000
 microseconds
 Input #0, wtv, from '..\NoStreams FFMPEG South
 Park_Viva_2012_04_25_21_00_16.wtv':
   Metadata:
     WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
     WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
     Title           : South Park
     WM/SubTitle     : Toilet Paper
     WM/SubTitleDescription: Animated adult comedy. When the boys are kept
 behind after school by their art teacher for n
 ot appreciating art, Cartman convinces them that the only way to get her
 back is to toilet paper her house.
     genre           : Shows;Animation
     WM/OriginalReleaseTime: 0
     WM/MediaCredits : ;;;
     service_provider: Viva
     service_name    : TMF The Music Factory
     WM/MediaOriginalChannel: 81
     WM/MediaOriginalChannelSubNumber: 0
     WM/MediaOriginalBroadcastDateTime: 2003-09-14T23:00:00Z
     WM/MediaOriginalRunTime: 19603163745
     WM/MediaIsStereo: false
     WM/MediaIsRepeat: true
     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/Provider     : MediaCenterDefault
     WM/VideoClosedCaptioning: false
     WM/WMRVEncodeTime: 2012-04-25 20:00:19
     WM/WMRVSeriesUID: !GenericSeries!South Park
     WM/WMRVServiceID: !Generated!f9fd088eefe34ef988814f48f61cd8a6
     WM/WMRVProgramID: !MCProgram!2118366
     WM/WMRVRequestID: 0
     WM/WMRVScheduleItemID: 0
     WM/WMRVQuality  : 3
     WM/WMRVOriginalSoftPrePadding: 420
     WM/WMRVOriginalSoftPostPadding: 180
     WM/WMRVHardPrePadding: -300
     WM/WMRVHardPostPadding: 0
     WM/WMRVATSCContent: false
     WM/WMRVDTVContent: false
     WM/WMRVHDContent: false
     Duration        : 17806418468
     WM/WMRVEndTime  : 2012-04-25 20:30:00
     WM/WMRVBitrate  : 6.729666
     WM/WMRVKeepUntil: 0
     WM/WMRVActualSoftPrePadding: 280
     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: 281
     WM/MediaThumbStride: 1056
     WM/MediaThumbRet: 0
     WM/MediaThumbRatingSystem: 255
     WM/MediaThumbRatingLevel: 255
     WM/MediaThumbRatingAttributes: 0
     WM/MediaThumbAspectRatioX: 4
     WM/MediaThumbAspectRatioY: 3
     WM/MediaThumbTimeStamp: 4644370574304461875
   Duration: 00:28:35.46, start: 3.270397, bitrate: 6985 kb/s
     Stream #0:0[0xb]: Subtitle: dvb_teletext
     Stream #0:1[0x0]: Video: mjpeg, yuvj420p, 200x160 [SAR 96:96 DAR 5:4],
 90k tbr, 90k tbn, 90k tbc
     Metadata:
       title           : TV Thumbnail
     Stream #0:2[0xc]: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo,
 s16p, 256 kb/s
     Stream #0:3[0xd]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR
 16:15 DAR 4:3], 25 fps, 25 tbr, 10000k tbn, 50 tbc
 }}}

 There has GOT to be an easier and more STRUCTURED way to do this.

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


More information about the FFmpeg-trac mailing list