[MPlayer-users] MPEG-TS + H264 (again)

Colin Rosenthal csr at statsbiblioteket.dk
Thu Nov 12 13:30:19 CET 2009


Carl Eugen Hoyos wrote:
> Colin Rosenthal <csr <at> statsbiblioteket.dk> writes:
>
>   
>> We have the following problems:
>>
>> i) tsprog is ignored. We get all channels and can tab between them.
>> ii) there is no sound
>> iii) One of the channels (the first one found) causes mplayer to freeze 
>> after a couple of seconds playing. If we quickly tab
>> to another channel, mplayer continues to play.
>>     
>
> All three problems (and the fourth one, that video was not decoded correctly),
> are fixed in latest svn.
> Note that only -demuxer lavf and only -ac faad (which is the default) work
> correctly, -ac ffaac does not support the audio in your stream, I do not
> understand why -demuxer mpegts (which is the default) does not work for your
> sample.
> You may want to disable demuxer mpegts by adding demuxer=.mpegts, (note the ",")
> to your config file.
>
> Carl Eugen

Yes, the file now plays correctly in mplayer. Thank you!

Now for the next step.

I would like to be able to extract a single program from the file - with 
mencoder, if possible.
For example we have tried

mplayer/mencoder -demuxer lavf -tsprog 2005  -oac pcm -ovc copy -of avi 
-o out.avi mux2.share.ts

This produces a playable avi file, but unfortunately not of the correct 
program.

We also tried with mpeg output, but here mencoder freezes while writing 
the header:

csr at pc295:~/temp$ mplayer/mencoder -demuxer lavf -tsprog 2005  -oac pcm 
-ovc copy -of mpeg -o out.mpeg mux2.share.ts
MEncoder SVN-r29904-4.3.3 (C) 2000-2009 MPlayer Team
success: format: 0  data: 0x0 - 0xb8ea000
libavformat file format detected.
[NULL @ 0x2982d20]non-existing SPS 9 referenced in buffering period
[NULL @ 0x2982d20]non-existing PPS referenced
[h264 @ 0x2982d20]non-existing SPS 9 referenced in buffering period
[h264 @ 0x2982d20]B picture before any references, skipping
[h264 @ 0x2982d20]decode_slice_header error
[h264 @ 0x2982d20]no frame!
[NULL @ 0x291d1d0]non-existing PPS referenced
[h264 @ 0x291d1d0]B picture before any references, skipping
[h264 @ 0x291d1d0]decode_slice_header error
[h264 @ 0x291d1d0]no frame!
[NULL @ 0x2a819a0]non-existing PPS referenced
[h264 @ 0x2a819a0]B picture before any references, skipping
[h264 @ 0x2a819a0]decode_slice_header error
[h264 @ 0x2a819a0]no frame!
[h264 @ 0x2982d20]non-existing SPS 10 referenced in buffering period
[h264 @ 0x2982d20]non-existing PPS referenced
[h264 @ 0x2982d20]non-existing SPS 10 referenced in buffering period
[h264 @ 0x2982d20]B picture before any references, skipping
[h264 @ 0x2982d20]decode_slice_header error
[h264 @ 0x2982d20]no frame!
[NULL @ 0x2874080]non-existing PPS referenced
[h264 @ 0x2874080]B picture before any references, skipping
[h264 @ 0x2874080]decode_slice_header error
[h264 @ 0x2874080]no frame!
[h264 @ 0x2982d20]non-existing SPS 11 referenced in buffering period
[h264 @ 0x2982d20]non-existing PPS referenced
[h264 @ 0x2982d20]non-existing SPS 11 referenced in buffering period
[h264 @ 0x2982d20]B picture before any references, skipping
[h264 @ 0x2982d20]decode_slice_header error
[h264 @ 0x2982d20]no frame!
[h264 @ 0x2874080]non-existing PPS referenced
[h264 @ 0x2874080]B picture before any references, skipping
[h264 @ 0x2874080]decode_slice_header error
[h264 @ 0x2874080]no frame!
[h264 @ 0x2982d20]non-existing SPS 12 referenced in buffering period
[h264 @ 0x2982d20]non-existing PPS referenced
[h264 @ 0x2982d20]non-existing SPS 12 referenced in buffering period
[h264 @ 0x2982d20]B picture before any references, skipping
[h264 @ 0x2982d20]decode_slice_header error
[h264 @ 0x2982d20]no frame!
[h264 @ 0x2a819a0]non-existing PPS referenced
[h264 @ 0x2a819a0]B picture before any references, skipping
[h264 @ 0x2a819a0]decode_slice_header error
[h264 @ 0x2a819a0]no frame!
[h264 @ 0x2982d20]non-existing SPS 13 referenced in buffering period
[h264 @ 0x2982d20]non-existing PPS referenced
[h264 @ 0x2982d20]non-existing SPS 13 referenced in buffering period
[h264 @ 0x2982d20]B picture before any references, skipping
[h264 @ 0x2982d20]decode_slice_header error
[h264 @ 0x2982d20]no frame!
[h264 @ 0x2a819a0]non-existing PPS referenced
[h264 @ 0x2a819a0]B picture before any references, skipping
[h264 @ 0x2a819a0]decode_slice_header error
[h264 @ 0x2a819a0]no frame!
[h264 @ 0x2874080]non-existing PPS referenced
[h264 @ 0x2874080]B picture before any references, skipping
[h264 @ 0x2874080]decode_slice_header error
[h264 @ 0x2874080]no frame!
[h264 @ 0x2877ba0]number of reference frames exceeds max (probably 
corrupt input), discarding one
    Last message repeated 4 times
