Opened 10 years ago

Closed 9 years ago

#3890 closed defect (invalid)

FFMPEG isn't able to demux MPEG2 HD stream

Reported by: Djfe Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: mpeg2video
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:

% ffmpeg -i "02-20_20-33-42_PAOK FC -Benfica_.ts" -vcodec copy -an -f mpeg2video "test.m2v"
ffmpeg version N-65860-g1aa153d
built on Aug 24 2014 00:08:13 with gcc 4.8.3 (GCC)

If I demux my source transport stream I just get an empty .m2v file (zero bytes).

The stream got recorded/muxed by an uplink and contains a Full HD MPEG2 Stream, 2 MPEG 1 Audio Layer 2 Streams and one Dolby E (aes3) stream

The full log file is attached.
You can download the source file here:
http://www.file-upload.net/download-9427548/02-20_20-33-42_PAOK-FC--Benfica_.ts.html

(I will upload it to a ftp server of this projekt or something else if that is needed (I don't have an url though))

Attachments (1)

ffmpeg-20140824-164947.log (6.1 KB ) - added by Djfe 10 years ago.
Full log of the demux process

Download all attachments as: .zip

Change History (10)

by Djfe, 10 years ago

Attachment: ffmpeg-20140824-164947.log added

Full log of the demux process

comment:1 by Djfe, 10 years ago

found the ftp:
trying to upload it now
file is at cd incoming
and it's named: ffmpeg isnt able to demux video stream.ts

and it has a description in a .txt file with the same name

comment:2 by Carl Eugen Hoyos, 10 years ago

Keywords: mpeg2video added
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

Not a regression afaict.

comment:3 by Kieran Kunhya, 10 years ago

Has no I-frames nor Random Access Indicators. Bizzarely plays in VLC by some sort of slice-refresh technique.

comment:4 by Djfe, 10 years ago

wasn't able to upload it on the ftp, so I used upload.ffmpeg.org/upload

comment:5 by ptalarbvorm, 10 years ago

FWIW — below is what the O.P. wrote in the LAV filters's thread @ Doom9's forum:

FFPLAY output:

 [mpeg2video @ 03d74a00] '''Invalid frame dimensions 0x0. 0B f=0/0'''
 [mpeg2video @ 03d74a00] warning: first frame is no keyframe f=0/0
 [mpegts @ 03d73ea0] PES packet size mismatch 0KB sq= 0B f=0/0
 Last message repeated 2 times
 Input #0, mpegts, from 'Y:\TSD Test\test\02-20_20-33-42_PAOK FC -Benfica_.ts'
 :
 Duration: 00:00:19.96, start: 32171.787089, bitrate: 20976 kb/s
 Program 1
 Stream #0:0[0x200]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420
 p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], max. 17500 kb/s, 25 fps, 25 tbr, 90k
 tbn, 50 tbc
 Stream #0:1[0x1010](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, ster
 eo, s16p, 373 kb/s
 Stream #0:2[0x1020](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, ster
 eo, s16p, 373 kb/s
 Stream #0:3[0x1030](eng): Audio: s302m (BSSD / 0x44535342), 48000 Hz, stereo
 , s32, 2304 kb/s
 [mpeg2video @ 03d74a00] warning: first frame is no keyframe
 [mpeg2video @ 03d74a00] warning: first frame is no keyframeB f=0/0
 [mpeg2video @ 03d74a00] warning: first frame is no keyframe f=0/0
 [mpeg2video @ 03d74a00] warning: first frame is no keyframeB f=0/0
 [mpeg2video @ 03d74a00] warning: first frame is no keyframeB f=0/0
 [mpeg2video @ 03d74a00] warning: first frame is no keyframeB f=0/0
 [mpeg2video @ 03d74a00] warning: first frame is no keyframeB f=0/0
 Last message repeated 1 times
 '''[mpegts @ 03d73ea0] PES packet size mismatch 509KB sq= 0B f=0/0
 [s302m @ 03d77680] frame has invalid header 209KB sq= 0B f=0/0
 [mpeg2video @ 03d74a00] ac-tex damaged at 84 547KB sq= 0B f=0/0'''
 32193.62 A-V: -0.002 fd= 18 aq= 0KB vq= 0KB sq= 0B f=0/0

HTH

Last edited 10 years ago by Carl Eugen Hoyos (previous) (diff)

comment:6 by Carl Eugen Hoyos, 10 years ago

What is special about this output?

comment:7 by ptalarbvorm, 10 years ago

cehoyos wrote:

"What is special about this output?"

My answer: the segments that I had marked in BOLD, and that you edited.

OK, I'm just a not-so-advanced-user, not a devil-oper, therefore
I'd better stop posting my "stupid and ignorant" comments into this site -.-

comment:8 by Djfe, 10 years ago

He probably wanted to show that the file plays fine in FFPLAY as well
(except that it tries to decode the dolby e stream (instead of one of the MPEG Audio streams),
but horribly fails at it (only noise), since there isn't a real software decoder for it implemented, yet)

comment:9 by Michael Niedermayer, 9 years ago

Resolution: invalid
Status: openclosed

to copy streams without any keyframe in them you can use -copyinkf (maybe it should be autodetected, iam not sure, if people think it should be open a ticket for that)
ffplay selects a stream it can decode since 802cca5905abe1fe8392e85a812462b959889aaa
dolby E support wasnt the subject of this ticket
so i think this is resolved

Note: See TracTickets for help on using tickets.