Transcoding jobs not working all of a sudden

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

bklein
Junior
Posts: 54
Joined: Sat Sep 19, 2020 6:09 am
Australia

Transcoding jobs not working all of a sudden

Post by bklein »

I have been transcoding recordings through the frontend for years (to edit out per the cutlist). From the recording I use M > Job options > Begin Transcoding > Default (which is High Quality). All of a sudden these transcode jobs are failing.

Mythbackend.log gives an error like -

Code: Select all

Nov 29 12:16:25 HTPC mythbackend: mythbackend[21645]: I Transcode_76853 jobqueue.cpp:2021 (DoTranscodeThread) JobQueue: Transcode Starting for "Mary and the Witch's Flower": High Quality (3.4 GB)
Nov 29 12:16:27 HTPC mythbackend: mythbackend[21645]: I Transcode_76853 jobqueue.cpp:2118 (DoTranscodeThread) JobQueue: Transcode Errored: "Mary and the Witch's Flower": High Quality (exit status 255, job status was "Errored")
I ran the transcode manually with -

Code: Select all

mythtranscode --chanid 80032  --starttime 20201128004600 --verbose file:debug --logpath /tmp 
This is the full logfile from the transcode. The errors are at the end. The main issue seems to be the line below. I have done some googling and found others with the same issue but none with any insights or solutions I could apply. Any help would be appreciated.

My MythTV and Ubuntu versions are -

Code: Select all

MythTV Version : v31.0+fixes.202010122044.eb3c84de5f~ubuntu18.04.1

Code: Select all

2020-11-29 11:56:14.241932 E [21000/21000] CoreContext transcode.cpp:115 (GetProfile) - Transcode: Couldn't find profile for : H.264

Code: Select all

