[FFmpeg-devel] Problem in opening trp ("special" MPEG-TS files)

Yiu-Chung Lee lee_yiu_chung
Fri Jun 20 17:41:05 CEST 2008


Dear all,

By the way, when I attemped to converted a trp file to standard ts file, 
I got an error 'av_interleaved_write_frame(): Error while opening file
". Below is the console dump. You can also notice that Stream 
#0.3[0x358] and Stream #0.4[0x357] should be dvbsub, but attempted to 
decode it as audio incorrectly, even -scodec dvbsub is used.

Thanks,
Yiu-Chung Lee

-----------
ffmpeg -vcodec h264 -scodec dvbsub -i DATA00.trp -vcodec copy -acodec 
copy DATA00.ts
FFmpeg version SVN-r13836, Copyright (c) 2000-2008 Fabrice Bellard, et al.
   configuration: --enable-gpl --enable-nonfree --enable-liba52 
--enable-liba52bin --enable-libamr-nb --enable-libamr-wb 
--enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad 
--enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libnut 
--enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid
   libavutil version: 49.7.0
   libavcodec version: 51.57.2
   libavformat version: 52.16.0
   libavdevice version: 52.0.0
   built on Jun 20 2008 23:18:33, gcc: 4.1.2 20061115 (prerelease) 
(Debian 4.1.1-21)
[h264 @ 0x84e3410]B picture before any references, skipping
[h264 @ 0x84e3410]decode_slice_header error
[h264 @ 0x84e3410]B picture before any references, skipping
[h264 @ 0x84e3410]decode_slice_header error
[h264 @ 0x84e3410]B picture before any references, skipping
[h264 @ 0x84e3410]decode_slice_header error
[h264 @ 0x84e3410]B picture before any references, skipping
[h264 @ 0x84e3410]decode_slice_header error
[h264 @ 0x84e3410]B picture before any references, skipping
[h264 @ 0x84e3410]decode_slice_header error
[h264 @ 0x84e3410]B picture before any references, skipping
[h264 @ 0x84e3410]decode_slice_header error
[h264 @ 0x84e3410]no frame!
[h264 @ 0x84e3410]B picture before any references, skipping
[h264 @ 0x84e3410]decode_slice_header error
[h264 @ 0x84e3410]B picture before any references, skipping
[h264 @ 0x84e3410]decode_slice_header error
[h264 @ 0x84e3410]B picture before any references, skipping
[h264 @ 0x84e3410]decode_slice_header error
[h264 @ 0x84e3410]B picture before any references, skipping
[h264 @ 0x84e3410]decode_slice_header error
[h264 @ 0x84e3410]B picture before any references, skipping
[h264 @ 0x84e3410]decode_slice_header error
[h264 @ 0x84e3410]B picture before any references, skipping
[h264 @ 0x84e3410]decode_slice_header error
[h264 @ 0x84e3410]no frame!
Input #0, mpegts, from 'DATA00.trp':
   Duration: 00:00:53.16, start: 838.364800, bitrate: 13326 kb/s
     Stream #0.0[0x354]: Audio: liba52, 48000 Hz, stereo, 192 kb/s
     Stream #0.1[0x353]: Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR 
16:9], 25.00 tb(r)
     Stream #0.2[0x355]: Audio: liba52, 48000 Hz, 5:1, 384 kb/s
     Stream #0.3[0x358]: Audio: liba52
     Stream #0.4[0x357]: Audio: liba52
Output #0, mpegts, to 'DATA00.ts':
     Stream #0.0: Video: libx264, yuv420p, 1920x1080, q=2-31, 25.00 tb(c)
     Stream #0.1: Audio: ac3, 48000 Hz, stereo, 192 kb/s
Stream mapping:
   Stream #0.1 -> #0.0
   Stream #0.0 -> #0.1
Press [q] to stop encoding
error, non monotone timestamps 39679 >= 39679
av_interleaved_write_frame(): Error while opening file


Yiu-Chung Lee ??:
> Dear all,
> 
> I live in Hong Kong where deploys digital terrestrial TV recently. I 
> just bought a digital TV set-top box with recording functions. But I 
> found that I have some problems in transcoding the file recording by the 
> set-top box.
> 
> Firstly, let me describe the broadcasting parameters being used in Hong 
> Kong digital broadcasting.
> 
> Broadcasting standard: DMB-T/H (http://en.wikipedia.org/wiki/DMB-T/H)
> Multiplexing: MPEG2-TS
> Video: H.264/MPEG2 Video
> Audio: MPEG-1 Audio Layer II/AC3
> Subtitle: ETSI EN 300 743 (or dvbsub in ffmpeg terms)
> 
> As a test, I recorded a few programmes, but have difficulties to 
> transcode them. I found that my set-top box records the TV programmes 
> with trp format, which seems to be a MPEG2-TS file with PAT/PMT headers 
> stripped off. As a result, the complete data streams contained in the 
> trp file cannot be found without scanning the whole file. (Just my wild 
> guess, since I am not familiar to codecs, and these are based my "google 
> research", and trial-and-error.)
> 
> In the first file I tried, it seems that it is unable to detect the 
> dvbsub stream, and incorrectly attempted to use liba52 to decode it as 
> audio.
> 
> In the second file I tried, since the subtitles appears near the end of 
> file only, ffmpeg just doesn't find the subtitles PID stream. (Normally 
> there should be 5 streams (1 H.264 video + 2 AC3 audio + 2 subtitles), 
> but only 3 of them are detected (only video + audio).
> 
> I would like to ask if ffmpeg can support these "special" MPEG2-TS 
> files, and detects the subtitles correctly. If you need these video 
> samples, I can upload to you, but since one the file is file size 
> related issue, I cannot follow your instruction to crop down it, but 
> instead I would need to upload 120MB file to you. If it is not OK, you 
> can ask me, and I will try to arrange another method to you.
> 
> Thanks,
> Yiu-Chung Lee
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
> 
> 




More information about the ffmpeg-devel mailing list