Opened 13 years ago

Closed 12 years ago

#2662 closed defect (fixed)

Internal player cannot seek in Matroska-Files (*.mkv)

Reported by: anonymous Owned by: greg
Priority: minor Milestone: unknown
Component: mythtv Version: unknown
Severity: medium Keywords:
Cc: Ticket locked: no

Description

With the Internal player and Matroska-files, Jump, Fast-Forward and Rewind doesnt work.

Change History (12)

comment:1 Changed 13 years ago by anonymous

Summary: Matroska-Files dosnt work well with internal PlayerInternal player cannot seek in Matroska-Files (*.mkv)

comment:2 Changed 12 years ago by jovchev@…

I have compiled from SVN.

I am experiencing the same issue with Matroska files (mkv). I can submit more info if needed.

comment:3 Changed 12 years ago by jonner@…

I am using mythtv SVN revision 14623 and I am also not able to seek in Matroska files containing H.264 video and AC3 (A/52) audio generated by ffmpeg (SVN revision 10707). Both mplayer and ffplay (from ffmpeg 10707) seek just fine in the same files. I'm experimenting with transcoding HD recordings into a size that can fit on a DVD-R. H.264 encoded by x264 seems to do well and I don't want to change the A/52 audio. So, far, I've had the best luck with AVI, but it's a limited and fragile format, so I'd rather use something more modern and robust against damage. MPEG-4 and MOV don't seem to like carrying A/52 (at least not encoded by FFMPEG). I also tried MPEG-TS, which plays very jerkily. Ffplay and mplayer also seem fine with Nut, but mythfrontend just gives me a black screen. Either mythtv doesn't actually handle all the containers provided by libavformat or the version in mythtv SVN is pretty old.

comment:4 Changed 12 years ago by anonymous

This one is really biting me. I don't have (or really want) a tuner, so I use myth exclusively for watching HD rips of DVDs or things recorded elsewhere. Quite a lot of these (the HD ones especially) are H264 mkvs. I use a script to pull info down from ragetv, and insert them into my database as if they are recordings. The whole system works fantastically - except for this.

Add to this the fact that, for recordings, I only seem to be able to use the internal player - this is a real pain!

Is anybody able to let me know if there is likely to be some progress on this, or, should I be looking hard for a workaround?

comment:5 Changed 12 years ago by jonner@…

I'd like the ability to easily switch players to watch both recordings and other things. I use mplayer to play AVI and MKV video files in MythVideo? and Xine to watch DVDs (when the Internal player has trouble, which is less frequent than it used to be). I think it would be great if I could quickly switch between the Internal and any other player to watch recordings, since sometimes the internal player has trouble even with ATSC recordings. Ideally, the internal player would handle everything, but it has a long way to go compared to mplayer.

comment:6 Changed 12 years ago by anonymous

Is there a way to force 'non-internal' player with recordings? Lot's of my 'recordings' are imports as MKV/H264s

comment:7 Changed 12 years ago by jonner@…

I'm not aware of a way to configure MythTV to use an external player to player recordings, though I'd like that feature.

comment:8 Changed 12 years ago by anonymous

I just realized this bug is over a year old. Given the increasing popularity of mkv as a format, maybe its priority needs to be looked at again? How would one go about requesting that that happen?

comment:9 Changed 12 years ago by greg

Owner: changed from Isaac Richards to greg
Status: newassigned
Version: 0.20unknown

comment:10 Changed 12 years ago by oschista@…

The problem persists if you declare a filetype for .mkv files, and specify mplayer as the playcommand for this type. So; for some reason, mplayer does not honour seek commands (keyboard or lirc) when playing back an .mkv which was launched from mythtv. It does however let you pause video, which means that the problem seems to be strictly related to seeking..

comment:11 in reply to:  10 Changed 12 years ago by jonathanrrogers@…

Replying to oschista@chello.no:

The problem persists if you declare a filetype for .mkv files, and specify mplayer as the playcommand for this type. So; for some reason, mplayer does not honour seek commands (keyboard or lirc) when playing back an .mkv which was launched from mythtv. It does however let you pause video, which means that the problem seems to be strictly related to seeking..

You may have some problem related to seeking in a particular Matroska file or with a particular version or configuration of mplayer. I have no such problem and I have mythfrontend launch mplayer to play all *.mkv specifically because seeking with both keyboard and LIRC works.

However, that's not even relevant to this bug, which is about MythTV's internal player.

comment:12 Changed 12 years ago by greg

Resolution: fixed
Status: assignedclosed

(In [16362]) Merges [16357] and closes #2662

This is a work around for when libav doesnt return a valid DTS after a call to av_seek_frame(). This allows us to seek around in MKV/MOV/MP4 files. If at some point libav changes to return some info we can remove it but for now this does the job.

Note: See TracTickets for help on using tickets.