Opened 11 years ago

Closed 7 years ago

#3032 closed defect (fixed)

ffmpeg fails to stream copy mpeg2 TS file with timestamp discontinuity

Reported by: ramitb Owned by:
Priority: normal Component: ffmpeg
Version: git-master Keywords: av_interleaved_write_frame mpegts mpeg2video dts
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Summary of the bug: In some cases when trying to stream copy a TS video file while trimming some video at the beginning and at the end, it fails with an error av_interleaved_write_frame Invalid Argument.

I try to use +genpts to fix the timestamp issues and it still eventually fails.

See below:

without genpts it fails immediately

ffmpeg.2314Custom.exe -y -ss 10 -i "..\0 Channel mp1 Audio - HD.ts" -t 1767 -map 0:
a -map 0:v -vcodec copy -acodec copy test.ts
ffmpeg version N-56896-ga927276 Copyright (c) 2000-2013 the FFmpeg developers
  built on Oct  5 2013 09:46:09 with gcc 4.8.0 (GCC)
  configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/bin
/i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth --enable-libxvid --enable-lib
mp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enabl
e-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --disable-w32threads --enable-frei0r
 --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable
-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-
libilbc --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libmodplug --extra-libs=-lstdc++
--enable-libzvbi --enable-libcaca --prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32 --enab
le-static --disable-shared --enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo --enable-libbluray -
-extra-cflags= --enable-nonfree --enable-libfdk-aac --enable-runtime-cpudetect
  libavutil      52. 46.100 / 52. 46.100
  libavcodec     55. 34.100 / 55. 34.100
  libavformat    55. 19.100 / 55. 19.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 88.101 /  3. 88.101
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mpeg, from '..\0 Channel mp1 Audio - HD.ts':
  Duration: 00:29:47.23, start: 0.266733, bitrate: 11930 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], max. 11546 kb/s, 29.
97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
Output #0, mpegts, to 'test.ts':
  Metadata:
    encoder         : Lavf55.19.100
    Stream #0:0: Audio: ac3, 48000 Hz, 5.1(side), 384 kb/s
    Stream #0:1: Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, max. 11546 kb/s, 29.97 fps, 90k tbn,
29.97 tbc
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0277d600] first pts value must be set
av_interleaved_write_frame(): Invalid data found when processing input

with +genpts it fails after a while

ffmpeg.2314Custom.exe -y -fflags +genpts -ss 10 -i "..\0 Channel mp1 Audio - HD.ts"
 -t 1767 -map 0:a -map 0:v -vcodec copy -acodec copy test.ts
ffmpeg version N-56896-ga927276 Copyright (c) 2000-2013 the FFmpeg developers
  built on Oct  5 2013 09:46:09 with gcc 4.8.0 (GCC)
  configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/bin
/i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth --enable-libxvid --enable-lib
mp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enabl
e-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --disable-w32threads --enable-frei0r
 --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable
-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-
libilbc --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libmodplug --extra-libs=-lstdc++
--enable-libzvbi --enable-libcaca --prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32 --enab
le-static --disable-shared --enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo --enable-libbluray -
-extra-cflags= --enable-nonfree --enable-libfdk-aac --enable-runtime-cpudetect
  libavutil      52. 46.100 / 52. 46.100
  libavcodec     55. 34.100 / 55. 34.100
  libavformat    55. 19.100 / 55. 19.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 88.101 /  3. 88.101
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mpeg, from '..\0 Channel mp1 Audio - HD.ts':
  Duration: 00:29:47.23, start: 0.266733, bitrate: 11930 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], max. 11546 kb/s, 29.
97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
Output #0, mpegts, to 'test.ts':
  Metadata:
    encoder         : Lavf55.19.100
    Stream #0:0: Audio: ac3, 48000 Hz, 5.1(side), 384 kb/s
    Stream #0:1: Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, max. 11546 kb/s, 29.97 fps, 90k tbn,
