Hi,
I would like to export some recording from HD Satellite Channel (HD720p) with a user job "myth2mkv", and found, that inside the script at line 347 to 350 the cut list is not working for mpg files (Coec H264-MPEG-4 AVC(part10) (h264) 1280x720, 50 Planar 4:2:0 YUV)
Code:
# If there is a cutlist, use it:
if [[ -n `mythutil --getcutlist --chanid "${2}" --starttime "${3}" | grep \
Cutlist: | awk -F": " '{ print $NF }'` ]] ; then
echo "Applying cutlist for ${TITLE} - ${SUBTITLE} ..." >> ${LOGFILE}
mythtranscode --chanid "${2}" --starttime "${3}" -m --honorcutlist \
-q --loglevel info --logpath "${LOGPATH}" -o "${TMPCUTFILE}"
mythtrans_pid=$!
ERROR=$?
HBINPUTFILE=${TMPCUTFILE}
fi
I check this part on the shell prompt
Code:
mythutil --getcutlist --chanid "11375" --starttime "2014-06-12 11:47:00"
and get the right cutlist
Quote:
Cutlist: 0-32,1296-2114
Now I try the command line for mythtranscode
Code:
mythtranscode --chanid "11375" --starttime "2014-06-12 11:47:00" -m --honorcutlist --loglevel debug --logpath "/home/mythtv" -o "/tmp/tagesschau-cut.mpg" --profile "High Quality"
and get the following error:
Code:
CoreContext main.cpp:566 (main) - Transcoding from /data/storage/SAMSUNGHD203WI_S2ACJ1BZ900531/media/tv/11375_20140612114700.mpg to /tmp/tagesschau-cut.mpg
CoreContext main.cpp:636 (main) - Honoring the cutlist while transcoding
CoreContext mpeg2fix.cpp:738 (InitAV) - Opening /data/storage/SAMSUNGHD203WI_S2ACJ1BZ900531/media/tv/11375_20140612114700.mpg
Input #0, mpegts, from '/data/storage/SAMSUNGHD203WI_S2ACJ1BZ900531/media/tv/11375_20140612114700.mpg':
CoreContext mpeg2fix.cpp:77 (my_av_print) - Duration: 00:00:42.77, start: 12643.500100, bitrate: 12358 kb/s
CoreContext mpeg2fix.cpp:77 (my_av_print) - Stream #0:0[0x1519]: Video: h264 (High), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
CoreContext mpeg2fix.cpp:77 (my_av_print) - Stream #0:1[0x151a](deu): Audio: mp2, 48000 Hz, stereo, s16p, 192 kb/s
CoreContext mpeg2fix.cpp:77 (my_av_print) - Stream #0:2[0x151c](deu): Subtitle: dvb_teletext
CoreContext mpeg2fix.cpp:77 (my_av_print) - Stream #0:3[0x151e](deu): Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s
CoreContext mpeg2fix.cpp:77 (my_av_print) - Stream #0:4[0x87b]: Data: dsmcc_b
(ProcessVideo) - Warning: partial frame found!
CoreContext mpeg2fix.cpp:77 (my_av_print) - PES packet size mismatch
CoreContext mpeg2fix.cpp:77 (my_av_print) - PES packet size mismatch
CoreContext mpeg2fix.cpp:885 (ProcessVideo) - Warning: partial frame found!
CoreContext mpeg2fix.cpp:1278 (GetFrame) - Found end of file without finding any frames
CoreContext main.cpp:711 (main) - Transcoding /data/storage/SAMSUNGHD203WI_S2ACJ1BZ900531/media/tv/11375_20140612114700.mpg failed
Then try first use the user job "mythtranscode" as a first job to get a nuv file (Codec Nuppel Video (RJPG) 1280x720 Planar 4:2:0 YUV)
and this work with cut list, the log file show
Code:
mythtranscode[25019]: N CoreContext main.cpp:566 (main) Transcoding from /data/storage/SAMSUNGHD203WI_S2ACJ1BZ900531/media/tv/11375_20140612114700.mpg to /data/storage/SAMSUNGHD203WI_S2ACJ1BZ900531/media/tv/11375_20140612114700.mpg.tmp
mythtranscode[25019]: I SendMessage mythcorecontext.cpp:418 (ConnectCommandSocket) MythCoreContext: Connecting to backend server: 192.168.1.75:6543 (try 1 of 1)
mythtranscode[25019]: I SendMessage mythcorecontext.cpp:1185 (CheckProtoVersion) Using protocol version 77
mythtranscode[25019]: I CoreContext avformatdecoder.cpp:1898 (ScanStreams) AFD: codec MP2 has 2 channels
mythtranscode[25019]: I CoreContext avformatdecoder.cpp:2378 (OpenAVCodec) AFD: Opened codec 0xa0c460, id(MP2) type(Audio)
mythtranscode[25019]: I CoreContext avformatdecoder.cpp:1898 (ScanStreams) AFD: codec AC3 has 2 channels
mythtranscode[25019]: I CoreContext avformatdecoder.cpp:2378 (OpenAVCodec) AFD: Opened codec 0xa0da20, id(AC3) type(Audio)
mythtranscode[25019]: I CoreContext avformatdecoder.cpp:2378 (OpenAVCodec) AFD: Opened codec 0x9c39c0, id(H264) type(Video)
mythtranscode[25019]: N CoreContext audioplayer.cpp:164 (ReinitAudio) AudioPlayer: Enabling Audio
mythtranscode[25019]: I CoreContext transcode.cpp:310 (TranscodeFile) Honoring the cutlist while transcoding
mythtranscode[25019]: I CoreContext transcode.cpp:343 (TranscodeFile) Cutlist : 0-32,1296-2054
mythtranscode[25019]: I CoreContext transcode.cpp:345 (TranscodeFile) Original Length: 2054 frames
mythtranscode[25019]: I CoreContext transcode.cpp:347 (TranscodeFile) New Length : 1264 frames
mythtranscode[25019]: E CoreContext recordingprofile.cpp:164 (addSelection) SampleRate: Attempted to add a rate 32000 Hz, which is not in the list of allowed rates.
mythtranscode[25019]: N CoreContext transcode.cpp:793 (TranscodeFile) Forcing Recorder option 'videocodec' to ''
mythtranscode[25019]: E CoreContext recorders/recorderbase.cpp:186 (SetOption) RecBase[NULL](): SetOption(): Unknown int option: videocodec: 0
mythtranscode[25019]: I CoreContext transcode.cpp:1020 (TranscodeFile) Copying Audio while transcoding Video
mythtranscode[25019]: I VideoDecodeBuffer mythplayer.cpp:4604 (TranscodeGetNextFrame) Player(0): Fast-Forwarding from 0 to 32
mythtranscode[25019]: I VideoDecodeBuffer mythplayer.cpp:4604 (TranscodeGetNextFrame) Player(0): Fast-Forwarding from 1296 to 2054
mythtranscode[25019]: N CoreContext main.cpp:687 (main) Transcoding /data/storage/SAMSUNGHD203WI_S2ACJ1BZ900531/media/tv/11375_20140612114700.mpg done
If than at the next step use the user job "myth2mkv" I get the right mkv-files (Coec H264-MPEG-4 AVC(part10)
(avc1) 1280x720,
25 Planar 4:2:0 YUV)
If I use handbrake an my Windows 7 Workstation I get this mkv-files (Coec H264-MPEG-4 AVC(part10)
(avc1) 1280x720,
48,84 Planar 4:2:0 YUV)
Question 1: Is there a way to combine this 2 user jobs (mythtranscode AND myth2mkv) in one user job, or can I fix the script "myth2mkv" to get the cut list working?
Question 2: Have anybody a working user job with handbrake and cut list and can share this information ?
Regards Lutz