$ cat /tmp/mythtranscode.20201129005613.21000.log
2020-11-29 11:56:13.458305 C [21000/21000] thread_unknown mythcommandlineparser.cpp:2611 (ConfigureLogging) - mythtranscode version: fixes/31 [v31.0+fixes.202010122044.eb3c84de5f~ubuntu18.04.1] www.mythtv.org
2020-11-29 11:56:13.458333 C [21000/21000] thread_unknown mythcommandlineparser.cpp:2613 (ConfigureLogging) - Qt version: compile: 5.9.5, runtime: 5.9.5
2020-11-29 11:56:13.458352 I [21000/21000] thread_unknown mythcommandlineparser.cpp:2615 (ConfigureLogging) - Ubuntu 18.04.5 LTS (x86_64)
2020-11-29 11:56:13.458354 N [21000/21000] thread_unknown mythcommandlineparser.cpp:2617 (ConfigureLogging) - Enabled verbose msgs:  general file
2020-11-29 11:56:13.458388 N [21000/21000] thread_unknown logging.cpp:725 (logStart) - Setting Log Level to LOG_INFO
2020-11-29 11:56:13.468639 I [21000/21003] Logger logging.cpp:280 (run) - Added logging to the console
2020-11-29 11:56:13.468824 D [21000/21002] LogForward loggingserver.cpp:818 (forwardMessage) - New Logging Client: ID:  (#1)
2020-11-29 11:56:13.468851 I [21000/21000] thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) - Setup Interrupt handler
2020-11-29 11:56:13.468856 I [21000/21000] thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) - Setup Terminated handler
2020-11-29 11:56:13.468860 I [21000/21000] thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) - Setup Segmentation fault handler
2020-11-29 11:56:13.468864 I [21000/21000] thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) - Setup Aborted handler
2020-11-29 11:56:13.468868 I [21000/21000] thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) - Setup Bus error handler
2020-11-29 11:56:13.468874 I [21000/21000] thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) - Setup Floating point exception handler
2020-11-29 11:56:13.468878 I [21000/21000] thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) - Setup Illegal instruction handler
2020-11-29 11:56:13.468882 I [21000/21002] LogForward loggingserver.cpp:129 (FileLogger) - Added logging to /tmp/mythtranscode.20201129005613.21000.log
2020-11-29 11:56:13.468883 I [21000/21000] thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) - Setup Real-time signal 0 handler
2020-11-29 11:56:13.468891 I [21000/21000] thread_unknown signalhandling.cpp:191 (SetHandlerPrivate) - Setup Hangup handler
2020-11-29 11:56:13.468953 N [21000/21000] thread_unknown mythdirs.cpp:203 (InitializeMythDirs) - Using runtime prefix = /usr
2020-11-29 11:56:13.468955 N [21000/21000] thread_unknown mythdirs.cpp:205 (InitializeMythDirs) - Using configuration directory = /home/ben/.mythtv
2020-11-29 11:56:13.468991 I [21000/21000] CoreContext mythcorecontext.cpp:285 (Init) - Assumed character encoding: en_AU.UTF-8
2020-11-29 11:56:13.469196 I [21000/21000] CoreContext mythcontext.cpp:629 (LoadDatabaseSettings) - Empty LocalHostName. This is typical.
2020-11-29 11:56:13.469200 I [21000/21000] CoreContext mythcontext.cpp:638 (LoadDatabaseSettings) - Using a profile name of: 'HTPC' (Usually the same as this host's name.)
2020-11-29 11:56:13.469239 I [21000/21000] CoreContext mythcontext.cpp:887 (TestDBconnection) - Start up testing connections. DB 192.168.1.150, BE , attempt 0, status dbAwake, Delay: 2000
2020-11-29 11:56:13.988046 N [21000/21000] CoreContext mythcorecontext.cpp:1810 (InitLocale) - Setting QT default locale to en_US
2020-11-29 11:56:13.988053 I [21000/21000] CoreContext mythcorecontext.cpp:1843 (SaveLocaleDefaults) - Current locale en_US
2020-11-29 11:56:13.988082 N [21000/21000] CoreContext mythlocale.cpp:122 (LoadDefaultsFromXML) - Reading locale defaults from /usr/share/mythtv//locales/en_us.xml
2020-11-29 11:56:14.001874 I [21000/21000] CoreContext platforms/mythpowerdbus.cpp:531 (AcquireLock) - PowerDBus: Failed to delay sleep,shutdown: Permission denied
2020-11-29 11:56:14.013706 I [21000/21000] CoreContext mythpower.cpp:374 (PowerLevelChanged) - Power: Unknown power source
2020-11-29 11:56:14.013713 I [21000/21000] CoreContext mythpower.cpp:131 (Init) - Power: Supported actions: None
2020-11-29 11:56:14.014168 I [21000/21000] CoreContext mythtranslation.cpp:64 (load) - Loading en_gb translation for module mythfrontend
2020-11-29 11:56:14.016903 D [21000/21000] CoreContext storagegroup.cpp:604 (FindFile) - SG(Default): FindFile: Searching for '80032_20201128004600.ts'
2020-11-29 11:56:14.016908 D [21000/21000] CoreContext storagegroup.cpp:635 (FindFileDir) - SG(Default): FindFileDir: Checking '/media/2TB-01/MythTV-PrimaryRecordings' for '/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts'
2020-11-29 11:56:14.016918 I [21000/21000] CoreContext storagegroup.cpp:613 (FindFile) - SG(Default): FindFile: Found '/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts'
2020-11-29 11:56:14.016923 I [21000/21000] CoreContext programinfo.cpp:2519 (GetPlaybackURL) - ProgramInfo(80032_20201128004600.ts): GetPlaybackURL: File is local: '/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts'
2020-11-29 11:56:14.016974 N [21000/21000] CoreContext main.cpp:564 (main) - Transcoding from /media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts to /media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts.tmp
2020-11-29 11:56:14.018122 D [21000/21000] CoreContext storagegroup.cpp:604 (FindFile) - SG(Default): FindFile: Searching for '80032_20201128004600.ts'
2020-11-29 11:56:14.018127 D [21000/21000] CoreContext storagegroup.cpp:635 (FindFileDir) - SG(Default): FindFileDir: Checking '/media/2TB-01/MythTV-PrimaryRecordings' for '/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts'
2020-11-29 11:56:14.018134 I [21000/21000] CoreContext storagegroup.cpp:613 (FindFile) - SG(Default): FindFile: Found '/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts'
2020-11-29 11:56:14.018139 I [21000/21000] CoreContext programinfo.cpp:2519 (GetPlaybackURL) - ProgramInfo(80032_20201128004600.ts): GetPlaybackURL: File is local: '/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts'
2020-11-29 11:56:14.026157 I [21000/21000] CoreContext fileringbuffer.cpp:329 (OpenFile) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): OpenFile() made 1 attempts in 7 ms
2020-11-29 11:56:14.026164 I [21000/21000] CoreContext ringbuffer.cpp:434 (CalcReadAheadThresh) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): CalcReadAheadThresh(8000 Kb)
                         -> threshold(3584 KB) min read(320 KB) blk size(128 KB)