29.97 tbc
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpegts @ 03439ec0] Non-monotonous DTS in output stream 0:1; previous: 3846245, current: 3846245; changing to 3846246. T
his may result in incorrect timestamps in the output file.
[mpegts @ 03439ec0] Non-monotonous DTS in output stream 0:1; previous: 12494893, current: 12494893; changing to 12494894
. This may result in incorrect timestamps in the output file.
[mpegts @ 03439ec0] Non-monotonous DTS in output stream 0:1; previous: 12756155, current: 12756155; changing to 12756156
. This may result in incorrect timestamps in the output file.
[mpegts @ 03439ec0] Non-monotonous DTS in output stream 0:1; previous: 49636034, current: 49636034; changing to 49636035
. This may result in incorrect timestamps in the output file.
[mpegts @ 03439ec0] Non-monotonous DTS in output stream 0:1; previous: 53491890, current: 53491890; changing to 53491891
. This may result in incorrect timestamps in the output file.
[mpegts @ 03439ec0] Non-monotonous DTS in output stream 0:1; previous: 69885283, current: 69885283; changing to 69885284
. This may result in incorrect timestamps in the output file.
[mpegts @ 03439ec0] Non-monotonous DTS in output stream 0:1; previous: 82714111, current: 82714111; changing to 82714112
. This may result in incorrect timestamps in the output file.
[mpegts @ 03439ec0] Non-monotonous DTS in output stream 0:1; previous: 86557955, current: 86557955; changing to 86557956
. This may result in incorrect timestamps in the output file.
[mpegts @ 03439ec0] Non-monotonous DTS in output stream 0:1; previous: 89648045, current: 89648045; changing to 89648046
. This may result in incorrect timestamps in the output file.
[mpegts @ 03439ec0] pts (89747144) < dts (89837234) in stream 1
av_interleaved_write_frame(): Invalid argument

It works fine if the video is converted to mpeg2:

ffmpeg.2314Custom.exe -y -fflags +genpts -ss 10 -i "..\0 Channel mp1 Audio - HD.ts"
 -t 1767 -map 0:a -map 0:v -vcodec mpeg2video -qscale 0 -acodec copy test.ts
ffmpeg version N-56896-ga927276 Copyright (c) 2000-2013 the FFmpeg developers
  built on Oct  5 2013 09:46:09 with gcc 4.8.0 (GCC)
  configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/bin
/i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth --enable-libxvid --enable-lib
mp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enabl
e-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --disable-w32threads --enable-frei0r
 --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable
-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-
libilbc --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libmodplug --extra-libs=-lstdc++
--enable-libzvbi --enable-libcaca --prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32 --enab
le-static --disable-shared --enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo --enable-libbluray -
-extra-cflags= --enable-nonfree --enable-libfdk-aac --enable-runtime-cpudetect
  libavutil      52. 46.100 / 52. 46.100
  libavcodec     55. 34.100 / 55. 34.100
  libavformat    55. 19.100 / 55. 19.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 88.101 /  3. 88.101
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mpeg, from '..\0 Channel mp1 Audio - HD.ts':
  Duration: 00:29:47.23, start: 0.266733, bitrate: 11930 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], max. 11546 kb/s, 29.
97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
Please use -q:a or -q:v, -qscale is ambiguous
Output #0, mpegts, to 'test.ts':
  Metadata:
    encoder         : Lavf55.19.100
    Stream #0:0: Audio: ac3, 48000 Hz, 5.1(side), 384 kb/s
    Stream #0:1: Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (mpeg2video -> mpeg2video)
Press [q] to stop, [?] for help
[mpeg2video @ 03855700] 00 motion_type at 68 6300:00:58.58 bitrate=33725.0kbits/s dup=55 drop=0
[mpeg2video @ 03855700] 00 motion_type at 16 42
[mpeg2video @ 03855700] 00 motion_type at 5 43
[mpeg2video @ 03855700] ac-tex damaged at 26 44
[mpeg2video @ 03855700] ac-tex damaged at 39 45
[mpeg2video @ 03855700] 00 motion_type at 1 46
[mpeg2video @ 03855700] 00 motion_type at 10 47
[mpeg2video @ 03855700] 00 motion_type at 48 48
[mpeg2video @ 03855700] 00 motion_type at 7 49
[mpeg2video @ 03855700] 00 motion_type at 8 50
[mpeg2video @ 03855700] ac-tex damaged at 4 51
[mpeg2video @ 03855700] 00 motion_type at 10 52
[mpeg2video @ 03855700] 00 motion_type at 8 53
[mpeg2video @ 03855700] 00 motion_type at 9 54
[mpeg2video @ 03855700] ac-tex damaged at 12 55
[mpeg2video @ 03855700] 00 motion_type at 11 56
[mpeg2video @ 03855700] 00 motion_type at 8 57
[mpeg2video @ 03855700] ac-tex damaged at 7 58
[mpeg2video @ 03855700] ac-tex damaged at 3 59
[mpeg2video @ 03855700] 00 motion_type at 4 60
[mpeg2video @ 03855700] 00 motion_type at 13 61
[mpeg2video @ 03855700] ac-tex damaged at 7 62
[mpeg2video @ 03855700] 00 motion_type at 33 63
[mpeg2video @ 03855700] invalid mb type in P Frame at 52 64
[mpeg2video @ 03855700] ac-tex damaged at 16 65
[mpeg2video @ 03855700] 00 motion_type at 4 66
[mpeg2video @ 03855700] 00 motion_type at 15 67
[mpeg2video @ 03855700] Warning MVs not available
[mpeg2video @ 03855700] concealing 3120 DC, 3120 AC, 3120 MV errors in P frame
[mpeg2video @ 03855700] 00 motion_type at 4 16
[mpeg2video @ 03855700] Warning MVs not available
[mpeg2video @ 03855700] concealing 1560 DC, 1560 AC, 1560 MV errors in P frame
[mpeg2video @ 03855700] 00 motion_type at 63 2200:15:51.80 bitrate=26958.3kbits/s dup=631 drop=0
[mpeg2video @ 03855700] Warning MVs not available
[mpeg2video @ 03855700] concealing 120 DC, 120 AC, 120 MV errors in B frame
frame=52958 fps= 46 q=0.0 Lsize= 5407271kB time=00:29:27.00 bitrate=25068.6kbits/s dup=1278 drop=0
video:4921717kB audio:81591kB subtitle:0 global headers:0kB muxing overhead 8.073939%

