[mythtv-users] HD-PVR resolution detection

Robert McNamara robert.mcnamara at gmail.com
Fri Jul 31 19:05:28 UTC 2009


On Fri, Jul 31, 2009 at 12:01 PM, DISAFAN<disafan at aim.com> wrote:
> I've been trying to change my method of output to the mythnuv2mkv script,
> and I discovered a problem. After some searching, I traced the problem to
> the container of the H264 files output by the HD-PVR recordings.
>
> The mplayer command is used to detect width and height. However in all files
> the ID_VIDEO_HEIGHT/WIDTH parameter is set to 0. So all the detection fails.
>

The problem is with your method of resolution detection.  Both Myth
and ffmpeg (ffmpeg -i file) detect the resolution fine.  The
deficiency is with mplayer/trying to get the resolution this way.  You
can probably submit a bug to the mplayer folks, though.

> So the question is two-fold. Does anyone have any suggestions for a script
> to aid me in detecting and setting these parameters? Then I could batch
> convert the directory to include them. It seems ultimately easier than
> trying to change the method of detection on a multitude of scripts that use
> Mplayer.

Get mplayer to fix it, or use ffmpeg.

>
> The second question is...since no one else has reported this problem, why is
> this being set to 0 instead of the resolution? What is responsible for
> setting the resolution, the HD-PVR firmware or the MythTV recorder? If it is
> the latter, is this something I should submit as a bug?

It's not a myth or HD-PVR bug, see above.

Robert


root at Moriarty:/src/mythtv# ffmpeg -i
/var/lib/mythtv/recordings2/3770_20090621205900.mpg
FFmpeg version SVN-r18800, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --enable-shared --enable-gpl --enable-postproc
--enable-libmp3lame --enable-libvorbis --enable-pthreads
--enable-libx264 --enable-libtheora --enable-libfaac --enable-libfaad
--enable-libxvid --enable-nonfree
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.28. 0 / 52.28. 0
  libavformat   52.32. 0 / 52.32. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on May 26 2009 20:29:58, gcc: 4.3.3
Input #0, mpegts, from '/var/lib/mythtv/recordings2/3770_20090621205900.mpg':
  Duration: 01:02:22.23, start: 0.387067, bitrate: 14224 kb/s
  Program 1
    Stream #0.0[0x1011]: Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR
16:9], 59.94 tbr, 90k tbn, 59.94 tbc
    Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, stereo, s16, 384 kb/s
At least one output file must be specified


More information about the mythtv-users mailing list