[mythtv-users] Mythtranscode fifo fails to correctly recognise stream parameters

Mark Perkins perkins1724 at hotmail.com
Wed May 21 11:14:14 UTC 2014


Hi all, hoping someone can give me a pointer here because I have no idea.

I have three recordings that I am trying to transcode. Each are OTA DVB-T
recordings. I am essentially using the example script from the wiki -
http://www.mythtv.org/wiki/Example_Script_using_mythtranscode_in_fifodir_mod
e

The crux of the issue appears to be that mythtranscode in fifo mode is
completely failing to correctly identify the stream parameters for the
recordings. The full output is further below but the key details are:

Mythtranscode fifoinfo gives the following:
2014-05-21 19:14:35.226658 I  FifoVideoWidth 640
2014-05-21 19:14:35.226667 I  FifoVideoHeight 480
2014-05-21 19:14:35.226685 I  FifoVideoAspectRatio 1.33333
2014-05-21 19:14:35.226772 I  FifoVideoFrameRate 29.97
2014-05-21 19:14:35.226788 I  FifoAudioFormat raw
2014-05-21 19:14:35.226815 I  FifoAudioChannels 0
2014-05-21 19:14:35.226832 I  FifoAudioSampleRate 0

Mediainfo gives the following:
Video
Width: 720 pixels (ie not 640)
Height: 576 pixels (ie not 480)
Display aspect ratio: 16:9 (ie not 1.33333)
Frame rate: 25.000 fps (ie not 29.97)

Audio
Channel count: 2 channels (ie not 0)
Sampling rate: 48.0 KHz (ie not 0)

ffmpeg fails because it is fed the wrong information. Although I tried to
manually correct the information passed to ffmpeg and the output still
fails, it appears that mythtranscode is outputting incorrectly (or at least
not as expected).

The recordings play perfectly fine on MFE.

Do I just write these off and delete as being too hard? Or does anyone have
some pointers / suggestions / comments?

Full details of recordings below:
$ mythbackend --version
Please attach all output as a file in bug reports.
MythTV Version : v0.27-205-g39686c6
MythTV Branch : fixes/0.27
Network Protocol : 77
Library API : 0.27.20140323-1
QT Version : 4.8.4
Options compiled in:
 linux profile use_hidesyms using_alsa using_oss using_pulse
using_pulseoutput using_backend using_bindings_perl using_bindings_python
using_bindings_php using_crystalhd using_dvb using_firewire using_frontend
using_hdhomerun using_ceton using_hdpvr using_ivtv using_joystick_menu
using_libcrypto using_libdns_sd using_libfftw3 using_libxml2 using_lirc
using_mheg using_opengl using_opengl_video using_qtwebkit using_qtscript
using_qtdbus using_taglib using_v4l2 using_x11 using_xrandr using_xv
using_profiletype using_bindings_perl using_bindings_python
using_bindings_php using_mythtranscode using_opengl using_vaapi using_vdpau
using_ffmpeg_threads using_mheg using_libass using_libxml2

