Opened 11 years ago

Last modified 9 years ago

#2741 open defect

Remuxing dvbsub to mkv fails

Reported by: Hoi Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: dvbsub wtv
Cc: al3x Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce: an mkv file with subtitles / a video overlaid with subtitles

% ffmpeg -i input.wtv -map 0 -map -0:3 -vcodec libx264 -acodec libmp3lame -scodec copy output.mkv

or

% ffmpeg -i input.wtv -filter_complex "[0:v][0:s]overlay[v]" -map [v] -map 0:a output.mkv

ffmpeg version N-54082-g96b33dd
built on Jun 17 2013 02:10:21 with gcc 4.7.3

The first command get aborted. The error return is

ffmpeg version N-54082-g96b33dd Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 17 2013 02:10:21 with gcc 4.7.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 37.101 / 52. 37.101
  libavcodec     55. 16.100 / 55. 16.100
  libavformat    55.  8.103 / 55.  8.103
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[wtv @ 000000000249b380] truncated file
    Last message repeated 3 times
[mpeg2video @ 000000000263f620] Invalid frame dimensions 0x0.
    Last message repeated 26 times
[wtv @ 000000000249b380] max_analyze_duration 5000000 reached at 5016000 microseconds
Input #0, wtv, from '16 and Pregnant_Viva_2013_06_13_20_00_00.wtv':
  Metadata:
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
    Title           : 16 and Pregnant
    WM/SubTitleDescription: Reality series following prospective teenage parents. An aspiring cage fighter strives to be an independent mother.
    genre           : Documentary;Reality TV
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : ;;;
    service_provider: Viva
    service_name    : Viva
    WM/MediaOriginalChannel: 21
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 2012-08-14T23:00:00Z
    WM/MediaOriginalRunTime: 35984082205
    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-06-13 19:00:01
    WM/WMRVSeriesUID: !GenericSeries!16 and Pregnant
    WM/WMRVServiceID: !Generated!45f9cf3444c149a4b3532ce756741d6a
    WM/WMRVProgramID: !MCProgram!46241323
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 300
    WM/WMRVOriginalSoftPostPadding: 0
    WM/WMRVHardPrePadding: -300
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: false
    WM/WMRVDTVContent: true
    WM/WMRVHDContent: false
    Duration        : 35994188749
    WM/WMRVEndTime  : 2013-06-13 20:00:01
    WM/WMRVBitrate  : 2.168572
    WM/WMRVKeepUntil: 0
    WM/WMRVActualSoftPrePadding: 298
    WM/WMRVActualSoftPostPadding: 1
    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: 372
    WM/MediaThumbStride: 1056
    WM/MediaThumbRet: 0
    WM/MediaThumbRatingSystem: 255
    WM/MediaThumbRatingLevel: 255
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 16
    WM/MediaThumbAspectRatioY: 9
    WM/MediaThumbTimeStamp: 4644939472175984804
  Duration: 01:00:03.21, start: 1.449767, bitrate: 2166 kb/s
    Stream #0:0[0x69](eng): Subtitle: dvb_subtitle
    Stream #0:1[0x6a](eng): Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, s16p, 256 kb/s
    Stream #0:2[0x6b]: Video: mpeg2video (Main), yuv420p, 544x576 [SAR 32:17 DAR 16:9], 25 fps, 25 tbr, 10000k tbn, 50 tbc
    Stream #0:3[0x0]: Video: mjpeg, yuvj420p, 189x200 [SAR 96:96 DAR 189:200], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      title           : TV Thumbnail
