[mythtv-users] MythArchive DVD creation from DVB-T2 HD h264 recordings in the UK

John Pilkington J.Pilk at tesco.net
Thu Nov 28 21:33:49 UTC 2013


On 28/11/13 17:46, HP-mini wrote:
> On Wed, 2013-11-27 at 19:13 +0000, John Pilkington wrote:
>> Here's the re-encoding command generated during a recent attempt:
>>
>> mythffmpeg -threads 2 -v 1 -i "/mnt/sam1/recb/1303_20131020222000.mpg"
>> -r pal -target pal-dvd -b:v 4771k -s 720x576 -acodec ac3 -b:a 192k -ac 2
>> -copyts -aspect 16:9 "/home/John/arctmp/work/1/newfile2.mpg" -map 0:0
>> -map 0:1
>
>> John P
>> ____________________________
>
> Anything ffmpeg is a moving target but..
>
> You don't need to specify "-r pal" with "-target pal-dvd".
> Note that any "-r" before input filename could have bad consequences.
>
> "-acodec ac3"  --> "-c:a ac3"  or "-c:a:{stream} ac3"
> This notation (is meant to) allow specify the input stream by number or
> id..stream specifiers/index/type.
> This could eliminate the mess created by "-map".
>
> I think "-b:a:{ac3}" can only be 448k or 640k.
>

Thanks for that. Most of the info I've found is for dvd -> h264 rather 
than the reverse, so the command line that I was aiming to build was 
arrived at largely by tweaking earlier MythArchive scripts.

I've just created a DVD after removing the -r and -copyts lines from 
ffmpeg_dvd_pal.xml  I also changed ac3 to mp2 for compatibility with my 
usual builds from SD.  I haven't changed the audio mappings, which work 
for me.  The build was on my SL6 laptop with python 2.6.6, so 
toprettyxml() needs to be disabled; that should be automatic after 
v0.27-95-g860f760.  I haven't tried applying a cutlist.

I haven't yet looked at the code for predicting output file size, but I 
did find a post that suggested an upper limit could be specified.  I 
might try that, although M2VRequantiser should cope with a small overflow.



More information about the mythtv-users mailing list