Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

-movflags +faststart i figured it out please add to CB> ffmpeg.class.php it helps :) #376

Open
spirogg opened this issue May 19, 2017 · 6 comments

Comments

@spirogg
Copy link

spirogg commented May 19, 2017

@arslancb
@aliawancb
@Awais-cb

-movflags +faststart

where can we add this in ffmpeg.class.php for when converting videos ?

@spirogg
Copy link
Author

spirogg commented May 19, 2017

faststart for web video

You can add -movflags +faststart as an output option if your videos are going to be viewed in a browser. This will move some information to the beginning of your file and allow the video to begin playing before it is completely downloaded by the viewer. It is not required if you are going to use a video service such as YouTube.

EXAMPLE OF CONVERSION BELOW

645.9kbits/s dup=0 drop=6 speed=0.901x frame= 186 fps= 24 q=28.0 size= 541kB time=00:00:07.17 bitrate= 618.0kbits/s dup=0 drop=6 speed=0.912x [mp4 @ 0x23fd580] Starting second pass: moving the moov atom to the beginning of the file frame= 194 fps= 23 q=-1.0 Lsize= 564kB time=00:00:08.30 bitrate= 556.6kbits/s dup=0 drop=7 speed=0.964x video:561kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.533687%

**where can we add this to work with clipbucket please..

do we already have faststart ? mov atom to beginning of video ??**

please give me file and line where to insert: -movflags +faststart

thank you

@spirogg
Copy link
Author

spirogg commented May 22, 2017

@arslancb @Awais-cb @fahad-cb

can you add this to ffmpeg.class.php so we don't have to modify ??

ok I found the answer

You should alter the file format assignments wherever they occur:

# file format

if(isset($p['format']))
    $opt_av .= "` -movflags +faststart` -f {$p['format']} ";

this is in ffpmeg.class.php

it has 2 areas that you can change and add

-movflags +faststart

just find # file Format around line 1325 and 1592
and add $opt_av .= " **-movflags +faststart** -f {$p['format']} ";
thanks hope this is good for someone

Spiro

@spirogg spirogg changed the title -movflags +faststart how to get this in conversion or ?? -movflags +faststart i figured it out please add to CB> ffmpeg.class.php it helps :) May 22, 2017
@spirogg
Copy link
Author

spirogg commented May 22, 2017

EXAMPLE OF CONVERSION BELOW

645.9kbits/s dup=0 drop=6 speed=0.901x frame= 186 fps= 24 q=28.0 size= 541kB time=00:00:07.17 bitrate= 618.0kbits/s dup=0 drop=6 speed=0.912x [mp4 @ 0x23fd580] Starting second pass: moving the moov atom to the beginning of the file frame= 194 fps= 23 q=-1.0 Lsize= 564kB time=00:00:08.30 bitrate= 556.6kbits/s dup=0 drop=7 speed=0.964x video:561kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.533687%

@fahad-cb
Copy link
Collaborator

alright @spirogg thankyou for this input, cb team will look into this in upcoming versions

@dmaclip
Copy link

dmaclip commented Oct 27, 2017

I will say it has helped me, even though all uploaded mo4 files done with handbrake using the web option this stilt helps.
for the vids that mistakenly didn't get the web option to handbrake it helps a lot.

@spirogg
Copy link
Author

spirogg commented Jun 11, 2020

I will say it has helped me, even though all uploaded mo4 files done with handbrake using the web option this stilt helps.
for the vids that mistakenly didn't get the web option to handbrake it helps a lot.

hey there @dmaclip how are you I am hoping all is well with you and your Family its been a little while, I wish you are well my friend :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants