Project

General

Profile

Bug #392

Popcorn Hour A-110 can't play recorded .mkv files

Added by Yura Scheglyuk over 13 years ago. Updated over 13 years ago.

Status:
Rejected
Priority:
Low
Assignee:
Category:
PVR / DVR
Target version:
Start date:
2011-03-02
Due date:
% Done:

0%

Estimated time:
Found in version:
Affected Versions:

Description

Popcorn Hour A-110 can't play recorded from IPTV streams .mkv files. This is the first time I met when Popcorn can't play .mkv file.

XBMC and other PC media players playback this recorded .mkv files correctly. Popcorn can play recorded by VLC and IPTV player files from this IPTV streams. Popcorn can play this IPTV streams through udpxy proxy.

Mediainfo:

General
Unique ID                        : 20397001359923611432230202699404916711 (0xF5851CF4E2A8D297AF822688FFDB7E7)
Complete name                    : tvheadend-recorded.mkv
Format                           : Matroska
File size                        : 11.3 MiB
Duration                         : 33s 80ms
Overall bit rate                 : 2 865 Kbps
Movie name                       : News at weekend.
Writing application              : HTS Tvheadend git-c365f23
Writing library                  : HTS Tvheadend Matroska muxer

Video
ID                               : 1
Format                           : MPEG Video
Format version                   : Version 2
Format profile                   : Main@Main
Format settings, BVOP            : No
Format settings, Matrix          : Default
Codec ID                         : V_MPEG2
Codec ID/Info                    : MPEG 1 or 2 Video
Duration                         : 33s 80ms
Bit rate mode                    : Constant
Bit rate                         : 2 750 Kbps
Width                            : 544 pixels
Height                           : 576 pixels
Display aspect ratio             : 16:9
Frame rate                       : 25.000 fps
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Interlaced
Scan order                       : Top Field First
Compression mode                 : Lossy
Bits/(Pixel*Frame)               : 0.351
Stream size                      : 10.6 MiB (94%)
Language                         : English

Audio #1
ID                               : 2
Format                           : MPEG Audio
Format version                   : Version 1
Format profile                   : Layer 2
Codec ID                         : A_MPEG/L2
Codec ID/Hint                    : MP2
Duration                         : 33s 80ms
Bit rate mode                    : Constant
Bit rate                         : 64.0 Kbps
Channel(s)                       : 1 channel
Sampling rate                    : 48.0 KHz
Compression mode                 : Lossy
Delay relative to video          : 1mn 5s
Stream size                      : 258 KiB (2%)
Language                         : Russian

Audio #2
ID                               : 3
Format                           : MPEG Audio
Format version                   : Version 1
Format profile                   : Layer 2
Codec ID                         : A_MPEG/L2
Codec ID/Hint                    : MP2
Duration                         : 33s 80ms
Bit rate mode                    : Constant
Bit rate                         : 64.0 Kbps
Channel(s)                       : 1 channel
Sampling rate                    : 48.0 KHz
Compression mode                 : Lossy
Delay relative to video          : 1mn 5s
Stream size                      : 258 KiB (2%)
Language                         : English

Here is the mono (Popcorn player) logs:

root@A-110 Video# mono tvheadend-recorded.mkv
mono.c: 1949  ...
Starting mono with command >> [mono] [tvheadend-recorded.mkv]

mono.c: 2735  ...  ===> repeat mode: 0
mono.c: 2814  ...  ===> subtitle: 6
apply_tvmode  >> 17 [HDMI 1080p 50Hz]
tvmode param: [-f HDMI_1080p50 -o dvi_24 -asp 16 9 -dvi_hdmi siI9134 -hdmi2c 1 -cs rgb_0_255]

[HDMI] ========================== creating pDH ==========================
[HDMI] Detected part at I2C device address 0x72: vendor 0x0001, device 9134, rev.0x01 (Silicon Image)
[HDMI] Using the part: SiI9134 (7), Vendor ID is 0x0001 / 0x9134
[HDMI]    ***   HotPlug changed, is now ON
[HDMI]    ***   Rx changed, is now ON
[HDMI]    ***   Clock changed, is now STABLE
[HDMI] DHCancelHDCP()

  HH  HH  HHHHH   HH   HH  HHHH      HHHH   HH   HH
  HH  HH  HH  HH  HHH HHH   HH      HH  HH  HHH  HH
  HHHHHH  HH  HH  HH H HH   HH      HH  HH  HH H HH
  HH  HH  HH  HH  HH   HH   HH      HH  HH  HH  HHH
  HH  HH  HHHHH   HH   HH  HHHH      HHHH   HH   HH

[HDMI] DHGetVideoModeFromEDID(): Looking for 16:9 mode in YCbCr
Monitor is HDMI
[HDMI] DHSetHDMIMode(TRUE)
[HDMI] Sending blank AudioInfoFrames
[HDMI] Sending null packet
[HDMI] DHUpdateVideoPixelClock(148500000)
[HDMI] Setting the HDMI Audio Clock, PixClk=148500000, SampleClk=48000
HDMI Colorspace is now: RGB full range
Monitor is HDMI
[HDMI]    ***   Clock changed, is now STABLE
Cannot insert picture inside surface 7
mono.c: 3303  ...  open_path: [tvheadend-recorded.mkv]
mono.c: 3586  ...  [mono] apptype=10
mono.c: 3668  ...  [mono] app_params.play_opt->prebuf_max: 16777216
mono.c: 3687  ...  [mono] start play_file_app
Using app: 10
rm: cannot remove '/tmp/is_wma.txt': No such file or directory
mono_gui.c: 2735  ...  run RMFRTKClearScreen

Files

hts-postproc.sh (433 Bytes) hts-postproc.sh simple mkvmerge on recorded .mkv file Yura Scheglyuk, 2011-05-02 12:35

History

#1

Updated by Andreas Smas over 13 years ago

  • Status changed from New to Rejected
  • Priority changed from Normal to Low

I suggest you either point out what's wrong with the MKV files generated by Tvheadend and/or file a bug to the popcorn hour developers

I can unfortunately not test nor work around bugs with every player out there.

#2

Updated by Yura Scheglyuk over 13 years ago

I found that simple run of mkvmerge on recorded mkv's fix "wrong" mkv structure. But this is the partial solution because working on SD recordings only. HD channels not fixed by mkvmerge may be due h264 stream or something else as reported in bug #464

I have placed my post-processing script in attach. Use tvheadend setting in Configuration - Digital Video Recorder - Post-processor command: /usr/local/bin/hts-postproc.sh "%f"

Below is the text of this script:

#!/bin/sh

MKVFILE=$1
POSTPROC="/usr/bin/mkvmerge" 

if [ -z "$MKVFILE" ] ; then
  echo "Post-processings for HTS Tveheadend recorded .mkv." 
  echo "Usage: $0 /full/path/to/the-record.mkv" 
  exit 1
fi

if [ -w "$MKVFILE" ]; then
  if TMPFILE=`/bin/mktemp --tmpdir=${MKVFILE%/*}/` ; then 
    if $POSTPROC -q -o $TMPFILE "$MKVFILE" > /dev/null ; then
      /bin/mv -f $TMPFILE "$MKVFILE" 
      /bin/chmod 666 "$MKVFILE" 
    fi
  fi
fi

Also available in: Atom PDF