[mythtv-users] DVB-T MPEG-TS with H.264 to MPEG-PS conversion

Harald Gustafsson hgu1972 at gmail.com
Fri Jan 6 18:56:56 UTC 2012


Hi,

I'm recording a DVB-T MPEG-TS with the following streams h264, 2
dvbsubs, ac3, mp3. I want to keep all of the streams (without
transcoding) but convert the container to MPEG-PS instead. This is due
to that if I only copy the MPEG-TS to my mythvideo folder it don't
have a seek DB table and hence seeks are very slow when played with
mythvideo (version 0.24-fixes). As I understand it a MPEG-PS is faster
to search in. I can't convert to another container since they have
problems handling the dvbsubs. For other channels that use mpeg2 video
I use the mythtranscode -m which works and generates a PS file (which
also generates higher quality video further converted to H.264 with
handbrake for channels without dvbsub).

I thought something like
ffmpeg -i ts.mpg -vcodec copy -acodec copy -scodec copy -f vob ps.mpg

would do it but I get the following error:

Seems stream 0 codec frame rate differs from container frame rate:
50.00 (50/1) -> 25.00 (25/1)
Input #0, mpegts, from '/media/large/mythtvrecordings/2515_20100306200000.mpg':
  Duration: 20:53:40.98, start: 9453.396422, bitrate: 184 kb/s
  Program 1
    Stream #0.0[0x83f]: Video: h264, yuv420p, 704x576 [PAR 16:11 DAR
16:9], 25 tbr, 90k tbn, 50 tbc
    Stream #0.1[0x857](dan): Subtitle: dvbsub
    Stream #0.2[0x858](dan): Subtitle: dvbsub
File '/media/media2/videos/Archived_recordings/2515_20100306200000.mpg'
already exists. Overwrite ? [y/N] y
Output #0, vob, to
'/media/media2/videos/Archived_recordings/2515_20100306200000.mpg':
    Stream #0.0: Video: libx264, yuv420p, 704x576 [PAR 16:11 DAR
16:9], q=2-31, 90k tbn, 25 tbc
    Stream #0.1: Audio: ac3, 0 channels, s16
    Stream #0.2(dan): Subtitle: dvbsub
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.3 -> #0.1
  Stream #0.1 -> #0.2
[vob @ 0x8acaa50]sample rate not set
Could not write header for output file #0 (incorrect codec parameters ?)

Also it does not copy both audio and both dvbsubs.

Anyone having suggestions how to translate the file into something
that is fast seekable for mythvideo?

/Harald


More information about the mythtv-users mailing list