Attachments (1)

discontinuity.ts (2.4 MB ) - added by Carl Eugen Hoyos 11 years ago.

Change History (15)

comment:1 by Carl Eugen Hoyos, 11 years ago

Keywords: av_interleaved_write_frame added
Resolution: needs_more_info
Status: newclosed

Please reopen if you can provide a sample.

comment:2 by ramitb, 11 years ago

I've uploaded the file "Ticket #3032.ts" to the incoming directory.
It's big, unfortunatley that's the smallest chunk with which I'm able to replicate the first 2 scenario's (with and without genpts for the copy codec).

comment:3 by ramitb, 11 years ago

Resolution: needs_more_info
Status: closedreopened

comment:4 by Carl Eugen Hoyos, 11 years ago

Please confirm the md5sum for the sample you uploaded:

$ md5sum Ticket\ #3032.ts
ea5cfe0081afeaf713a2825b4a31bee0  Ticket #3032.ts

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

Replying to cehoyos:

Please confirm the md5sum for the sample you uploaded:

To say it differently:
Afaict, the ftp client you are using is removing all 0x0d's from your file making it unreadable.

comment:6 by ramitb, 11 years ago

I tried using filezilla, unfortunatlye the ffmpeg server kept kicking it out saying too many connections. Now I tried using Windows FTP but forgot to set the bi flag so I'm uploading again as a binary file and it should work. Please delete the old file.

Filezilla used to work earlier, don't know what changed recently.

by Carl Eugen Hoyos, 11 years ago

Attachment: discontinuity.ts added

comment:7 by Carl Eugen Hoyos, 11 years ago

Keywords: mpegts mpeg2video dts added
Reproduced by developer: set
Status: reopenedopen
Summary: Ffmpeg fails to stream copy mpeg2 TS files while trimming with av_interleaved_write_frameffmpeg fails to stream copy mpeg2 TS file with timestamp discontinuity
Version: unspecifiedgit-master

If you believe we can improve the "Submitting Sample Media" paragraph on http://ffmpeg.org/bugreports.html with respect to file sizes, please do not hesitate to tell us!

$ ffmpeg -i discontinuity.ts -vcodec copy -an out.ts
ffmpeg version N-57001-g65c2fe7 Copyright (c) 2000-2013 the FFmpeg developers
  built on Oct 10 2013 02:46:13 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      52. 46.101 / 52. 46.101
  libavcodec     55. 35.100 / 55. 35.100
  libavformat    55. 19.100 / 55. 19.100
  libavdevice    55.  4.100 / 55.  4.100
  libavfilter     3. 88.101 /  3. 88.101
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
[mpeg2video @ 0x1cf96c0] Invalid frame dimensions 0x0.
Input #0, mpeg, from 'discontinuity.ts':
  Duration: 00:00:02.29, start: 992.125233, bitrate: 8960 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], max. 11546 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
Output #0, mpegts, to 'out.ts':
  Metadata:
    encoder         : Lavf55.19.100
    Stream #0:0: Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, max. 11546 kb/s, 29.97 fps, 90k tbn, 29.97 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0x1cf9d00] Non-monotonous DTS in output stream 0:0; previous: 27027, current: 27027; changing to 27028. This may result in incorrect timestamps in the output file.