2020-11-29 11:56:14.030862 I [21000/21000] CoreContext mythplayer.cpp:789 (OpenFile) - Player(0): Opening '/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts'
2020-11-29 11:56:14.030875 I [21000/21000] CoreContext ringbuffer.cpp:749 (Unpause) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): Unpause()
2020-11-29 11:56:14.030877 I [21000/21000] CoreContext ringbuffer.cpp:724 (StartReads) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): StartReads()
2020-11-29 11:56:14.030889 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..2048, peek) @0 -- begin
2020-11-29 11:56:14.030898 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(2048) -- begin
2020-11-29 11:56:14.030903 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(2048) -> 2048 end
2020-11-29 11:56:14.030909 I [21000/21000] CoreContext ringbuffer.cpp:515 (Seek) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): Seek(0,SEEK_SET,locked)
2020-11-29 11:56:14.030912 I [21000/21000] CoreContext ringbuffer.cpp:713 (StopReads) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): StopReads()
2020-11-29 11:56:14.030914 I [21000/21000] CoreContext ringbuffer.cpp:724 (StartReads) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): StartReads()
2020-11-29 11:56:14.030921 I [21000/21000] CoreContext fileringbuffer.cpp:788 (SeekInternal) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): Seek(): Offset from end: 3615277224
2020-11-29 11:56:14.030938 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..2048, peek): ReadDirect checksum 42170
2020-11-29 11:56:14.032435 I [21000/21000] CoreContext decoders/mythcodeccontext.cpp:146 (GetDecoders) - MythCodecContext: No window: Ignoring hardware decoders
2020-11-29 11:56:14.034337 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.034343 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.034351 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 32768 end
2020-11-29 11:56:14.034525 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 3648
2020-11-29 11:56:14.035943 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.035949 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.035959 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 32768 end
2020-11-29 11:56:14.036119 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 41689
2020-11-29 11:56:14.036153 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.036158 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.036166 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 32768 end
2020-11-29 11:56:14.036325 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 63871
2020-11-29 11:56:14.036427 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.036430 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.036439 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 32768 end
2020-11-29 11:56:14.036598 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 942
2020-11-29 11:56:14.036627 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.036630 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.036639 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 32768 end
2020-11-29 11:56:14.036796 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 8941
2020-11-29 11:56:14.036821 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.036825 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.036833 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 32768 end
2020-11-29 11:56:14.036991 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 17954
2020-11-29 11:56:14.037130 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.037134 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.037142 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 32768 end
2020-11-29 11:56:14.037299 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 12800
2020-11-29 11:56:14.087757 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.087773 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.087788 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 32768 end
2020-11-29 11:56:14.087948 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 49025
2020-11-29 11:56:14.107297 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.107313 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.107327 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 32768 end
2020-11-29 11:56:14.107494 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 48725
2020-11-29 11:56:14.113560 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.113573 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.113586 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 32768 end
2020-11-29 11:56:14.113746 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 11251
2020-11-29 11:56:14.142853 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.142868 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.142884 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 32768 end
2020-11-29 11:56:14.143045 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 62306
2020-11-29 11:56:14.170745 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.170761 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.170776 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 32768 end
2020-11-29 11:56:14.170937 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 59725
2020-11-29 11:56:14.170990 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.170995 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.171003 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 32768 end
2020-11-29 11:56:14.171163 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 52476
2020-11-29 11:56:14.188538 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.188552 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.188567 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 32768 end
2020-11-29 11:56:14.188727 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 43937
2020-11-29 11:56:14.198448 I [21000/21000] CoreContext ringbuffer.cpp:515 (Seek) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): Seek(3615027224,SEEK_SET,unlocked)
2020-11-29 11:56:14.198455 I [21000/21000] CoreContext ringbuffer.cpp:713 (StopReads) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): StopReads()
2020-11-29 11:56:14.198458 I [21000/21000] CoreContext ringbuffer.cpp:724 (StartReads) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): StartReads()
2020-11-29 11:56:14.198472 I [21000/21000] CoreContext fileringbuffer.cpp:788 (SeekInternal) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): Seek(): Offset from end: 250000
2020-11-29 11:56:14.198475 I [21000/21000] CoreContext fileringbuffer.cpp:795 (SeekInternal) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): Seek(): offset from end: 250000
                         -- ignoring read ahead thread until next seek.
