[FFmpeg-trac] #2741(undetermined:open): Remuxing dvbsub to mkv fails (was: How to overlay Teletext subtitles in ffmpeg?)
FFmpeg
trac at avcodec.org
Fri Apr 10 00:59:43 CEST 2015
#2741: Remuxing dvbsub to mkv fails
-------------------------------------+-------------------------------------
Reporter: | Owner:
wonmanfactory | Status: open
Type: defect | Component:
Priority: normal | undetermined
Version: git-master | Resolution:
Keywords: dvbsub wtv | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Changes (by cehoyos):
* status: new => open
Comment:
Sorry for forgetting about this ticket!
The remuxing issue is still reproducible:
{{{
$ ffmpeg -i 16.wtv -s pal -scodec copy -qscale 2 -an -map_metadata -1
out.mkv
ffmpeg version N-71367-gb1b5831 Copyright (c) 2000-2015 the FFmpeg
developers
built with gcc 4.7 (SUSE Linux)
configuration: --enable-gpl
libavutil 54. 22.101 / 54. 22.101
libavcodec 56. 34.100 / 56. 34.100
libavformat 56. 30.100 / 56. 30.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 13.101 / 5. 13.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
[mpeg2video @ 0x1ef4e00] Invalid frame dimensions 0x0.
Last message repeated 8 times
Input #0, wtv, from '16.wtv':
Metadata:
WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
Title : 16 and Pregnant
WM/SubTitleDescription: Christinna & Isiah have to make drastic
changes as they prepare for their baby. His family is furious when he
gives up his football scholarship, and they question if the baby is really
his.
genre : Documentary;Reality TV
WM/OriginalReleaseTime: 0
WM/MediaCredits : ;;;
service_provider: Viva
service_name : Viva
WM/MediaOriginalChannel: 16
WM/MediaOriginalChannelSubNumber: 0
WM/MediaOriginalBroadcastDateTime: 2011-03-16T00:00:00Z
WM/MediaOriginalRunTime: 36580691703
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: 2013-02-10 20:00:01
WM/WMRVSeriesUID: !GenericSeries!16 and Pregnant
WM/WMRVServiceID: !Generated!be3ff88ee57a4cadb0334ef3df5bc91b
WM/WMRVProgramID: !MCProgram!28246214
WM/WMRVRequestID: 0
WM/WMRVScheduleItemID: 0
WM/WMRVQuality : 0
WM/WMRVOriginalSoftPrePadding: 360
WM/WMRVOriginalSoftPostPadding: 60
WM/WMRVHardPrePadding: 4294966996
WM/WMRVHardPostPadding: 0
WM/WMRVATSCContent: false
WM/WMRVDTVContent: true
WM/WMRVHDContent: false
Duration : 17013404627
WM/WMRVEndTime : 2013-02-10 20:28:23
WM/WMRVBitrate : 1.930325
WM/WMRVKeepUntil: 0
WM/WMRVActualSoftPrePadding: 298
WM/WMRVActualSoftPostPadding: 4294965400
WM/WMRVContentProtected: false
WM/WMRVContentProtectedPercent: 0
WM/WMRVExpirationDate: 9999-12-31 23:59:59
WM/WMRVExpirationSpan: 9223372036854775807
WM/WMRVInBandRatingSystem: 255
WM/WMRVInBandRatingLevel: 255
WM/WMRVInBandRatingAttributes: 0
WM/WMRVWatched : false
WM/MediaThumbWidth: 352
WM/MediaThumbHeight: 372
WM/MediaThumbStride: 1056
WM/MediaThumbRet: 0
WM/MediaThumbRatingSystem: 255
WM/MediaThumbRatingLevel: 255
WM/MediaThumbRatingAttributes: 0
WM/MediaThumbAspectRatioX: 16
WM/MediaThumbAspectRatioY: 9
WM/MediaThumbTimeStamp: -4616189618054758400
Duration: 00:28:24.98, start: 1.472767, bitrate: 1926 kb/s
Stream #0:0[0x29](eng): Subtitle: dvb_subtitle
Stream #0:1[0x2a](eng): Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz,
stereo, s16p, 256 kb/s
Stream #0:2[0x2b]: Video: mpeg2video (Main), yuv420p(tv), 544x576 [SAR
32:17 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 10000k tbn, 50 tbc
Stream #0:3[0xffffffff]: Video: mjpeg, yuvj420p(pc,
bt470bg/unknown/unknown), 189x200 [SAR 96:96 DAR 189:200], 90k tbr, 90k
tbn, 90k tbc
Metadata:
title : TV Thumbnail
Please use -q:a or -q:v, -qscale is ambiguous
[matroska @ 0x1f35660] Codec for stream 1 does not use global headers but
container format requires global headers
Output #0, matroska, to 'out.mkv':
Metadata:
encoder : Lavf56.30.100
Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 720x576 [SAR
64:45 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 1k tbn, 25 tbc
Metadata:
encoder : Lavc56.34.100 mpeg4
Stream #0:1: Subtitle: dvb_subtitle ([255][255][255][255] /
0xFFFFFFFF)
Stream mapping:
Stream #0:2 -> #0:0 (mpeg2video (native) -> mpeg4 (native))
Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[matroska @ 0x1f35660] Application provided invalid, non monotonically
increasing dts to muxer in stream 1: 55629 >= 55591
av_interleaved_write_frame(): Invalid argument
frame= 1284 fps=621 q=2.0 Lsize= 26365kB time=00:00:55.62
bitrate=3882.5kbits/s
video:26294kB audio:0kB subtitle:56kB other streams:0kB global headers:0kB
muxing overhead: 0.057027%
Conversion failed!
}}}
It is possible to overlay, you have to know that the subtitles have a
different size than the video which can be fixed by scaling:
{{{
$ ffmpeg -canvas_size pal -i 16.wtv -filter_complex
[0:v]scale=s=pal[scaled],[scaled][0:s]overlay -qscale 2 out.mkv
}}}
(See also ticket #679)
The sample will be available soon in http://samples.ffmpeg.org/ffmpeg-
bugs/trac/ticket2741
--
Ticket URL: <https://trac.ffmpeg.org/ticket/2741#comment:11>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list