[mythtv-users] Problems playing MPEG2 from ffmpeg

Tyler T tylernt at gmail.com
Tue Feb 24 02:54:20 UTC 2009


>>> My Myth frontend is perfectly happy playing back MPEG2 video from a
>>> Hauppage-PVR150, but barfs on ffmpeg's "-target dvd" output. I have
>
>> mythtv relies on an internal database table which contains an index
>> which is essential for ffwd/rew in a mpeg file. You need to re-index
>> your file:
>
> Ah, 'mythcommflag --rebuild' did the trick nicely. Many thanks!!

Sadly this only works for some shows. Others are still messed up (no
more display corruption, but FF/RR and skipping shoot all over the
place) no matter how many times I rebuild them.

Per http://www.mythtv.org/wiki/Repairing_the_Seektable, I also tried
mythtranscode, but something is wrong as I only get 0-byte files as
output (and of course the original file still does not work properly):

root at mythback:/store# mythtranscode --mpeg2 --buildindex --allkeys -v
all -i 2042_20090223070000.mpg -o 2042_20090223070000.mpg.tmp
2009-02-23 19:29:09.352 Using runtime prefix = /usr/local, libdir =
/usr/local/lib
2009-02-23 19:29:09.365 Using localhost value of mythback
2009-02-23 19:29:09.374 MCP::DefaultUPnP() - No default UPnP backend
2009-02-23 19:29:09.375 MythSocket(8175018:3): new socket
2009-02-23 19:29:09.375 MythSocket(8175018:3): attempting connect() to
(0.0.0.0:3306)
2009-02-23 19:29:09.376 MythSocket(8175018:3): state change Idle -> Connected
2009-02-23 19:29:09.376 MythSocket(8175018:3): state change Connected -> Idle
2009-02-23 19:29:09.541 New DB connection, total: 1
2009-02-23 19:29:09.604 Connected to database 'mythconverg' at host: mythback
2009-02-23 19:29:09.607 Closing DB connection named 'DBManager0'
2009-02-23 19:29:09.608 Clearing Settings Cache.
2009-02-23 19:29:09.608 Enabling Settings Cache.
2009-02-23 19:29:09.608 Clearing Settings Cache.
2009-02-23 19:29:09.608 Enabled verbose msgs: all
2009-02-23 19:29:09.609 Connected to database 'mythconverg' at host: mythback
2009-02-23 19:29:09.611 MSqlQuery: SELECT chanid, starttime FROM
recorded WHERE basename = '2042_20090223070000.mpg';
2009-02-23 19:29:09.613 New DB connection, total: 2
2009-02-23 19:29:09.613 Connected to database 'mythconverg' at host: mythback
2009-02-23 19:29:09.615 MSqlQuery: SELECT
recorded.chanid,starttime,endtime,title,
subtitle,description,channel.channum,
channel.callsign,channel.name,channel.commmethod,
channel.outputfilters,seriesid,programid,filesize,
lastmodified,stars,previouslyshown,originalairdate,
hostname,recordid,transcoder,playgroup,
recorded.recpriority,progstart,progend,basename,recgroup, storagegroup
FROM recorded LEFT JOIN channel ON recorded.chanid = channel.chanid
WHERE recorded.chanid = '2042' AND starttime = '2009-02-23T07:00:00' ;
2009-02-23 19:29:09.617 New DB connection, total: 3
2009-02-23 19:29:09.618 Connected to database 'mythconverg' at host: mythback
2009-02-23 19:29:09.619 MSqlQuery: SELECT commflagged, cutlist,
autoexpire, editing, bookmark, watched, preserve FROM recorded LEFT
JOIN recordedprogram ON (recorded.chanid = recordedprogram.chanid AND
recorded.progstart = recordedprogram.starttime) WHERE recorded.chanid
= '2042' AND recorded.starttime = '2009-02-23T07:00:00' ;
2009-02-23 19:29:09.620 MSqlQuery: SELECT audioprop+0, videoprop+0,
subtitletypes+0 FROM recorded LEFT JOIN recordedprogram ON
(recorded.chanid = recordedprogram.chanid AND recorded.progstart =
recordedprogram.starttime) WHERE recorded.chanid = '2042' AND
recorded.starttime = '2009-02-23T07:00:00' ;
2009-02-23 19:29:09.621 Transcoding from 2042_20090223070000.mpg to
2042_20090223070000.mpg.tmp
2009-02-23 19:29:09.647 Generating Keyframe Index
2009-02-23 19:29:09.647 Opening 2042_20090223070000.mpg
2009-02-23 19:29:09.736 Input #0, mpeg, from '2042_20090223070000.mpg':
2009-02-23 19:29:09.736   Duration: 00:29:57.2, start: 0.500000,
bitrate: 6091 kb/s
2009-02-23 19:29:09.740     Stream #0.0[0x1e0]: Video: mpeg2video,
yuv420p, 720x614 [PAR 614:405 DAR 16:9], 9000 kb/s, 29.97 tb(r)
2009-02-23 19:29:09.740     Stream #0.1[0x80]: Audio: ac3, 48000 Hz,
stereo, 192 kb/s
2009-02-23 19:29:28.565 Transcode Completed
2009-02-23 19:29:28.632 Transcoding 2042_20090223070000.mpg done

root at mythback:/store# ls -l 2042_20090223070000.mpg.tmp
-rw-r--r-- 1 root root 0 2009-02-23 19:29 2042_20090223070000.mpg.tmp

Why does mythtranscode produce 0-byte files and how do I fix it?

Thanks...
___
 /yler


More information about the mythtv-users mailing list