2020-11-29 11:56:14.198515 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.198524 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.198537 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 32768 end
2020-11-29 11:56:14.198697 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 10487
2020-11-29 11:56:14.198733 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.198736 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.198745 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 32768 end
2020-11-29 11:56:14.198904 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 3686
2020-11-29 11:56:14.198931 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.198934 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.198942 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 32768 end
2020-11-29 11:56:14.199100 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 35055
2020-11-29 11:56:14.199118 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.199120 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.199128 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 32768 end
2020-11-29 11:56:14.199286 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 62496
2020-11-29 11:56:14.199303 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.199306 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.199314 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 32768 end
2020-11-29 11:56:14.199478 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 6282
2020-11-29 11:56:14.199495 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.199498 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.199505 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 32768 end
2020-11-29 11:56:14.199663 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 26478
2020-11-29 11:56:14.199678 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.199681 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.199689 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 32768 end
2020-11-29 11:56:14.199846 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 53678
2020-11-29 11:56:14.199865 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.199867 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.199874 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 20624 end
2020-11-29 11:56:14.200031 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 3246
2020-11-29 11:56:14.200042 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.200044 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.200047 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 0 end
2020-11-29 11:56:14.200205 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 3246
2020-11-29 11:56:14.200207 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.200210 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.200213 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 0 end
2020-11-29 11:56:14.200370 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 3246
2020-11-29 11:56:14.200374 D [21000/21000] CoreContext ringbuffer.cpp:1424 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal) @0 -- begin
2020-11-29 11:56:14.200377 D [21000/21000] CoreContext fileringbuffer.cpp:498 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -- begin
2020-11-29 11:56:14.200379 D [21000/21000] CoreContext fileringbuffer.cpp:501 (safe_read) - FileRingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): read(32768) -> 0 end
2020-11-29 11:56:14.200543 D [21000/21000] CoreContext ringbuffer.cpp:1451 (ReadPriv) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): ReadPriv(..32768, normal): ReadDirect checksum 3246
2020-11-29 11:56:14.200556 I [21000/21000] CoreContext ringbuffer.cpp:515 (Seek) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): Seek(0,SEEK_SET,unlocked)
2020-11-29 11:56:14.200558 I [21000/21000] CoreContext ringbuffer.cpp:713 (StopReads) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): StopReads()
2020-11-29 11:56:14.200560 I [21000/21000] CoreContext ringbuffer.cpp:724 (StartReads) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): StartReads()
2020-11-29 11:56:14.201662 I [21000/21000] CoreContext decoders/avformatdecoder.cpp:2037 (ScanStreams) - AFD: codec MP2 has 2 channels
2020-11-29 11:56:14.202324 I [21000/21000] CoreContext decoders/avformatdecoder.cpp:2539 (OpenAVCodec) - AFD: Opened codec 0x5598dda692c0, id(MP2) type(Audio)
2020-11-29 11:56:14.202691 I [21000/21000] CoreContext decoders/avformatdecoder.cpp:2449 (ScanStreams) - AFD: Using ffmpeg for video decoding
2020-11-29 11:56:14.202929 I [21000/21000] CoreContext decoders/avformatdecoder.cpp:2539 (OpenAVCodec) - AFD: Opened codec 0x5598dda059c0, id(H264) type(Video)
2020-11-29 11:56:14.202934 I [21000/21000] CoreContext ringbuffer.cpp:310 (UpdateRawBitrate) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): UpdateRawBitrate(3857Kb)
2020-11-29 11:56:14.202939 I [21000/21000] CoreContext ringbuffer.cpp:434 (CalcReadAheadThresh) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): CalcReadAheadThresh(3857 Kb)
                         -> threshold(3584 KB) min read(160 KB) blk size(64 KB)
