[FFmpeg-devel] .trp file format

sanados sanados
Wed Dec 19 15:20:35 CET 2007


Michael Niedermayer wrote:
> with latest svn:
> ffmpeg -vcodec h264 -i test.trp
> works
>
> and with
> ffmpeg -vcodec h264 -i test.trp -vcodec copy -acodec copy test.ts
> you maybe can repair the file
>
> [...]
>
>   
works like a charm .... kinda ... manged to get audio from file.
only cpl of frames left in resulting video.
(my guess is that the example is just plain faulty ...)

mencoder fails,
vlc shows single frames
mplayer fails


sanados at canino:~/Desktop/trp_sample$ mencoder -oac lavc -ovc lavc 
test.ts -o test_neu.ts
MEncoder 2:1.0~rc2-0ubuntu1~gutsy1 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU         T5600  @ 1.83GHz (Family: 6, Model: 
15, Stepping: 6)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0  data: 0x0 - 0x2235838
TS file format detected.
NO VIDEO! AUDIO A52(pid=257) NO SUBS (yet)!  PROGRAM N. 1
Video stream is mandatory!

Exiting...






sanados at canino:~/Desktop/trp_sample$ vlc test.ts
VLC media player 0.8.6c Janus
libdvbpsi error (PSI decoder): TS discontinuity (received 1, expected 0) 
for PID 17
libdvbpsi error (PSI decoder): TS discontinuity (received 1, expected 0) 
for PID 0
libdvbpsi error (PSI decoder): TS discontinuity (received 1, expected 0) 
for PID 4095
[00000374] a52 decoder: A/52 channels:6 samplerate:48000 bitrate:448000
No accelerated IMDCT transform found
[00000281] main playlist: stopping playback






sanados at canino:~/Desktop/trp_sample$ mplayer test.ts
MPlayer 1.0rc2-4.1.3 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU         T5600  @ 1.83GHz (Family: 6, Model: 
15, Stepping: 6)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote 
control.

Playing test.ts.
TS file format detected.
NO VIDEO! AUDIO A52(pid=257) NO SUBS (yet)!  PROGRAM N. 1
==========================================================================
Forced audio codec: mad
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   2.0 (01.9) of 640.5 (10:40.5)  0.8%

MPlayer interrupted by signal 2 in module: play_audio
sanados at canino:~/Desktop/trp_sample$




btw.

$ mplayer -dumpvideo -dumpfile x.h264 test.trp
$ mplayer -dumpaudio -dumpfile x.mp2 test.trp


both die with:
TS_PARSE: COULDN'T SYNC
Core dumped ;)







More information about the ffmpeg-devel mailing list