[mythtv-users] Cannot max out CPU usage on HLS transcode

John Pilkington J.Pilk at tesco.net
Tue Oct 16 14:44:37 UTC 2012


On 16/10/12 15:14, Jim Downie wrote:
>> Not really, but can I ask what speeds you are getting? I recently
>> converted a 1080i recording from dvb-t2 to dvd format within
>> mytharchive, which uses ffmpeg. The transcoding step on my laptop took
>> about 6* real time. You have 3* cores and around 2* speed; do you get
>> much faster than real time?
>
> What was your ffmpeg command line parameters and I will try it on one of my dvb-t2 recordings?
>

Here's a section of mythburn.log.  The actual command starts "mythffmpeg 
-threads 2" and ends "-map 0:2"

It's as generated.  If I expected to use it routinely I would probably 
change the audio recoding, but this worked.  I'm afraid the progress.log 
with the timings got deleted.

Input #0, mpegts, from '/home/john/Mythrecs/1054_20121010222600.mpg':
   Duration: 00:58:50.24, start: 11020.436822, bitrate: 6978 kb/s
     Stream #0.0[0x65]: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 
DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0.1[0x66](eng): Audio: aac_latm, 48000 Hz, stereo, s16
     Stream #0.2[0x6a](eng): Audio: aac_latm, 48000 Hz, 2 channels (FC), s16
     Stream #0.3[0x69](eng): Subtitle: dvbsub
     Stream #0.4[0x6e]: Data: [0][0][0][0] / 0x0000
     Stream #0.5[0x6f]: Data: [0][0][0][0] / 0x0000
     Stream #0.6[0x82]: Data: [0][0][0][0] / 0x0000
/mnt/MythOnRoot/Mytharch_work/work/1/streaminfo.xml:-
<?xml version="1.0" ?>
<!DOCTYPE FILEINFO>
<file cutduration="3530" duration="3530" 
filename="/home/john/Mythrecs/1054_20121010222600.mpg" type="mpegts">
         <streams count="7">
                 <video aspectratio="1.77778" bitrate="0" codec="h264 
(High)" ffmpegindex="0" fps="25" height="1080" id="101" 
start_time="991.915108" streamindex="0" width="1920"/>
                 <audio bitrate="0" channels="2" codec="aac_latm" 
ffmpegindex="1" id="102" language="eng" samplerate="48000" 
start_time="991.839314" streamindex="1"/>
                 <audio bitrate="0" channels="2" codec="aac_latm" 
ffmpegindex="2" id="106" language="eng" samplerate="48000" 
start_time="991.867194" streamindex="2"/>
                 <subtitle codec="dvbsub" ffmpegindex="3" id="105" 
language="eng" streamindex="3"/>
                 <data codec="Data: [0][0][0][0] / 0x0000" 
streamindex="4"/>
                 <data codec="Data: [0][0][0][0] / 0x0000" 
streamindex="5"/>
                 <data codec="Data: [0][0][0][0] / 0x0000" 
streamindex="6"/>
         </streams>
</file>
Preferred audio languages eng and und
Video id: 0x65, Audio1: [1] 0x66 (AAC_LATM, eng), Audio2: [2] - 0x6a 
(AAC_LATM, eng)
Aspect ratio is 16:9
Re-encoding audio and video
Using encoder profiles from 
/usr/share/mythtv/mytharchive/encoder_profiles/ffmpeg_dvd_pal.xml
Encoding profile (SP) found
mythffmpeg -threads 2 -v 1 -i 
"/home/john/Mythrecs/1054_20121010222600.mpg" -r pal -target dvd -b 
4771k -s 720x576 -acodec ac3 -ab 192k -ac 2 -copyts -aspect 16:9 
"/mnt/MythOnRoot/Mytharch_work/work/1/newfile2.mpg" -acodec ac3 -ab 192k 
-ac 2 -newaudio -map 0:0 -map 0:1 -map 0:2
FFmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
   built on Sep 30 2012 03:05:58 with gcc 4.4.6 20120305 (Red Hat 4.4.6-4)
   configuration: --compile-type=release --cpu=i686 --tune=i686 
