mythtranscode not working v31 on RPi4

For discussion of topics specific to MythTV on Raspberry Pi devices
Post Reply
User avatar
jfabernathy
Senior
Posts: 577
Joined: Wed Feb 18, 2015 2:37 pm
Location: Raleigh, NC
United States of America

mythtranscode not working v31 on RPi4

Post by jfabernathy »

now that I have commercial flagging working and metadata lookup working, I used mythfrontend to check the commercial cuts and move a few around and tried to transcode. My understanding is that will just read the MPEG2 file and remove the commercials. Anyway it failed. My key observation was :
E CoreContext transcode.cpp:243 (TranscodeFile) Not compiled with libmp3lame support

Log below:

Code: Select all

Apr  3 13:09:52 raspberrypi mythtranscode: mythtranscode[2528]: C thread_unknown mythcommandlineparser.cpp:2605 (ConfigureLogging) mythtranscode version: fixes/31 [v31.0-12-g809ea6028d] www.mythtv.org
Apr  3 13:09:52 raspberrypi mythtranscode: mythtranscode[2528]: C thread_unknown mythcommandlineparser.cpp:2607 (ConfigureLogging) Qt version: compile: 5.11.3, runtime: 5.11.3
Apr  3 13:09:52 raspberrypi mythtranscode: mythtranscode[2528]: I thread_unknown mythcommandlineparser.cpp:2609 (ConfigureLogging) Raspbian GNU/Linux 10 (buster) (arm)
Apr  3 13:09:52 raspberrypi mythtranscode: mythtranscode[2528]: N thread_unknown mythcommandlineparser.cpp:2611 (ConfigureLogging) Enabled verbose msgs:  general
Apr  3 13:09:52 raspberrypi mythtranscode: mythtranscode[2528]: N thread_unknown logging.cpp:725 (logStart) Setting Log Level to LOG_INFO
Apr  3 13:09:52 raspberrypi mythtranscode: mythtranscode[2528]: I Logger logging.cpp:280 (run) Added logging to the console
Apr  3 13:09:52 raspberrypi mythtranscode: mythtranscode[2528]: I LogForward loggingserver.cpp:248 (SyslogLogger) Added syslogging
Apr  3 13:09:52 raspberrypi mythtranscode: mythtranscode[2528]: I thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) Setup Interrupt handler
Apr  3 13:09:52 raspberrypi mythtranscode: mythtranscode[2528]: I thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) Setup Terminated handler
Apr  3 13:09:52 raspberrypi mythtranscode: mythtranscode[2528]: I thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) Setup Segmentation fault handler
Apr  3 13:09:52 raspberrypi mythtranscode: mythtranscode[2528]: I thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) Setup Aborted handler
Apr  3 13:09:52 raspberrypi mythtranscode: mythtranscode[2528]: I thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) Setup Bus error handler
Apr  3 13:09:52 raspberrypi mythtranscode: mythtranscode[2528]: I thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) Setup Floating point exception handler
Apr  3 13:09:52 raspberrypi mythtranscode: mythtranscode[2528]: I thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) Setup Illegal instruction handler
Apr  3 13:09:52 raspberrypi mythtranscode: mythtranscode[2528]: I thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) Setup Real-time signal 0 handler
Apr  3 13:09:52 raspberrypi mythtranscode: mythtranscode[2528]: I thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) Setup Hangup handler
Apr  3 13:09:52 raspberrypi mythtranscode: mythtranscode[2528]: N thread_unknown mythdirs.cpp:203 (InitializeMythDirs) Using runtime prefix = /usr
Apr  3 13:09:52 raspberrypi mythtranscode: mythtranscode[2528]: N thread_unknown mythdirs.cpp:205 (InitializeMythDirs) Using configuration directory = /home/mythtv/.mythtv
Apr  3 13:09:52 raspberrypi mythtranscode: mythtranscode[2528]: I CoreContext mythcorecontext.cpp:285 (Init) Assumed character encoding: en_US.UTF-8
Apr  3 13:09:52 raspberrypi mythtranscode: mythtranscode[2528]: I CoreContext mythcontext.cpp:629 (LoadDatabaseSettings) Empty LocalHostName. This is typical.
Apr  3 13:09:52 raspberrypi mythtranscode: mythtranscode[2528]: I CoreContext mythcontext.cpp:638 (LoadDatabaseSettings) Using a profile name of: 'raspberrypi' (Usually the same as this host's name.)
Apr  3 13:09:52 raspberrypi mythtranscode: mythtranscode[2528]: I CoreContext mythcontext.cpp:887 (TestDBconnection) Start up testing connections. DB localhost, BE , attempt 0, status dbAwake, Delay: 2000
Apr  3 13:09:53 raspberrypi mythtranscode: mythtranscode[2528]: N CoreContext mythcorecontext.cpp:1810 (InitLocale) Setting QT default locale to en_US
Apr  3 13:09:53 raspberrypi mythtranscode: mythtranscode[2528]: I CoreContext mythcorecontext.cpp:1843 (SaveLocaleDefaults) Current locale en_US
Apr  3 13:09:53 raspberrypi mythtranscode: mythtranscode[2528]: N CoreContext mythlocale.cpp:122 (LoadDefaultsFromXML) Reading locale defaults from /usr/share/mythtv//locales/en_us.xml
Apr  3 13:09:53 raspberrypi mythtranscode: mythtranscode[2528]: E CoreContext platforms/mythpowerdbus.cpp:102 (Init) PowerDBus: No UPower interface. Unable to monitor battery state
Apr  3 13:09:53 raspberrypi mythtranscode: mythtranscode[2528]: I CoreContext platforms/mythpowerdbus.cpp:531 (AcquireLock) PowerDBus: Failed to delay sleep,shutdown: Permission denied
Apr  3 13:09:53 raspberrypi mythtranscode: mythtranscode[2528]: I CoreContext mythpower.cpp:348 (PowerLevelChanged) Power: On AC power
Apr  3 13:09:53 raspberrypi mythtranscode: mythtranscode[2528]: I CoreContext mythpower.cpp:131 (Init) Power: Supported actions: None
Apr  3 13:09:53 raspberrypi mythtranscode: mythtranscode[2528]: I CoreContext mythtranslation.cpp:64 (load) Loading en_us translation for module mythfrontend
Apr  3 13:09:53 raspberrypi mythtranscode: mythtranscode[2528]: N CoreContext main.cpp:564 (main) Transcoding from /srv/mythtv/recordings/11701_20200403152600.ts to /srv/mythtv/recordings/11701_20200403152600.ts.tmp
Apr  3 13:09:53 raspberrypi mythtranscode: mythtranscode[2528]: E CoreContext transcode.cpp:243 (TranscodeFile) Not compiled with libmp3lame support
Apr  3 13:09:53 raspberrypi mythtranscode: mythtranscode[2528]: E CoreContext main.cpp:742 (main) Transcoding /srv/mythtv/recordings/11701_20200403152600.ts failed
Apr  3 13:09:53 raspberrypi mythtranscode: mythtranscode[2528]: N CoreContext main.cpp:1115 (CompleteJob) Deleting /srv/mythtv/recordings/11701_20200403152600.ts.tmp
Apr  3 13:09:53 raspberrypi mythtranscode: mythtranscode[2528]: N CoreContext main.cpp:767 (transUnlink) Requesting delete for file 'myth://Default@raspberrypi/11701_20200403152600.ts.tmp'.
Apr  3 13:09:53 raspberrypi mythtranscode: mythtranscode[2528]: I CoreContext mythcorecontext.cpp:471 (ConnectCommandSocket) MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 192.168.0.37:6543 (try 1 of 1)
Apr  3 13:09:53 raspberrypi mythtranscode: mythtranscode[2528]: I CoreContext mythcorecontext.cpp:1694 (CheckProtoVersion) MythCoreContext::CheckProtoVersion(): Using protocol version 91 BuzzOff
Apr  3 13:09:53 raspberrypi mythtranscode: mythtranscode[2528]: N CoreContext main.cpp:773 (transUnlink) Deleting file '/srv/mythtv/recordings/11701_20200403152600.ts.tmp'.
Apr  3 13:09:53 raspberrypi mythtranscode: mythtranscode[2528]: I CoreContext platforms/mythpowerdbus.cpp:72 (~MythPowerDBus) PowerDBus: Closing interfaces
Apr  3 13:09:53 raspberrypi mythtranscode: mythtranscode[2528]: I CoreContext mythcontext.cpp:1665 (~MythContext) Exiting
MikeB2013
Senior
Posts: 519
Joined: Mon Jul 25, 2016 4:16 pm
Great Britain

Re: mythtranscode not working v31 on RPi4

Post by MikeB2013 »

Need to add --enable-libmp3lame to ./configure line if building from source. If using packaging/deb-light build system there is a bug see https://code.mythtv.org/trac/ticket/13590

Mike
MikeB2013
Senior
Posts: 519
Joined: Mon Jul 25, 2016 4:16 pm
Great Britain

Re: mythtranscode not working v31 on RPi4

Post by MikeB2013 »

For packaging/deb-light build system, adding to the command line should fix (not tested):

Code: Select all

../../packaging/deb-light/build_package.sh -c "--cpu=cortex-a7 --arch=armv7 --extra-cflags=-mfpu=neon --extra-cxxflags=-mfpu=neon --enable-libmp3lame"
User avatar
jfabernathy
Senior
Posts: 577
Joined: Wed Feb 18, 2015 2:37 pm
Location: Raleigh, NC
United States of America

Re: mythtranscode not working v31 on RPi4

Post by jfabernathy »

rebuilt with the new options you gave me. My $HOME/.buildrc is

Code: Select all

MYTHTV_CONFIG_OPT_EXTRA="--disable-vdpau --enable-opengl --disable-vaapi --cpu=cortex-a7 --arch=armv7 --extra-cflags=-mfpu=neon --extra-cxxflags=-mfpu=neon --enable-libmp3lame"
Transcode still failed. I also tried to run it from CLI and have a log from that:

Code: Select all

pi@raspberrypi:~ $ mythtranscode -i 11701_20200403152600.ts -m --honorcutlist -o /home/pi/Video/test.ts --loglevel debug
2020-04-03 15:14:23.295078 C  mythtranscode version: fixes/31 [v31.0-12-g809ea6028d] www.mythtv.org
2020-04-03 15:14:23.295221 C  Qt version: compile: 5.11.3, runtime: 5.11.3
2020-04-03 15:14:23.295339 I  Raspbian GNU/Linux 10 (buster) (arm)
2020-04-03 15:14:23.295353 N  Enabled verbose msgs:  general
2020-04-03 15:14:23.295393 N  Setting Log Level to LOG_DEBUG
2020-04-03 15:14:23.306108 I  Added logging to the console
2020-04-03 15:14:23.307291 I  Setup Interrupt handler
2020-04-03 15:14:23.307323 I  Setup Terminated handler
2020-04-03 15:14:23.307342 I  Setup Segmentation fault handler
2020-04-03 15:14:23.307358 I  Setup Aborted handler
2020-04-03 15:14:23.307379 I  Setup Bus error handler
2020-04-03 15:14:23.307395 I  Setup Floating point exception handler
2020-04-03 15:14:23.307416 I  Setup Illegal instruction handler
2020-04-03 15:14:23.307433 I  Setup Real-time signal 0 handler
2020-04-03 15:14:23.307461 I  Setup Hangup handler
2020-04-03 15:14:23.307865 N  Using runtime prefix = /usr
2020-04-03 15:14:23.307875 N  Using configuration directory = /home/pi/.mythtv
2020-04-03 15:14:23.307884 D  appbindir         = /usr/bin/
2020-04-03 15:14:23.307904 D  sharedir          = /usr/share/mythtv/
2020-04-03 15:14:23.307910 D  libdir            = /usr/lib/mythtv/
2020-04-03 15:14:23.307922 D  themedir          = /usr/share/mythtv/themes/
2020-04-03 15:14:23.307929 D  pluginsdir        = /usr/lib/mythtv/plugins/
2020-04-03 15:14:23.307941 D  translationsdir   = /usr/share/mythtv/i18n/
2020-04-03 15:14:23.307949 D  filtersdir        = /usr/lib/mythtv/filters/
2020-04-03 15:14:23.307961 D  cachedir          = /home/pi/.mythtv/cache
2020-04-03 15:14:23.307968 D  remotecachedir    = /home/pi/.mythtv/cache/remotecache
2020-04-03 15:14:23.307981 D  themebasecachedir = /home/pi/.mythtv/cache/themecache
2020-04-03 15:14:23.307989 D  thumbnaildir      = /home/pi/.mythtv/cache/thumbnails
2020-04-03 15:14:23.308087 I  Assumed character encoding: en_US.UTF-8
2020-04-03 15:14:23.309193 I  Empty LocalHostName. This is typical.
2020-04-03 15:14:23.309225 I  Using a profile name of: 'raspberrypi' (Usually the same as this host's name.)
2020-04-03 15:14:23.309412 I  Start up testing connections. DB localhost, BE , attempt 0, status dbAwake, Delay: 2000
2020-04-03 15:14:23.309437 D  PortChecker::checkPort(): host localhost port 3306 timeLimit 1000 linkLocalOnly 0
2020-04-03 15:14:23.811055 D  PortChecker::checkPort(): socket state 1
2020-04-03 15:14:24.312214 D  PortChecker::checkPort(): socket state 3
2020-04-03 15:14:24.348047 D  PortChecker::checkPort(): host localhost port 3306 timeLimit 30000 linkLocalOnly 1
2020-04-03 15:14:24.353032 D  FindDatabase() - Success!
2020-04-03 15:14:24.353187 D  PortChecker::checkPort(): host localhost port 3306 timeLimit 30000 linkLocalOnly 1
2020-04-03 15:14:24.357314 N  Setting QT default locale to en_US
2020-04-03 15:14:24.357357 I  Current locale en_US
2020-04-03 15:14:24.357482 N  Reading locale defaults from /usr/share/mythtv//locales/en_us.xml
2020-04-03 15:14:24.384840 E  PowerDBus: No UPower interface. Unable to monitor battery state
2020-04-03 15:14:24.391084 D  PowerDBus: Acquired delay FD: 12
2020-04-03 15:14:24.410239 D  PowerDBus: Max inhibit delay: 5seconds
2020-04-03 15:14:24.410975 I  Power: On AC power
2020-04-03 15:14:24.411024 I  Power: Supported actions: Restart,Shutdown
2020-04-03 15:14:24.412407 I  Loading en_us translation for module mythfrontend
2020-04-03 15:14:24.415488 D  Setting 'Lossless Transcoding' changed to 0
2020-04-03 15:14:24.415522 D  Setting 'Resize Video While Transcoding' changed to 0
2020-04-03 15:14:24.415568 N  Transcoding from 11701_20200403152600.ts to /home/pi/Video/test.ts
2020-04-03 15:14:24.415586 I  Honoring the cutlist while transcoding
2020-04-03 15:14:24.421693 I  Opening 11701_20200403152600.ts
2020-04-03 15:14:24.422403 E  Couldn't open input file, error #-2
2020-04-03 15:14:24.422819 E  Transcoding 11701_20200403152600.ts failed
2020-04-03 15:14:24.422886 D  PowerDBus: Releasing delay FD: 12
2020-04-03 15:14:24.422921 I  PowerDBus: Closing interfaces
2020-04-03 15:14:24.423454 I  Exiting
User avatar
jfabernathy
Senior
Posts: 577
Joined: Wed Feb 18, 2015 2:37 pm
Location: Raleigh, NC
United States of America

Re: mythtranscode not working v31 on RPi4

Post by jfabernathy »

OOps forgot the mythtranscode log from when it failed as a job:

Code: Select all

Apr  3 14:51:43 raspberrypi mythtranscode: mythtranscode[1027]: C thread_unknown mythcommandlineparser.cpp:2605 (ConfigureLogging) mythtranscode version: fixes/31 [v31.0-12-g809ea6028d] www.mythtv.org
Apr  3 14:51:43 raspberrypi mythtranscode: mythtranscode[1027]: C thread_unknown mythcommandlineparser.cpp:2607 (ConfigureLogging) Qt version: compile: 5.11.3, runtime: 5.11.3
Apr  3 14:51:43 raspberrypi mythtranscode: mythtranscode[1027]: I thread_unknown mythcommandlineparser.cpp:2609 (ConfigureLogging) Raspbian GNU/Linux 10 (buster) (arm)
Apr  3 14:51:43 raspberrypi mythtranscode: mythtranscode[1027]: N thread_unknown mythcommandlineparser.cpp:2611 (ConfigureLogging) Enabled verbose msgs:  general
Apr  3 14:51:43 raspberrypi mythtranscode: mythtranscode[1027]: N thread_unknown logging.cpp:725 (logStart) Setting Log Level to LOG_INFO
Apr  3 14:51:43 raspberrypi mythtranscode: mythtranscode[1027]: I thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) Setup Interrupt handler
Apr  3 14:51:43 raspberrypi mythtranscode: mythtranscode[1027]: I thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) Setup Terminated handler
Apr  3 14:51:43 raspberrypi mythtranscode: mythtranscode[1027]: I thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) Setup Segmentation fault handler
Apr  3 14:51:43 raspberrypi mythtranscode: mythtranscode[1027]: I thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) Setup Aborted handler
Apr  3 14:51:43 raspberrypi mythtranscode: mythtranscode[1027]: I thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) Setup Bus error handler
Apr  3 14:51:43 raspberrypi mythtranscode: mythtranscode[1027]: I thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) Setup Floating point exception handler
Apr  3 14:51:43 raspberrypi mythtranscode: mythtranscode[1027]: I thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) Setup Illegal instruction handler
Apr  3 14:51:43 raspberrypi mythtranscode: mythtranscode[1027]: I thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) Setup Real-time signal 0 handler
Apr  3 14:51:43 raspberrypi mythtranscode: mythtranscode[1027]: I thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) Setup Hangup handler
Apr  3 14:51:43 raspberrypi mythtranscode: mythtranscode[1027]: I Logger logging.cpp:280 (run) Added logging to the console
Apr  3 14:51:43 raspberrypi mythtranscode: mythtranscode[1027]: N thread_unknown mythdirs.cpp:203 (InitializeMythDirs) Using runtime prefix = /usr
Apr  3 14:51:43 raspberrypi mythtranscode: mythtranscode[1027]: N thread_unknown mythdirs.cpp:205 (InitializeMythDirs) Using configuration directory = /home/mythtv/.mythtv
Apr  3 14:51:43 raspberrypi mythtranscode: mythtranscode[1027]: I CoreContext mythcorecontext.cpp:285 (Init) Assumed character encoding: en_US.UTF-8
Apr  3 14:51:43 raspberrypi mythtranscode: mythtranscode[1027]: I LogForward loggingserver.cpp:248 (SyslogLogger) Added syslogging
Apr  3 14:51:43 raspberrypi mythtranscode: mythtranscode[1027]: I CoreContext mythcontext.cpp:629 (LoadDatabaseSettings) Empty LocalHostName. This is typical.
Apr  3 14:51:43 raspberrypi mythtranscode: mythtranscode[1027]: I CoreContext mythcontext.cpp:638 (LoadDatabaseSettings) Using a profile name of: 'raspberrypi' (Usually the same as this host's name.)
Apr  3 14:51:43 raspberrypi mythtranscode: mythtranscode[1027]: I CoreContext mythcontext.cpp:887 (TestDBconnection) Start up testing connections. DB localhost, BE , attempt 0, status dbAwake, Delay: 2000
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: N CoreContext mythcorecontext.cpp:1810 (InitLocale) Setting QT default locale to en_US
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: I CoreContext mythcorecontext.cpp:1843 (SaveLocaleDefaults) Current locale en_US
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: N CoreContext mythlocale.cpp:122 (LoadDefaultsFromXML) Reading locale defaults from /usr/share/mythtv//locales/en_us.xml
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: E CoreContext platforms/mythpowerdbus.cpp:102 (Init) PowerDBus: No UPower interface. Unable to monitor battery state
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: I CoreContext platforms/mythpowerdbus.cpp:531 (AcquireLock) PowerDBus: Failed to delay sleep,shutdown: Permission denied
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: I CoreContext mythpower.cpp:348 (PowerLevelChanged) Power: On AC power
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: I CoreContext mythpower.cpp:131 (Init) Power: Supported actions: None
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: I CoreContext mythtranslation.cpp:64 (load) Loading en_us translation for module mythfrontend
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: N CoreContext main.cpp:564 (main) Transcoding from /srv/mythtv/recordings/11701_20200403152600.ts to /srv/mythtv/recordings/11701_20200403152600.ts.tmp
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: I CoreContext mythplayer.cpp:789 (OpenFile) Player(0): Opening '/srv/mythtv/recordings/11701_20200403152600.ts'
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: I CoreContext decoders/mythcodeccontext.cpp:146 (GetDecoders) MythCodecContext: No window: Ignoring hardware decoders
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: I CoreContext decoders/avformatdecoder.cpp:2037 (ScanStreams) AFD: codec AC3 has 6 channels
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: I CoreContext decoders/avformatdecoder.cpp:2539 (OpenAVCodec) AFD: Opened codec 0x359ac0, id(AC3) type(Audio)
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: I CoreContext decoders/avformatdecoder.cpp:2037 (ScanStreams) AFD: codec AC3 has 2 channels
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: I CoreContext decoders/avformatdecoder.cpp:2539 (OpenAVCodec) AFD: Opened codec 0x44c3e0, id(AC3) type(Audio)
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: I CoreContext decoders/avformatdecoder.cpp:2449 (ScanStreams) AFD: Using ffmpeg for video decoding
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: I CoreContext decoders/avformatdecoder.cpp:2539 (OpenAVCodec) AFD: Opened codec 0x3d32c0, id(MPEG2VIDEO) type(Video)
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: N CoreContext audioplayer.cpp:162 (ReinitAudio) AudioPlayer: Enabling Audio
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: I CoreContext transcode.cpp:303 (TranscodeFile) Honoring the cutlist while transcoding
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: I CoreContext transcode.cpp:336 (TranscodeFile) Cutlist        : 7592-10126,28104-33510,37018-41875,49337-54340,57179-61316
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: I CoreContext transcode.cpp:338 (TranscodeFile) Original Length: 61316 frames
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: I CoreContext transcode.cpp:340 (TranscodeFile) New Length     : 39379 frames
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: N CoreContext transcode.cpp:97 (GetProfile) Transcode: Looking for autodetect profile: Autodetect from 1080i
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: N CoreContext transcode.cpp:122 (GetProfile) Transcode: Using autodetect profile: MPEG2
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: E CoreContext transcode.cpp:742 (TranscodeFile) No video information found!
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: E CoreContext transcode.cpp:744 (TranscodeFile) Please ensure that recording profiles for the transcoder are set
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: E CoreContext main.cpp:742 (main) Transcoding /srv/mythtv/recordings/11701_20200403152600.ts failed
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: N CoreContext main.cpp:1115 (CompleteJob) Deleting /srv/mythtv/recordings/11701_20200403152600.ts.tmp
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: N CoreContext main.cpp:767 (transUnlink) Requesting delete for file 'myth://Default@raspberrypi/11701_20200403152600.ts.tmp'.
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: I SendMessage mythcorecontext.cpp:471 (ConnectCommandSocket) MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 192.168.0.37:6543 (try 1 of 1)
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: I SendMessage mythcorecontext.cpp:1694 (CheckProtoVersion) MythCoreContext::CheckProtoVersion(): Using protocol version 91 BuzzOff
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: N CoreContext main.cpp:773 (transUnlink) Deleting file '/srv/mythtv/recordings/11701_20200403152600.ts.tmp'.
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: I CoreContext platforms/mythpowerdbus.cpp:72 (~MythPowerDBus) PowerDBus: Closing interfaces
Apr  3 14:51:44 raspberrypi mythtranscode: mythtranscode[1027]: I CoreContext mythcontext.cpp:1659 (~MythContext) Waiting for threads to exit.
Apr  3 14:51:45 raspberrypi mythtranscode: mythtranscode[1027]: I CoreContext mythcontext.cpp:1665 (~MythContext) Exiting
User avatar
pgbennett
Developer
Posts: 504
Joined: Mon Apr 27, 2015 5:41 pm
United States of America

Re: mythtranscode not working v31 on RPi4

Post by pgbennett »

MikeB2013 wrote:
Fri Apr 03, 2020 5:54 pm
Need to add --enable-libmp3lame to ./configure line if building from source. If using packaging/deb-light build system there is a bug see https://code.mythtv.org/trac/ticket/13590

Mike
This has been fixed. Let me know if it is still causing a problem.
User avatar
jfabernathy
Senior
Posts: 577
Joined: Wed Feb 18, 2015 2:37 pm
Location: Raleigh, NC
United States of America

Re: mythtranscode not working v31 on RPi4

Post by jfabernathy »

pgbennett wrote:
Fri Apr 03, 2020 8:02 pm
MikeB2013 wrote:
Fri Apr 03, 2020 5:54 pm
Need to add --enable-libmp3lame to ./configure line if building from source. If using packaging/deb-light build system there is a bug see https://code.mythtv.org/trac/ticket/13590

Mike
This has been fixed. Let me know if it is still causing a problem.
As I said it runs with the --enable-libmp3lame configured but transcode is not running correctly. Log attached above.

Jim A
MikeB2013
Senior
Posts: 519
Joined: Mon Jul 25, 2016 4:16 pm
Great Britain

Re: mythtranscode not working v31 on RPi4

Post by MikeB2013 »

pgbennett wrote:
Fri Apr 03, 2020 8:02 pm
MikeB2013 wrote:
Fri Apr 03, 2020 5:54 pm
Need to add --enable-libmp3lame to ./configure line if building from source. If using packaging/deb-light build system there is a bug see https://code.mythtv.org/trac/ticket/13590

Mike
This has been fixed. Let me know if it is still causing a problem.
Peter,

It does not seem to be working on current fixes/31
using default
cd mythtv/mythtv/
../../packaging/deb-light/build_package.sh

results in

+ ./configure --prefix=/usr --disable-vdpau --enable-opengl --disable-vaapi

no --enable-libmp3lame

Code extract packaging/deb-light/fixes/31 config.sh

Code: Select all

        config_opt="--enable-libmp3lame"
        config_opt="$config_opt $MYTHTV_CONFIG_OPT_EXTRA"     <- this is effectively being ignored.
        if [[ `arch` == arm* ]] ; then
            config_opt="$omx_option --disable-vdpau \                      <- I think $omx_option should be $config_opt, there are several places of this use.
              --enable-opengl  \
              --disable-vaapi $MYTHTV_CONFIG_OPT_EXTRA"
        fi

Also I think --cpu=cortex-a7 --arch=armv7 --extra-cflags=-mfpu=neon --extra-cxxflags=-mfpu=neon are also going to be needed, not sure auto detection of neon intrinsic's in ./configure is enough, especially considering which Pi (2, 3 or 4) is used to build (need to make sure compiler always uses same options).

I am currently using:
../../packaging/deb-light/build_package.sh -c "--cpu=cortex-a7 --arch=armv7 --extra-cflags=-mfpu=neon --extra-cxxflags=-mfpu=neon"
for both mythtv.mythtv/ and mythtv/mythplugins/

on a pi 2 build without the extra options (--cpu etc) running readelf -A mythfrontend gives (note arch v6 and no neon)

Code: Select all

pi@pi2-20200404:~/build/mythtv-light_31.0-13-g2cd6ccb419-0_armhf_buster/usr/bin $ readelf -A mythfrontend 
Attribute Section: aeabi
File Attributes
  Tag_CPU_name: "6"
  Tag_CPU_arch: v6
  Tag_ARM_ISA_use: Yes
  Tag_THUMB_ISA_use: Thumb-1
  Tag_FP_arch: VFPv2
  Tag_ABI_PCS_wchar_t: 4
  Tag_ABI_FP_rounding: Needed
  Tag_ABI_FP_denormal: Needed
  Tag_ABI_FP_exceptions: Needed
  Tag_ABI_FP_number_model: IEEE 754
  Tag_ABI_align_needed: 8-byte
  Tag_ABI_align_preserved: 8-byte, except leaf SP
  Tag_ABI_enum_size: int
  Tag_ABI_VFP_args: VFP registers
  Tag_CPU_unaligned_access: v6
same thing on a Pi4 built with the extra extra options (note arch v7 and neon):

Code: Select all

pi@pi4-20200326:~/build/mythtv-light_31.0-13-g2cd6ccb419-0_armhf_buster/usr/bin $ readelf -A mythfrontend
Attribute Section: aeabi
File Attributes
  Tag_CPU_name: "7VE"
  Tag_CPU_arch: v7
  Tag_CPU_arch_profile: Application
  Tag_ARM_ISA_use: Yes
  Tag_THUMB_ISA_use: Thumb-2
  Tag_FP_arch: VFPv3
  Tag_Advanced_SIMD_arch: NEONv1
  Tag_ABI_PCS_wchar_t: 4
  Tag_ABI_FP_rounding: Needed
  Tag_ABI_FP_denormal: Needed
  Tag_ABI_FP_exceptions: Needed
  Tag_ABI_FP_number_model: IEEE 754
  Tag_ABI_align_needed: 8-byte
  Tag_ABI_align_preserved: 8-byte, except leaf SP
  Tag_ABI_enum_size: int
  Tag_ABI_VFP_args: VFP registers
  Tag_CPU_unaligned_access: v6
  Tag_MPextension_use: Allowed
  Tag_DIV_use: Allowed in v7-A with integer division extension
  Tag_Virtualization_use: TrustZone and Virtualization Extensions
Mike
User avatar
jfabernathy
Senior
Posts: 577
Joined: Wed Feb 18, 2015 2:37 pm
Location: Raleigh, NC
United States of America

Re: mythtranscode not working v31 on RPi4

Post by jfabernathy »

I'm getting somewhere. I built v31 from source using the following options in .buildrc:

Code: Select all

--disable-vdpau --enable-opengl --disable-vaapi --cpu=cortex-a7 --arch=armv7 --extra-cflags=-mfpu=neon --extra-cxxflags=-mfpu=neon --enable-libmp3lame"
I took a recorded program, that had automatically detect commercials turned on, and edited it using a remote mythfrontend. I loading the detected commercials to the cutlist and saving the cutlist.
Then from the command line I ran:

Code: Select all

mythtranscode --infile 15001_20200404170000.ts --mpeg2 --honorcutlist -o /home/pi/Videos/penguins.ts
It produced a video in mpeg2 format, high quality and missing 20 minutes of commercials. So mythtranscode runs fine on RPi4 from the command line. I just can't get the same results from the Transcode jobs that are a part of the backend setup. But then again I can't make them work on my production v31 x86_64 system either.

Jim A
Post Reply