View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 2 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Jun 12, 2014 1:00 pm 
Offline
Joined: Sun Mar 30, 2014 7:28 am
Posts: 17
Location: Germany, Berlin
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


Top
 Profile  
 
PostPosted: Fri Jun 13, 2014 11:28 am 
Offline
Joined: Sun Mar 30, 2014 7:28 am
Posts: 17
Location: Germany, Berlin
Hi,

I found that mythtranscode not work stable with my HD recording with HD720p, sometime I get errors in mythtranscode.log
Code:
N CoreContext main.cpp:566 (main) Transcoding from /data/storage/SAMSUNGHD203WI_S2ACJ1BZ900531/media/tv/11375_20140612203000.mpg to /data/storage/SAMSUNGHD203WI_S2ACJ1BZ900531/media/tv/11375_20140612203000.mpg.tmp
I SendMessage mythcorecontext.cpp:1185 (CheckProtoVersion) Using protocol version 77
I CoreContext avformatdecoder.cpp:1898 (ScanStreams) AFD: codec MP2 has 2 channels
I CoreContext avformatdecoder.cpp:2378 (OpenAVCodec) AFD: Opened codec 0x21b7880, id(MP2) type(Audio)
I CoreContext avformatdecoder.cpp:1898 (ScanStreams) AFD: codec AC3 has 2 channels
I CoreContext avformatdecoder.cpp:2378 (OpenAVCodec) AFD: Opened codec 0x21b8d40, id(AC3) type(Audio)
I CoreContext avformatdecoder.cpp:2378 (OpenAVCodec) AFD: Opened codec 0x216e2a0, id(H264) type(Video)
N CoreContext audioplayer.cpp:164 (ReinitAudio) AudioPlayer: Enabling Audio
I CoreContext transcode.cpp:310 (TranscodeFile) Honoring the cutlist while transcoding
I CoreContext transcode.cpp:343 (TranscodeFile) Cutlist        : 0-494,3361-4650
I CoreContext transcode.cpp:345 (TranscodeFile) Original Length: 4650 frames
I CoreContext transcode.cpp:347 (TranscodeFile) New Length     : 2867 frames
I CoreContext transcode.cpp:1020 (TranscodeFile) Copying Audio while transcoding Video
I VideoDecodeBuffer mythplayer.cpp:4604 (TranscodeGetNextFrame) Player(0): Fast-Forwarding from 0 to 494
I VideoDecodeBuffer mythplayer.cpp:4604 (TranscodeGetNextFrame) Player(0): Fast-Forwarding from 494 to 494
I VideoDecodeBuffer mythplayer.cpp:4604 (TranscodeGetNextFrame) Player(0): Fast-Forwarding from 494 to 494

and get a lot of "Fast-Forwarding from 494 to 494 messages", the transcode failed

Then I check my recoding profiles in the DB and try different profiles, but this fix not my problem with the cutlist

Code:
mysql> select r.* from recordingprofiles r,profilegroups p where p.name='Transcoders' and p.id=r.profilegroup;
+----+----------------+------------+------------+--------------+
| id | name           | videocodec | audiocodec | profilegroup |
+----+----------------+------------+------------+--------------+
| 21 | RTjpeg/MPEG4   | NULL       | NULL       |            6 |
| 22 | MPEG2          | NULL       | NULL       |            6 |
| 27 | High Quality   | RTjpeg     | MP3        |            6 |
| 28 | Medium Quality | NULL       | NULL       |            6 |
| 29 | Low Quality    | NULL       | NULL       |            6 |
| 73 | DVB-SAT-MPG    | MPEG-4     | MP3        |            6 |
+----+----------------+------------+------------+--------------+

Code:
/usr/bin/mythtranscode -j 1465 --profile 27 --honorcutlist --verbose general --loglevel info --quiet --syslog local6
/usr/bin/mythtranscode -j 1466 --profile autodetect --honorcutlist --verbose general --loglevel info --quiet --syslog local6


On this web site "http://www.mythtv.org/wiki/Handbrake_userjob" the user say
Quote:
The script has gone under heavy changes which were done as a "fast" solution for some problems which came up with mythtranscode as cutting tool. So the script is now always choosing projectx for cutting SD material and avconv for HD material (which by the way now is supported by the script) Cutting HD recordings will not be precise if you have to cut a lot out of the middle of the recording. Chopping off content from the beginning and ending of a recording works pretty well.


Code:
Required software
    mythutil - ships with mythtv (gentoo package media-video/mythtv)
    HandBrakeCLI - (gentoo package media-video/handbrake)
    mkvmerge - (gentoo package media-video/mkvtoolnix)
    projectx_cli - (gentoo package media-video/projectx)
    mediainfo - (gentoo package media-video/mediainfo)
    avconv - (gentoo package media-video/avcodec)
    mplex - (gentoo package media-video/mjpegtools)
    Required perl packages
        DBI
        File
        Getopt


Question: Have anyone work with this script in LinHES 8.1 and have the required program install?


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu