[mythtvnz] Transcoding HD videos
Brett
mythicalbeast at slingshot.co.nz
Mon Apr 23 11:30:45 BST 2012
> ffmpeg -i /data/mythtv/store/4003_20100206192900.mpg -threads 3 -map 0
> -c copy -c:v:0 libx264 -s 1280x720 -map -0:3 -b:v 3500k -pass 1 -f
> rawvideo -an -y /dev/null
> ffmpeg -i /data/mythtv/store/4003_20100206192900.mpg -threads 3 -map 0
> -c copy -c:v:0 libx264 -s 1280x720 -map -0:3 -b:v 3500k -pass 2 -f
> mpegts /data/mythtv/store/4003_20100206192900.mpg.new
>
> (after that I use mythcommflag --rebuild to rebuild the index so myth
> can play it)
>
> Unfortunately every now and then (roughly every 5-10 minutes) the
> scene change is not smooth, as if the key frame got missed. It's not
> terrible, but decreases the WAF a little bit every time it happens.
> Anyone doing this sort of transcoding? If so - what do you use?
>
> kind regards
> Pshem
>
That cmd makes progressive encoded .. if you can make it work..
With a recent ffmpeg build I had to change it to this:
ffmpeg -i /recordings/1003_20100215193000.mpg -c:v:0 libx264 -flags
+ilme+ildct -s 1280x720 -b:v 3500k -c:a libfaac -b:a 128K -map 0:0 -map
0:1 -bsf:v h264_mp4toannexb -f mpegts new.mpg
interlaced ts stream file with latm-aac--> libfaac acc
MythTV plays it okay
mediainfo seems okay
old VLC 1.0.6 will not play video..
More information about the mythtvnz
mailing list