[h264 @ 0x2874080]non-existing PPS referenced
[h264 @ 0x2874080]B picture before any references, skipping
[h264 @ 0x2874080]decode_slice_header error
[h264 @ 0x2874080]no frame!
[h264 @ 0x2a819a0]non-existing PPS referenced
[h264 @ 0x2a819a0]B picture before any references, skipping
[h264 @ 0x2a819a0]decode_slice_header error
[h264 @ 0x2a819a0]no frame!
[h264 @ 0x2874080]non-existing PPS referenced
[h264 @ 0x2874080]B picture before any references, skipping
[h264 @ 0x2874080]decode_slice_header error
[h264 @ 0x2874080]no frame!
[h264 @ 0x2a819a0]non-existing PPS referenced
[h264 @ 0x2a819a0]B picture before any references, skipping
[h264 @ 0x2a819a0]decode_slice_header error
[h264 @ 0x2a819a0]no frame!
[h264 @ 0x2982d20]non-existing SPS 14 referenced in buffering period
[h264 @ 0x2982d20]non-existing PPS referenced
[h264 @ 0x2982d20]non-existing SPS 14 referenced in buffering period
[h264 @ 0x2982d20]B picture before any references, skipping
[h264 @ 0x2982d20]decode_slice_header error
[h264 @ 0x2982d20]no frame!
[h264 @ 0x2982d20]mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x2a819a0]non-existing PPS referenced
[h264 @ 0x2a819a0]B picture before any references, skipping
[h264 @ 0x2a819a0]decode_slice_header error
[h264 @ 0x2a819a0]no frame!
[h264 @ 0x2874080]non-existing PPS referenced
[h264 @ 0x2874080]B picture before any references, skipping
[h264 @ 0x2874080]decode_slice_header error
[h264 @ 0x2874080]no frame!
[h264 @ 0x2a819a0]non-existing PPS referenced
[h264 @ 0x2a819a0]B picture before any references, skipping
[h264 @ 0x2a819a0]decode_slice_header error
[h264 @ 0x2a819a0]no frame!
[h264 @ 0x291d1d0]non-existing PPS referenced
[h264 @ 0x291d1d0]B picture before any references, skipping
[h264 @ 0x291d1d0]decode_slice_header error
[h264 @ 0x291d1d0]no frame!
[h264 @ 0x2874080]number of reference frames exceeds max (probably 
corrupt input), discarding one
    Last message repeated 2 times