2020-11-29 11:56:14.202950 I [21000/21000] CoreContext ringbuffer.cpp:434 (CalcReadAheadThresh) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): CalcReadAheadThresh(3857 Kb)
                         -> threshold(3584 KB) min read(160 KB) blk size(64 KB)
2020-11-29 11:56:14.202952 I [21000/21000] CoreContext ringbuffer.cpp:877 (CreateReadAheadBuffer) - RingBuf(/media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts): Created readAheadBuffer: 4Mb
2020-11-29 11:56:14.203031 N [21000/21000] CoreContext audioplayer.cpp:162 (ReinitAudio) - AudioPlayer: Enabling Audio
2020-11-29 11:56:14.224658 I [21000/21010] SendMessage mythcorecontext.cpp:471 (ConnectCommandSocket) - MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 192.168.1.150:6543 (try 1 of 1)
2020-11-29 11:56:14.225392 I [21000/21010] SendMessage mythcorecontext.cpp:1694 (CheckProtoVersion) - MythCoreContext::CheckProtoVersion(): Using protocol version 91 BuzzOff
2020-11-29 11:56:14.241637 N [21000/21000] CoreContext transcode.cpp:97 (GetProfile) - Transcode: Looking for autodetect profile: Autodetect from 1080i
2020-11-29 11:56:14.241932 E [21000/21000] CoreContext transcode.cpp:115 (GetProfile) - Transcode: Couldn't find profile for : H.264
2020-11-29 11:56:14.241934 E [21000/21000] CoreContext transcode.cpp:608 (TranscodeFile) - Transcoding aborted, no profile found.
2020-11-29 11:56:14.243440 E [21000/21000] CoreContext main.cpp:742 (main) - Transcoding /media/2TB-01/MythTV-PrimaryRecordings/80032_20201128004600.ts failed
2020-11-29 11:56:14.243452 I [21000/21000] CoreContext platforms/mythpowerdbus.cpp:72 (~MythPowerDBus) - PowerDBus: Closing interfaces
2020-11-29 11:56:14.243652 I [21000/21000] CoreContext mythcontext.cpp:1659 (~MythContext) - Waiting for threads to exit.
2020-11-29 11:56:15.643853 I [21000/21000] CoreContext mythcontext.cpp:1665 (~MythContext) - Exiting
Update - I record using an HDHomerun from a DVB-T signal. My transcoding profiles are all set to MPEG-4 video compression.
daraden
Senior
Posts: 175
Joined: Tue Feb 23, 2016 7:33 am
United States of America

Re: Transcoding jobs not working all of a sudden

Post by daraden »

from an earlier thread. viewtopic.php?f=36&t=4094
dnalorernst wrote:As of v31, MythTV does not support transcoding of h264.ts files (transport stream containing h.264 encoded video) via "mythtranscode".
The Menu "M --> Job Options --> Begin Transcoding" is intended to transcode mpeg2video streams, only.
bklein
Junior
Posts: 54
Joined: Sat Sep 19, 2020 6:09 am
Australia

Re: Transcoding jobs not working all of a sudden

Post by bklein »

OK. Thanks. I didn't come across this information trying to google the error messages I was getting.