[mpegts @ 0x1cf9d00] pts (126126) < dts (216216) in stream 0
av_interleaved_write_frame(): Invalid argument

Not necessarily related to the warning shown before the fatal error:

$ ffmpeg -i discontinuity.ts -vcodec copy -an -t 2.4 out.ts
ffmpeg version N-57001-g65c2fe7 Copyright (c) 2000-2013 the FFmpeg developers
  built on Oct 10 2013 02:46:13 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      52. 46.101 / 52. 46.101
  libavcodec     55. 35.100 / 55. 35.100
  libavformat    55. 19.100 / 55. 19.100
  libavdevice    55.  4.100 / 55.  4.100
  libavfilter     3. 88.101 /  3. 88.101
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
[mpeg2video @ 0x1e7e6c0] Invalid frame dimensions 0x0.
Input #0, mpeg, from 'discontinuity.ts':
  Duration: 00:00:02.29, start: 992.125233, bitrate: 8960 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], max. 11546 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
Output #0, mpegts, to 'out.ts':
  Metadata:
    encoder         : Lavf55.19.100
    Stream #0:0: Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, max. 11546 kb/s, 29.97 fps, 90k tbn, 29.97 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0x1e7ed00] Non-monotonous DTS in output stream 0:0; previous: 27027, current: 27027; changing to 27028. This may result in incorrect timestamps in the output file.
frame=   38 fps=0.0 q=-1.0 Lsize=    1531kB time=00:00:02.40 bitrate=5219.9kbits/s
video:1416kB audio:0kB subtitle:0 global headers:0kB muxing overhead 8.121993%

comment:8 by ramitb, 11 years ago

I've uploaded one more sample file "Ticket #3032-2.wtv" which exhibits the same issue. When you stream copy audio and video it fails with the same message.

ffmpeg.2314Custom.exe -i "Ticket #3032-2.wtv" -an -sn -map 0:2 -vcodec copy -f
mpegts test.ts
ffmpeg version N-56896-ga927276 Copyright (c) 2000-2013 the FFmpeg developers
  built on Oct  5 2013 09:46:09 with gcc 4.8.0 (GCC)
  configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/bin
/i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth --enable-libxvid --enable-lib
mp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enabl
e-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --disable-w32threads --enable-frei0r
 --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable
-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-
libilbc --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libmodplug --extra-libs=-lstdc++
--enable-libzvbi --enable-libcaca --prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32 --enab
le-static --disable-shared --enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo --enable-libbluray -
-extra-cflags= --enable-nonfree --enable-libfdk-aac --enable-runtime-cpudetect
  libavutil      52. 46.100 / 52. 46.100
  libavcodec     55. 34.100 / 55. 34.100
  libavformat    55. 19.100 / 55. 19.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 88.101 /  3. 88.101
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
[wtv @ 03c93800] truncated file
    Last message repeated 3 times
[mpeg2video @ 03c95300] Invalid frame dimensions 0x0.
    Last message repeated 19 times
Input #0, wtv, from 'Ticket #3032-2.wtv':
  Metadata:
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
    Title           : Jeopardy!
    WM/SubTitle     : College Tournament
    genre           : Series;Game Show
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : ;;Alex Trebek;
    service_provider: WABCDT
    service_name    : WABCDT (WABC-DT)
    WM/MediaNetworkAffiliation: ABC Affiliate
    WM/MediaOriginalChannel: 7
    WM/MediaOriginalChannelSubNumber: 1
    WM/MediaOriginalBroadcastDateTime: 2012-02-13T05:00:00Z
    WM/MediaOriginalRunTime: 14000583314
    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-G
    WM/Provider     : MediaCenterDefault
    WM/VideoClosedCaptioning: true
    WM/WMRVEncodeTime: 2012-02-14 00:09:39
    WM/WMRVSeriesUID: !MCSeries!00002348
    WM/WMRVServiceID: !MCService!28455323
    WM/WMRVProgramID: !MCProgram!268783601
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 3
    WM/WMRVOriginalSoftPrePadding: 696
    WM/WMRVOriginalSoftPostPadding: 180
    WM/WMRVHardPrePadding: -576
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: true
    WM/WMRVDTVContent: true
    WM/WMRVHDContent: true
    Duration        : 2724125811
    WM/WMRVEndTime  : 2012-02-14 00:14:12
    WM/WMRVBitrate  : 20.971520
    WM/WMRVKeepUntil: -1
    WM/WMRVActualSoftPrePadding: 259
    WM/WMRVActualSoftPostPadding: -947
    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: 198
    WM/MediaThumbStride: 1056
    WM/MediaThumbRet: 0
    WM/MediaThumbRatingSystem: 9
    WM/MediaThumbRatingLevel: 8
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 16
    WM/MediaThumbAspectRatioY: 9
    WM/MediaThumbTimeStamp: -4616189618054758400
  Duration: 00:04:31.68, start: 17.188806, bitrate: 9255 kb/s
    Stream #0:0[0x12](eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Stream #0:1[0x13](spa): Audio: ac3, 48000 Hz, stereo, fltp, 96 kb/s
    Stream #0:2[0x14]: Video: mpeg2video (Main), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], max. 24000 kb/s, 59.94 fps, 5
9.94 tbr, 10000k tbn, 119.88 tbc
    Stream #0:3[0x15]: Subtitle: eia_608
    Stream #0:4[0xffffffff]: Video: mjpeg, yuvj420p(pc), 200x113 [SAR 96:96 DAR 200:113], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      title           : TV Thumbnail
Output #0, mpegts, to 'test.ts':
  Metadata:
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
    Title           : Jeopardy!
    WM/SubTitle     : College Tournament
    genre           : Series;Game Show
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : ;;Alex Trebek;
    service_provider: WABCDT
    service_name    : WABCDT (WABC-DT)
    WM/MediaNetworkAffiliation: ABC Affiliate
    WM/MediaOriginalChannel: 7
    WM/MediaOriginalChannelSubNumber: 1
    WM/MediaOriginalBroadcastDateTime: 2012-02-13T05:00:00Z
    WM/MediaOriginalRunTime: 14000583314
    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-G
    WM/Provider     : MediaCenterDefault
    WM/VideoClosedCaptioning: true
    WM/WMRVEncodeTime: 2012-02-14 00:09:39
    WM/WMRVSeriesUID: !MCSeries!00002348
    WM/WMRVServiceID: !MCService!28455323
    WM/WMRVProgramID: !MCProgram!268783601
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 3
    WM/WMRVOriginalSoftPrePadding: 696
    WM/WMRVOriginalSoftPostPadding: 180
    WM/WMRVHardPrePadding: -576
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: true
    WM/WMRVDTVContent: true
    WM/WMRVHDContent: true
    Duration        : 2724125811
    WM/WMRVEndTime  : 2012-02-14 00:14:12
    WM/WMRVBitrate  : 20.971520
    WM/WMRVKeepUntil: -1
    WM/WMRVActualSoftPrePadding: 259
    WM/WMRVActualSoftPostPadding: -947
    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: 198
    WM/MediaThumbStride: 1056
    WM/MediaThumbRet: 0
    WM/MediaThumbRatingSystem: 9
    WM/MediaThumbRatingLevel: 8
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 16
    WM/MediaThumbAspectRatioY: 9
    WM/MediaThumbTimeStamp: -4616189618054758400
    encoder         : Lavf55.19.100
    Stream #0:0: Video: mpeg2video, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, max. 24000 kb/s, 59.94 fps, 90k tbn, 5
9.94 tbc
Stream mapping:
  Stream #0:2 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mpegts @ 03c92d80] Non-monotonous DTS in output stream 0:0; previous: 622957, current: 255090; changing to 622958. This
 may result in incorrect timestamps in the output file.
[mpegts @ 03c92d80] pts (628601) < dts (628963) in stream 0
av_interleaved_write_frame(): Invalid argument

comment:9 by Carl Eugen Hoyos, 11 years ago

I have two questions:

  • Why do you think this new sample is related to the timestamp discontinuity problem of the one attached here?
  • What did you try to make the second sample shorter?

comment:10 by ramitb, 11 years ago

i can only go by output, it looked similar. do you think its some other issue?

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

Replying to ramitbhalla:

i can only go by output, it looked similar.

Thank you, it does look similar.

do you think its some other issue?

I originally was quite sure that it is a different issue, there is a transport stream that contains a timestamp discontinuity and a wtv recording with a reception problem. It may be possible that the solution for both problems is the same (although I strongly suspect that it would happen in two different source files).

Please also answer my second question.

comment:12 by ramitb, 11 years ago

Point noted, on this one I didn't try. Will keep it in mind next time

comment:13 by ramitb, 10 years ago

any thoughts on this? have got a whole lot of other videos which are exhibiting similar issues.

comment:14 by Carl Eugen Hoyos, 7 years ago

Component: undeterminedffmpeg
Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.