[FFmpeg-user] Converting .mov files playable on html5 players..but very slow

Henk D. Schoneveld belcampo at zonnet.nl
Thu Jun 25 02:15:40 CEST 2015


On 25 Jun 2015, at 01:59, Dani A <danix4u-at-yahoo.com at ffmpeg.org> wrote:

> so the command to convert .mov tp mp4 with least CPU utilization is 
> 
> ffmpeg -i input.MOV  -c:v copy  -a:a copy -profile:v main  -crf 23 -movflags faststart output.MP4
> I cannot specify scale or or setdar, correct?
I said UNALTERED. 
So NO -profile
NO -crf 23
NO scale
Maybe setdar is accepted, but 1st try without.
And it’s -c:a copy
Not -a:a
> 
> 
> 
> 
>     On Wednesday, June 24, 2015 5:40 PM, Henk D. Schoneveld <belcampo at zonnet.nl> wrote:
> 
> 
> 
> On 24 Jun 2015, at 20:49, Dani A <danix4u-at-yahoo.com at ffmpeg.org> wrote:
> 
>> Than you Henk, the other suggestions  were great. so if when we copy mthe codec,what does FFMEPG do? just rename the file from .mov to mp4?
> More or less. A file you can play consist of a container, mp4 mov ts flv avi etc, think of it as a bottle
> This container contains a video and an audio stream, each of which are encoded with a codec.
> Video codecs are h264 h265 xvid mpeg2 
> Audio codecs as aac ac3 etc
> Further the container contains time codes and other things.
> mov and mp4 are containers which have a lot in  common but are not the same.
> So with c:v copy a:a copy from mov to mp4 you ‘tell’ ffmpeg to put the video and the audio stream, unaltered, from one bottle into another form of a bottle.
> Not every container can hold all kinds of codecs. You have to google to find your way, what can and can’t be done.
>> 
>> 
>> 
>> 
>>     On Wednesday, June 24, 2015 2:25 PM, Henk D. Schoneveld <belcampo at zonnet.nl> wrote:
>> 
>> 
>> 
>> On 21 Jun 2015, at 21:59, Dani A <danix4u-at-yahoo.com at ffmpeg.org> wrote:
>> 
>>> Is there any way faster I can convert iphone .mov to mp4. for example, copying the same codec instead of using the libx264 so it will be faster and will not consume so much resources?
>> You can use codec copy. But then it is impossible to scale.
>> It’s one or the other.
>> How much or little did my earlier suggestions help ? 
>>> 
>>> 
>>> 
>>>     On Tuesday, June 16, 2015 7:42 AM, Henk D. Schoneveld <belcampo at zonnet.nl> wrote:
>>> 
>>> 
>>> 
>>> On 16 Jun 2015, at 05:13, Dani A <danix4u-at-yahoo.com at ffmpeg.org> wrote:
>>> 
>>>> I am using the below command to covert the .mov files to play html5, but it takes so much time..Is there another way to convert those files so they can play on html5 players but fast to convert...
>>>> ffmpeg -i input.MOV -vf scale=720x406,setdar=16:9 -c:v libx264 -profile:v main -crf 20 -movflags faststart output.MOV
>>> You can make it faster by lowering the quality, by increasing the crf value. -crf 23 is the default value and is faster then -crf 20. It depends on the kind of stream and on your eyes how high is acceptable to you. Another option if player accepts this is anamorphic encoding, non-square pixels.
>>>> 
>>>> 
>>>> Is there a faster codec to use compared to the libx264?
>>> According to Eighth MPEG-4 AVC/H.264 Video Codecs Comparison … libx264 is the fastest.
>>>> 
>>>> 
>>>> _______________________________________________
>>>> ffmpeg-user mailing list
>>>> ffmpeg-user at ffmpeg.org
>>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>> 
>>> _______________________________________________
>>> ffmpeg-user mailing list
>>> ffmpeg-user at ffmpeg.org
>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>> 
>>> 
>>> _______________________________________________
>>> ffmpeg-user mailing list
>>> ffmpeg-user at ffmpeg.org
>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>> 
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>> 
>> 
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user



More information about the ffmpeg-user mailing list