I thought all DVB-T streams were MPEG-2 - however after investigating my recordings it looks like 1080i content is H264.

I used ffprobe to identify the codec -

Code: Select all

$ ffprobe -loglevel error -select_streams v -show_entries stream=codec_name -of default=nw=1:nk=1 /media/2TB-01/MythTV-PrimaryRecordings/80003_20201124125100.ts
The reason this seemed sudden for me is because nearly all of my recordings are SD - and I was trying to transcode 2 recordings the were coincidentally 1080i, after doing numerous transcodes since upgrading to v31 a couple of months ago.

A couple of questions -

Can one force a DVB-T stream to record as MPEG-2 rather than H264 ?
What is the reason for H264 no longer being supported ?
blm-ubunet
Senior
Posts: 265
Joined: Sun Jun 15, 2014 1:08 am
Cambodia

Re: Transcoding jobs not working all of a sudden

Post by blm-ubunet »

Mythtranscode never supported H264.
DVB uses mpeg (mpeg-ts part of mpeg2 spec) transport stream container.

The recording of the mpeg-ts does not involve any encoding, it is just a stream packet filter to file.

The UK has FTA/OTA SD on dvb-t & so called HD on dvb-t2.
Some places (NZ) never used mpeg2 video for broadcast dvb-t but started with H264 (MPEG4 part 10).
NZ only used mpeg2 video codec for dvb-s.

There are several cutting scripts, possible the best was lossless-cut (outputs mkv).
But lossless-cut :-
- was written when ffmpeg h264 encoding was a mess.
- was developed for HD-PVR cable recorder (uses IDR I frames)
- uses mkvtoolnix & output container mkv; not a very sensible or well designed container standard
- does not handle/understand A-V packet offset in broadcast streams.
- was written in python
I tried to fix (& failed) to work out a fix.

I modified & used a script based on file packet cutter (dd), fast as file copy but suffers with A-V packet offset.
Others have made ffmpeg transcoding scripts (slow).
bklein
Junior
Posts: 54
Joined: Sat Sep 19, 2020 6:09 am
Australia

Re: Transcoding jobs not working all of a sudden

Post by bklein »

blm-ubunet wrote:
Mon Nov 30, 2020 8:17 am
Mythtranscode never supported H264.
DVB uses mpeg (mpeg-ts part of mpeg2 spec) transport stream container.

The recording of the mpeg-ts does not involve any encoding, it is just a stream packet filter to file.
That's what I thought. I'm puzzled as to how my recordings of 1080i (as identified by MythTV) programs seem to be H264 encoded. What could explain that?
blm-ubunet
Senior
Posts: 265
Joined: Sun Jun 15, 2014 1:08 am
Cambodia

Re: Transcoding jobs not working all of a sudden

Post by blm-ubunet »

Most sensible broadcasters have long since moved to H264 so they can fit more shopping channels into same bandwidth/multiplex.
Maybe your broadcaster replaced some old gear.

I'm fairly sure mythtranscode can do something with H264 using --fifodir mode..
https://www.mythtv.org/wiki/Example_Scr ... fodir_mode
This has a raw video output mode that honours the cut-list. It plays & pipes the raw output to an external program like ffmpeg to re-encode & containerise. You have to set up the script & "receiver" program.

You need to install/compile ffmpeg with libx264 &/or use mythffmpeg if your mythtv packages are compiled with libx264 support.
bklein
Junior
Posts: 54
Joined: Sat Sep 19, 2020 6:09 am
Australia

Re: Transcoding jobs not working all of a sudden

Post by bklein »

Thanks. That all sounds a bit daunting. I may have to come back here for some help.

On another note some of my recordings are .ts files and others are .mpg files - with no obvious distinction between them. I'm wondering if this is normal and why it happens.
bklein
Junior
Posts: 54
Joined: Sat Sep 19, 2020 6:09 am
Australia

Re: Transcoding jobs not working all of a sudden

Post by bklein »

OK. So I had to install ruby. I then tried running the script. And got this error message -

Code: Select all