[h264 @ 0x291d1d0]mmco: unref short failure
[h264 @ 0x2a819a0]non-existing PPS referenced
[h264 @ 0x2a819a0]B picture before any references, skipping
[h264 @ 0x2a819a0]decode_slice_header error
[h264 @ 0x2a819a0]no frame!
[h264 @ 0x2a819a0]non-existing PPS referenced
[h264 @ 0x2a819a0]B picture before any references, skipping
[h264 @ 0x2a819a0]decode_slice_header error
[h264 @ 0x2a819a0]no frame!
[h264 @ 0x2a819a0]non-existing PPS referenced
[h264 @ 0x2a819a0]B picture before any references, skipping
[h264 @ 0x2a819a0]decode_slice_header error
[h264 @ 0x2a819a0]no frame!
[h264 @ 0x2a819a0]non-existing PPS referenced
[h264 @ 0x2a819a0]B picture before any references, skipping
[h264 @ 0x2a819a0]decode_slice_header error
[h264 @ 0x2a819a0]no frame!
[h264 @ 0x2a819a0]non-existing PPS referenced
[h264 @ 0x2a819a0]B picture before any references, skipping
[h264 @ 0x2a819a0]decode_slice_header error
[h264 @ 0x2a819a0]no frame!
[h264 @ 0x2a819a0]non-existing PPS referenced
[h264 @ 0x2a819a0]B picture before any references, skipping
[h264 @ 0x2a819a0]decode_slice_header error
[h264 @ 0x2a819a0]no frame!
[h264 @ 0x2a819a0]non-existing PPS referenced
[h264 @ 0x2a819a0]B picture before any references, skipping
[h264 @ 0x2a819a0]decode_slice_header error
[h264 @ 0x2a819a0]no frame!
[aac @ 0x2a4e590]channel element 2.11 is not allocated
[aac @ 0x2a4e590]More than one AAC RDB per ADTS frame is not 
implemented. Update your FFmpeg version to the newest one from SVN. If 
the problem still occurs, it means that your file has a feature which 
has not been implemented.
[aac @ 0x2a4e590]Error decoding AAC frame header.
[h264 @ 0x2a819a0]non-existing PPS referenced
[h264 @ 0x2a819a0]B picture before any references, skipping
[h264 @ 0x2a819a0]decode_slice_header error
[h264 @ 0x2a819a0]no frame!
[h264 @ 0x2a819a0]mmco: unref short failure
    Last message repeated 1 times
[aac @ 0x2a4e590]channel element 0.0 is not allocated
[aac @ 0x2a4e590]More than one AAC RDB per ADTS frame is not 
implemented. Update your FFmpeg version to the newest one from SVN. If 
the problem still occurs, it means that your file has a feature which 
has not been implemented.
[aac @ 0x2a4e590]Error decoding AAC frame header.
[mpegts @ 0x285f680]MAX_READ_SIZE:5000000 reached
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
[lavf] Subtitle stream found, -sid 0
[lavf] Video stream found, -vid 5
[lavf] Audio stream found, -aid 6
[lavf] Video stream found, -vid 7
[lavf] Audio stream found, -aid 8
[lavf] Video stream found, -vid 9
[lavf] Audio stream found, -aid 10
[lavf] Video stream found, -vid 11
[lavf] Audio stream found, -aid 12
[lavf] Audio stream found, -aid 13
LAVF: Program 82
LAVF: Program 2000
LAVF: Program 2005
LAVF: Program 2010
LAVF: Program 2025
LAVF: Program 2030
VIDEO:  [H264]  704x576  0bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:35  fourcc:0x34363248  size:704x576  fps:25.000  ftime:=0.0400
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 48000 Hz, 2 ch, s16le, 724.0 kbit/47.14% (ratio: 90504->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
PACKET SIZE: 2048 bytes, deltascr: 245760
videocodec: framecopy (704x576 0bpp fourcc=34363248)
Limiting audio preload to 0.4s.
Increasing audio density to 4.
Writing header...





More information about the MPlayer-users mailing list