[mythtv-users] FFMpeg optimal settings for 1080i

John Finlay finlay at moeraki.com
Mon Jan 27 08:20:03 UTC 2014


On 1/26/2014 10:51 PM, faginbagin wrote:
> On 1/25/2014 6:14 PM, Joseph DeGraw wrote:
>> On 01/25/2014 05:34 PM, Joseph DeGraw wrote:
>>> I have been working on an issue with HDtv 1080i recordings being burned
>>> to DVD for playback. It seems with the default settings for mytharchive
>>> (mythtv .27-fixes, Mythbuntu 12.04) it takes a abnormal amount of time
>>> to burn a dvd. After alot of reading I came across a thread at the
>>> ffmpeg forums that was very helpful and also listed a command line for
>>> getting the job done alot faster. Infact, It took me about 20 -30
>>> minutes or less to get a 1920x1080 movie recording onto a dvd with good
>>> quality. Below is the command line that I used.
>>>
>>> ffmpeg -i "Fatal Honeymoon.mpg" -filter:v
>>> "scale='if(gt(a,720/480),720,-1)':'if(gt(a,720/480),-1,480)',pad=w=720:h=480:x=(ow-iw)/2:y=(oh-ih)/2"
>>> -target ntsc-dvd FatalHoneymoon.mpg
>>>
>>> Im far from an expert in converting video but what Iam now looking to do
>>> is incorporate this into mytharchive instead of what they have listed in
>>> their ffmpeg_dvd_ntsc.xml file. Has anyone done this before?
>>>
>>> Perhaps this will be more work than what I imagine I dont know. However,
>>> The basic idea is that my girlfriend would like to burn her recorded
>>> movies to dvd to take with her and play on a basic dvd player while she
>>> is away. The mytharchive was taking too long to do this but perhaps with
>>> a bit of a rewrite of some settings it can be alot quicker.
>>>
>>> Well,  Thats my project anyways. Comments are welcome :)
>>>
>>> jdegraw
>>> _______________________________________________
>>> mythtv-users mailing list
>>> mythtv-users at mythtv.org
>>> http://www.mythtv.org/mailman/listinfo/mythtv-users
>>>
>> I guess the question is, How do you modify the mytharchive settings to match the above ffmpeg command line?
>>
>> I found this at the mytharchive q/a :
>>
>>
>>        How do I add my own encoding parameters to the encoding profiles?
>>
>> Place copies of the profiles found in INSTALLDIR/share/mythtv/mytharchive/encoder_profiles/ into MythArchive's config directory (~/.mythtv/MythArchive). MythArchive will then use these profiles in preference to the shared ones. You can either edit the original profiles or add your own new ones. Just make sure you choose the correct profile in the UI when you want to re-encode a file using your custom profile settings.
>>
>> -------------------------------------------------------------------
>> Thats atleast a starting point. Other thought is perhaps it would be better to research how to transcode the video after recording to match the ffmpeg settings above if possible?
>>
>> jdegraw
> Another issue is what version of ffmpeg you have. In 0.27, mytharchive uses mythffmpeg which I believe is based on an older version of ffmpeg and the options you've listed look like ones supported by a newer version. If mythffmpeg doesn't support those options, you might be able to bypass it by adding a mythffmpeg shell script to your $HOME/bin that contains one line, namely:
>
> exec ffmpeg "$@"
>
>
Unfortunately on mythbuntu 12.04 that would likely get you avconv which 
is even more incompatible with the latest ffmpeg.

John


More information about the mythtv-users mailing list