--enable-mmx --prefix=/usr --libdir-name=lib --x11-path=/usr/include 
--enable-joystick-menu --enable-lirc --enable-ivtv --enable-firewire 
--enable-dvb --enable-audio-oss --enable-audio-alsa --enable-audio-jack 
--enable-x11 --enable-xrandr --enable-xv --enable-version3 
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfftw3 
--enable-opengl-video --enable-vdpau 
--extra-cflags=-I/usr/include/nvidia-graphics 
--extra-cxxflags=-I/usr/include/nvidia-graphics 
--extra-libs=-L/usr/lib/nvidia-graphics --enable-crystalhd 
--enable-vaapi --enable-ffmpeg-pthreads 
--perl-config-opts='INSTALLDIRS=vendor' --enable-libmp3lame 
--enable-libx264 --enable-libxvid --enable-libfaac --enable-libvpx 
--enable-nonfree
   libavutil    50. 39. 0 / 50. 39. 0
   libavcodec   52.113. 1 / 52.113. 1
   libavformat  52.101. 0 / 52.101. 0
   libavdevice  52.  2. 3 / 52.  2. 3
   libavfilter   1. 76. 0 /  1. 76. 0
   libswscale    0. 12. 0 /  0. 12. 0
   libpostproc  51.  2. 0 / 51.  2. 0
[dvbsub @ 0x8f74630] Invalid extradata, subtitle streams may be combined!
[NULL @ 0x8f74630] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x8f779c0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x8f7ad40] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x8f7e0c0] start time is not set in av_estimate_timings_from_pts
Input #0, mpegts, from '/home/john/Mythrecs/1054_20121010222600.mpg':
   Duration: 00:58:50.24, start: 11020.436822, bitrate: 6978 kb/s
     Stream #0.0[0x65]: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 
DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0.1[0x66](eng): Audio: aac_latm, 48000 Hz, stereo, s16
     Stream #0.2[0x6a](eng): Audio: aac_latm, 48000 Hz, 2 channels (FC), s16
     Stream #0.3[0x69](eng): Subtitle: dvbsub
     Stream #0.4[0x6e]: Data: [0][0][0][0] / 0x0000
     Stream #0.5[0x6f]: Data: [0][0][0][0] / 0x0000
     Stream #0.6[0x82]: Data: [0][0][0][0] / 0x0000
Assuming PAL for target.
Incompatible sample format 's16' for codec 'ac3', auto-selecting format 
'flt'
     Last message repeated 1 times
[buffer @ 0x8f74050] w:1920 h:1080 pixfmt:yuv420p
[scale @ 0x8f5e0d0] w:1920 h:1080 fmt:yuv420p -> w:720 h:576 fmt:yuv420p 
flags:0x4
[ac3 @ 0x8f5ee00] No channel layout specified. The encoder will guess 
the layout, but it might be incorrect.
[ac3 @ 0x8f738d0] No channel layout specified. The encoder will guess 
the layout, but it might be incorrect.
Output #0, dvd, to '/mnt/MythOnRoot/Mytharch_work/work/1/newfile2.mpg':
   Metadata:
     encoder         : Lavf52.101.0
     Stream #0.0: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR 
16:9], q=2-31, 4771 kb/s, 90k tbn, 25 tbc
     Stream #0.1(eng): Audio: ac3, 48000 Hz, stereo, flt, 192 kb/s
     Stream #0.2(eng): Audio: ac3, 48000 Hz, stereo, flt, 192 kb/s
Stream mapping:
   Stream #0.0 -> #0.0
   Stream #0.1 -> #0.1
   Stream #0.2 -> #0.2


More information about the mythtv-users mailing list