File 'test.mkv' already exists. Overwrite ? [y/N] [libx264 @ 000000000457f8e0] using SAR=32/17
[libx264 @ 000000000457f8e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 000000000457f8e0] profile High, level 3.0
[libx264 @ 000000000457f8e0] 264 - core 133 r2334 a3ac64b - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to 'test.mkv':
  Metadata:
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
    Title           : 16 and Pregnant
    WM/SubTitleDescription: Reality series following prospective teenage parents. An aspiring cage fighter strives to be an independent mother.
    genre           : Documentary;Reality TV
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : ;;;
    service_provider: Viva
    service_name    : Viva
    WM/MediaOriginalChannel: 21
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 2012-08-14T23:00:00Z
    WM/MediaOriginalRunTime: 35984082205
    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-06-13 19:00:01
    WM/WMRVSeriesUID: !GenericSeries!16 and Pregnant
    WM/WMRVServiceID: !Generated!45f9cf3444c149a4b3532ce756741d6a
    WM/WMRVProgramID: !MCProgram!46241323
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 300
    WM/WMRVOriginalSoftPostPadding: 0
    WM/WMRVHardPrePadding: -300
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: false
    WM/WMRVDTVContent: true
    WM/WMRVHDContent: false
    Duration        : 35994188749
    WM/WMRVEndTime  : 2013-06-13 20:00:01
    WM/WMRVBitrate  : 2.168572
    WM/WMRVKeepUntil: 0
    WM/WMRVActualSoftPrePadding: 298
    WM/WMRVActualSoftPostPadding: 1
    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: 372
    WM/MediaThumbStride: 1056
    WM/MediaThumbRet: 0
    WM/MediaThumbRatingSystem: 255
    WM/MediaThumbRatingLevel: 255
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 16
    WM/MediaThumbAspectRatioY: 9
    WM/MediaThumbTimeStamp: 4644939472175984804
    encoder         : Lavf55.8.103
    Stream #0:0(eng): Subtitle: dvb_subtitle
    Stream #0:1(eng): Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p
    Stream #0:2: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 544x576 [SAR 32:17 DAR 16:9], q=-1--1, 1k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (mp2 -> libmp3lame)
  Stream #0:2 -> #0:2 (mpeg2video -> libx264)
Press [q] to stop, [?] for help
[matroska @ 000000000255fa60] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 3532 >= 3461
av_interleaved_write_frame(): Invalid argument

This program is made in America and broadcast on a British TV channel. I don't know what's happening inside. I have tried to translate many episodes of this program and get the same return and abort at different progress level.

I don't know what "Application provided invalid, non montonically increasing av_interleaved_write_frame(): Invalid argument mean. What can I do with it?

So I try to overlay the subtitles on my video using the command provided in the tutorial. I have never made a successful attempt once. The output file is a regular video file which does not contain any subtitles overlaid on it.

During the translation, the return contains a yellow line.

sub2video: rectangle overflowing

How do I tackle this problem?

Attachments (1)

Capture.PNG (84.2 KB ) - added by Hoi 11 years ago.

Download all attachments as: .zip

Change History (16)

comment:1 by Carl Eugen Hoyos, 11 years ago

How is this teletext-related? Do you want to overlay the subtitles or do you want the subtitle as a separate stream?

Please provide a sample.

comment:2 by Carl Eugen Hoyos, 11 years ago

Component: FFmpegundetermined
Keywords: dvbsub added; dvb_subtitle teletext removed
Version: unspecifiedgit-master

comment:3 by Hoi, 11 years ago

Hi, thanks for quick response.
At first, I wanted to separate them. But I couldn't, so I try to put them together.
I want to know both.
On the other hand, I want to create a OCR program to map out the DVB subtitles to SRT. How can I export the graphic text files and get their pts etc?
What kind of sample do you want? Do you mean a sample wtv file? If you need it, I will upload it to my ftp server. But each of my problematic file is 600mb. I am sure you will say it's too large. How do I crop a wtv file without muddling its streams?
The command I used is

ffmpeg -i input.wtv -map 0 -map -0:3 -vcodec libx264 -acodec libmp3lame -scodec copy output.mkv
Last edited 11 years ago by Hoi (previous) (diff)

in reply to:  3 comment:4 by Carl Eugen Hoyos, 11 years ago

Replying to wonmanfactory:

I am sure you will say it's too large.

Why?

comment:5 by Hoi, 11 years ago

OK. I will upload the file. Give me awhile.

by Hoi, 11 years ago

Attachment: Capture.PNG added

comment:6 by Hoi, 11 years ago

I have uploaded the wtv file called 16.wtv
Could you logon to my ftp server to get this file?
The login details are as follows
Host: bbmimi.eu
Username: guest@bbmimi. eu <- no space
Password: ecqntnG!7

Last edited 11 years ago by Hoi (previous) (diff)

comment:7 by Hoi, 11 years ago

Hello, I wonder if you have got my file yet?

comment:8 by Carl Eugen Hoyos, 11 years ago

I still wonder if the dvb subtitles do not decode well for all wtv samples or only for some.

comment:9 by Hoi, 11 years ago

I actually found out that about 1/3 of my recorded TV programs are problematic that the translation gets aborted halfway.
But they can be viewed perfectly in Windows Media Center.

Is there anyway to export all subtitles to series of pictures?

comment:10 by Hoi, 11 years ago

Hello,
I further investigated the problem. Just a rough guess. Could the problem be that the TV station switched the subtitle channel to another channel while the video is playing?

I attempted to compress the video and audio streams first, then subtitles stream individually and then combine them. I found that subtitles disappear in the midway. But subtitles remain in windows media

comment:11 by Carl Eugen Hoyos, 9 years ago

Status: newopen
Summary: How to overlay Teletext subtitles in ffmpeg?Remuxing dvbsub to mkv fails

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

comment:12 by al3x, 9 years ago

This (@ceohoys' commandline) seems to be working with a recent ffmpeg.

in reply to:  12 comment:13 by Carl Eugen Hoyos, 9 years ago

Cc: al3x added

Replying to al3x:

This (@ceohoys' commandline) seems to be working with a recent ffmpeg.

Could you provide command line including console output? It still fails here like the last time I tested.

comment:14 by al3x, 9 years ago

$ ./ffmpeg -canvas_size pal -i 16.wtv -filter_complex [0:v]scale=s=pal[scaled],[scaled][0:s]overlay -qscale 2 out2.mkv
ffmpeg version N-71734-g0e7444f Copyright (c) 2000-2015 the FFmpeg developers
  built with Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
  configuration: --disable-yasm
  libavutil      54. 23.101 / 54. 23.101
  libavcodec     56. 35.101 / 56. 35.101
  libavformat    56. 31.100 / 56. 31.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 14.100 /  5. 14.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
[mpeg2video @ 0x7fe25901ba00] Invalid frame dimensions 0x0.
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
Output #0, matroska, to 'out2.mkv':
  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
    encoder         : Lavf56.31.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 (default)
    Metadata:
      encoder         : Lavc56.35.101 mpeg4
    Stream #0:1(eng): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      encoder         : Lavc56.35.101 ac3
Stream mapping:
  Stream #0:0 (dvbsub) -> overlay:overlay (graph 0)
  Stream #0:2 (mpeg2video) -> scale (graph 0)
  overlay (graph 0) -> Stream #0:0 (mpeg4)
  Stream #0:1 -> #0:1 (mp2 (native) -> ac3 (native))
Press [q] to stop, [?] for help
[mpeg2video @ 0x7fe258934600] Warning MVs not available   
[mpeg2video @ 0x7fe258934600] concealing 1 DC, 1 AC, 1 MV errors in B frame
frame=20876 fps= 45 q=2.0 Lsize=  539708kB time=00:13:56.36 bitrate=5286.3kbits/s    
video:519719kB audio:19586kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.074663%
Received signal 2: terminating.

Didn't wait til the end, it wasn't that fast.

comment:15 by Hoi, 9 years ago

It's still not working. My command is

ffmpeg -i "F:\British TV\TV Show by Category\Sex\Sex Story- Fifty Shades of Grey_More 4_2014_03_14_23_30_00.wtv" -s pal -map 0:1 -map 0:3 -map 0:0 -map 0:2 -vcodec libx264 -acodec libmp3lame -scodec copy "E:\Desktop\temp\Sex Story- Fifty Shades of Grey_More 4_2014_03_14_23_30_00.mkv"

The return is

http://test.wonmanfactory.com/ff.png

The file can be found at
ftp.wonmanfactorry.com
Login: download
Password: download
SexStory.wtv

Last edited 9 years ago by Hoi (previous) (diff)
Note: See TracTickets for help on using tickets.