$ nice -n 19 ionice -c3 mythtranscode -v general --chanid 1022 --starttime
2014-05-14T22:02:00 --fifoinfo --passthrough
2014-05-21 19:59:28.069272 C  mythtranscode version: fixes/0.27
[v0.27-205-g39686c6] www.mythtv.org
2014-05-21 19:59:28.069293 C  Qt version: compile: 4.8.4, runtime: 4.8.4
2014-05-21 19:59:28.069300 N  Enabled verbose msgs:  general
2014-05-21 19:59:28.069317 N  Setting Log Level to LOG_INFO
2014-05-21 19:59:28.080228 I  Added logging to the console
2014-05-21 19:59:28.080872 I  Setup Interrupt handler
2014-05-21 19:59:28.080892 I  Setup Terminated handler
2014-05-21 19:59:28.080907 I  Setup Segmentation fault handler
2014-05-21 19:59:28.080923 I  Setup Aborted handler
2014-05-21 19:59:28.080937 I  Setup Bus error handler
2014-05-21 19:59:28.080954 I  Setup Floating point exception handler
2014-05-21 19:59:28.080968 I  Setup Illegal instruction handler
2014-05-21 19:59:28.080987 I  Setup Real-time signal 0 handler
2014-05-21 19:59:28.081029 N  Using runtime prefix = /usr/local
2014-05-21 19:59:28.081045 N  Using configuration directory =
/home/mark/.mythtv
2014-05-21 19:59:28.081126 I  Assumed character encoding: en_AU.UTF-8
2014-05-21 19:59:28.081575 I  Using localhost value of mark-EP35-DS3
2014-05-21 19:59:28.081619 I  Testing network connectivity to '192.168.1.9'
2014-05-21 19:59:28.081785 I  Starting process manager
2014-05-21 19:59:28.081810 I  Starting process signal handler
2014-05-21 19:59:28.081946 I  Starting IO manager (read)
2014-05-21 19:59:28.084704 I  Starting IO manager (write)
2014-05-21 19:59:28.182045 I  New Client:  (#1)
2014-05-21 19:59:28.259150 N  Setting QT default locale to en_AU
2014-05-21 19:59:28.259236 I  Current locale en_AU
2014-05-21 19:59:28.259285 E  No locale defaults file for en_AU, skipping
2014-05-21 19:59:28.259835 I  Loading en_gb translation for module
mythfrontend
2014-05-21 19:59:28.268920 N  Transcoding from
/media/fs1/recordings/1022_20140514220200.mpg to FIFO
2014-05-21 19:59:28.396957 I  AFD: codec MP3 has 0 channels
2014-05-21 19:59:28.397084 I  AFD: Opened codec 0x9aa4300, id(MP3)
type(Audio)
2014-05-21 19:59:28.397429 I  MythCoreContext: Connecting to backend server:
192.168.1.9:6543 (try 1 of 1)
2014-05-21 19:59:28.401480 I  AFD: Opened codec 0x9aa3b00, id(MPEG2VIDEO)
type(Video)
2014-05-21 19:59:28.401747 N  AudioPlayer: Enabling Audio
2014-05-21 19:59:28.405915 I  Using protocol version 77
2014-05-21 19:59:28.437568 N  AudioPlayer: Enabling Audio
2014-05-21 19:59:28.459494 I  FifoVideoWidth 640
2014-05-21 19:59:28.459516 I  FifoVideoHeight 480
2014-05-21 19:59:28.459552 I  FifoVideoAspectRatio 1.33333
2014-05-21 19:59:28.459573 I  FifoVideoFrameRate 29.97
2014-05-21 19:59:28.459589 I  FifoAudioFormat raw
2014-05-21 19:59:28.459603 I  FifoAudioChannels 0
2014-05-21 19:59:28.459618 I  FifoAudioSampleRate 0
2014-05-21 19:59:28.492308 I  Waiting for threads to exit.


$ mediainfo /media/fs1/recordings/1022_20140514220200.mpg
General
ID                                       : 593 (0x251)
Complete name                            :
/media/fs1/recordings/1022_20140514220200.mpg
Format                                   : MPEG-TS
File size                                : 650 MiB
Duration                                 : 22mn 58s
Overall bit rate mode                    : Variable
Overall bit rate                         : 3 952 Kbps

Video
ID                                       : 2307 (0x903)
Menu ID                                  : 1 (0x1)
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main at Main
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Custom
Format settings, GOP                     : M=3, N=12
Codec ID                                 : 2
Duration                                 : 22mn 58s
Bit rate mode                            : Variable
Bit rate                                 : 3 498 Kbps
Maximum bit rate                         : 10 000 Kbps
Width                                    : 720 pixels
Height                                   : 576 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 fps
Standard                                 : PAL
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.337
Time code of first frame                 : 07:50:54:17
Time code source                         : Group of pictures header
Stream size                              : 575 MiB (89%)

Audio
ID                                       : 2308 (0x904)
Menu ID                                  : 1 (0x1)
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 2
Codec ID                                 : 4
Duration                                 : 22mn 58s
Bit rate mode                            : Constant
Bit rate                                 : 256 Kbps
Maximum bit rate                         : 288 Kbps
Channel count                            : 2 channels
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Delay relative to video                  : -610ms
Stream size                              : 42.1 MiB (6%)
Language                                 : English

Text
ID                                       : 2310 (0x906)-801
Menu ID                                  : 1 (0x1)
Format                                   : Teletext Subtitle
Language                                 : English

Menu
ID                                       : 257 (0x101)
Menu ID                                  : 1 (0x1)
List                                     : 2307 (0x903) (MPEG Video) / 2308
(0x904) (MPEG Audio, English) / 2310 (0x906) () / 5000 (0x1388) () / 5501
(0x157D) () / 5500 (0x157C) ()
Language                                 :  / English
Maximum bit rate                         : 6537200




More information about the mythtv-users mailing list