/Scripts/myth_h264_transcode:7:in `reopen': Permission denied @ rb_io_reopen - /var/log/mythtv/mythar2020-12-01-09:24:12.log (Errno::EACCES)
How to solve this ?
blm-ubunet
Senior
Posts: 265
Joined: Sun Jun 15, 2014 1:08 am
Cambodia

Re: Transcoding jobs not working all of a sudden

Post by blm-ubunet »

Have never used Ruby, looks much nicer than python with it's idiotic whitespace formatting.

MythTV now uses the appropriate file extension for transport stream (ts).
I believe it now only uses mpg for mpeg-ps program stream local encoded recording (capture from analogue video etc).

I would guess the script is meant to run as userjob & so likely expects / uses the backend user.

The error seems to be in not being able to write to /var/log/mythtv/ folder..
Could temporarily write logs to ~/ folder.
Or try running from terminal as backend user or console terminal login as backend.

It's a shame the userjob command line was not included as example. It will not work without cmd line parameters..
https://www.mythtv.org/wiki/User_Jobs
bklein
Junior
Posts: 54
Joined: Sat Sep 19, 2020 6:09 am
Australia

Re: Transcoding jobs not working all of a sudden

Post by bklein »

Thanks. I changed the path for the log file but now I get an error on line 52 -

Code: Select all

52: warning: assigned but unused variable - val
blm-ubunet
Senior
Posts: 265
Joined: Sun Jun 15, 2014 1:08 am
Cambodia

Re: Transcoding jobs not working all of a sudden

Post by blm-ubunet »

What cmd line options did you use?

The minimum is:
MyScriptName --chanid <channel id> --starttime <start time> -outfile <path>
where the <parameters> must be supplied.

For a userjob: <channel id> == %CHANID%
mythtv does the named parameter substitution
https://www.mythtv.org/wiki/User_Jobs

So a userjob cmd line inside mythtv looks like:
Fullpath/MyScriptName --chanid %CHANID% --starttime %STARTTIMEUTC% -outfile SomeOutPath

I think Fullpath is needed for user script, don't recall clearly...
bklein
Junior
Posts: 54
Joined: Sat Sep 19, 2020 6:09 am
Australia

Re: Transcoding jobs not working all of a sudden

Post by bklein »

Thanks. I have run it from the command line with the necessary parameters. That warning still comes up but the transcode seems to run. However, I am having issues with the transcode. It has run for a couple of hours on a 3.4G recording and has produced a file 4.2G in size, but seems to be hanging (cursor still blinking) with the file not increasing in size. I have tried opening the file in VLC and it can't be read. I don't see anything that seems informative in the job's log.

I just want to be able to have the cutlist edited out and to keep the recording in MythTV. I was hoping with a valid output file I could check whether the cutlist had been honoured. I'm guessing if I want to keep the recording in MythTV I will need to save it in the MythTV storage location with the same name as the original (and delete the original). (Which MythTranscode does).

I would also prefer the output file not to be so much larger than the original. I wonder if there are other jobs that could achieve this.

Update - I have set this up as a user job and run it. After more than 3 hours it's status is still queued. (Other advert flagging and metadata lookup jobs have run successfully since it was queued). How to troubleshoot this? No job log has been created.
blm-ubunet
Senior
Posts: 265
Joined: Sun Jun 15, 2014 1:08 am
Cambodia

Re: Transcoding jobs not working all of a sudden

Post by blm-ubunet »

What you want is what this script does.
https://gist.github.com/BipedalTV/3174241
This script is keyframe accurate & fast as copy.
It leaves the cut recording in place so you just use them in "recording".
It rebuilds the seektable a & sends frontend a popup message when finished.
The typical cmd option leaves a backup original with a new file extension.

The typical cmd line option is:
mythcutkey -c %CHANID% -s %STARTTIMEUTC% -Z

But there very important things to consider & understand before proceeding..
AFAIK All broadcast OTA TV streams have packet offsets between Audio & Video packets of the same timestamp.
I believe this is to allow video post processing with minimised audio buffering.

At the beginning of any mgeg-TS recording there are Audio packets that never have any matching video packets ; you can see (hear) this in VLC/mpv.
MythTV uses Video as time. The MythTV cutlist is video time & video packet frame offsets.
Losslesscut uses mkvtoolnix & it determines time zero as the earliest packet time in stream (audio). This then causes "cut" real world broadcasts to have keyframe offsets.

Mythcutkey will cause audio glitches & cut-outs w.r.t. video playback. Unmodified MythTV code was also very bad at AVSync fast recovery at packet timestamp offsets/changes.
This glitch/missing audio only happens as the start of a "keep" section.

So what this mythcutkey script needs is for recordings to be pre-processed with an automatic userjob that re-muxes the recording to ZERO packet offset before you create the cutlist etc.
Re-muxing is fast as copy but I don't have a cmd line setup to do this AV packet fix.

If I do any editing/cutting, after checking I search for the scripted backup recordings & delete them. You could write a script to do this.
These days I just use a 8TB archive HDD & almost never cut / edit anything.
Last edited by blm-ubunet on Thu Dec 03, 2020 5:58 pm, edited 1 time in total.
bklein
Junior
Posts: 54
Joined: Sat Sep 19, 2020 6:09 am
Australia

Re: Transcoding jobs not working all of a sudden

Post by bklein »

Gee wiz. This is getting complicated. I know this is all done by developers with great skills on a voluntary basis, but it is disappointing that there is no solution as elegant as mythtranscode for H264 recordings. Why is this? What is the difficulty presented by H264? Why is there seemingly not much demand for mythtranscode-like functionality for H264 recordings?

I do cutlist editing because I like to keep certain recordings permanently. (I move them from MythTV to Plex).

How would I go about finding (if it exists) the code to re-mux the recording to zero packet offset?

I don't quite understand what you are saying here (if you aren't doing cutlist editing) -
What I do is periodically search for the scripted backup recordings & delete them.
and here -
My modified frontend code seeks & settles instantly after seeking 4 minutes.
Thanks once again for your help on this.
blm-ubunet
Senior
Posts: 265
Joined: Sun Jun 15, 2014 1:08 am
Cambodia

Re: Transcoding jobs not working all of a sudden

Post by blm-ubunet »

All video codecs are complicated.
H264 is/was heavily impacted by patents. For sometime is was unclear if you were allowed to use it for any encoding without a MPEGLA licence.
And broadcasters use (optimised) B frames as keyframes not the more simple IDR I frame like programs streams (Bluray etc).

Even the audio codec/bitstream scheme typically used in DVB with H264 was a problem for years (LATM AAC).

The mythtv developers owe us nothing.
It is most likely not their fault the external ffmpeg setup you provide is not working. It least there is a fifo raw video mechanism.

I told you you had to ensure your ffmpeg was built with libx264.
Then you have to learn how to use it. Likely the script writer ignored stuff.

The curse of FOSS.. anything is possible but almost nothing works out of the box without some pain.
Very likely the ffmpeg cmd line options have changed; this happens weekly!.

A major complication is interlaced video. By default I think ffmpeg's libx264 config will output non-interlaced video. This means your mythtranscode output from fifo method could become double frame rate & unless you set the bitrate etc you may well get a larger file or terrible PQ.
Interlaced video is a very clever method/scheme to compress (minimise bandwidth) video without losing too much spatial & temporal data, it has worked extremely well over the years (esp. with old CRT TV etc) but still causes major headaches for video processing..
Some idiot UK broadcasters split progressive scan frame across 2 fields & flag as interlaced.

The real power of ffmpeg project is in the ffmpeg AV libraries collection, not the cmd line apps.

The only transcodes I've done that were a success were using Nvidia's NVDEC/NVENC. Up to 16x real-time & could do 2 transcodes in parallel & the fan barely starts to spin up.
But there was no easy way to input (any) a mythtv cut-list.

Handbrake is probably the best sorted FOSS application for video processing. There are some scripts that use this.
The mkvtoolnix suite is well sorted.

If you're using mythtv to view recordings & you have a large HDD there is almost no point to transcode &/or cut. So I typically don't.
Post Reply