• Welcome to PHPVIBE Forums. Please log in.
avatar_Marius P.

[ Video Sharing CMS v4 ] Altering the conversion for FFMPEG

Started by Marius P.,

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Marius P.Topic starter

The file to use is videocron.php



The PHPVibe command template for FFMPEG is

$output ="{ffmpeg-cmd} -i {input} -vcodec libx264 -s {ffmpeg-vsize} -threads 4 -movflags faststart {output}.mp4";


You can alter this command as you please:

Lossless H.264
Lossless Example (fastest encoding)
{ffmpeg-cmd} -i {input} -c:v libx264 -preset ultrafast -qp 0 {output}.mp4


Lossless Example (best compression)
{ffmpeg-cmd} -i {input} -c:v libx264 -preset veryslow -qp 0 {output}.mp4



Source: https://trac.ffmpeg.org/wiki/Encode/H.264

You can swap containers easily with FFmpeg – you just have to tell it to copy the video and audio bitstreams:
{ffmpeg-cmd} -i {input} -c:v copy -c:a copy {output}.mp4



Best choice is to experiment this with the PHPVibe tester.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

neospider69

i use this one...

{ffmpeg-cmd} -i {input} -vcodec libx264 -crf 25 -f mp4 -s hd480 -qcomp 0.8 -threads 0 -movflags faststart -ac 2 -y {output}.mp4
  •  

Marius P.Topic starter

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

neospider69

  •  

Marius P.Topic starter

Just asking. It's a good choice. I see mostly people go for 720p, but I see more advantages in 480p
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

neospider69

i do believe it's a good quality/filesize ratio....

:D
  •  

Marius P.Topic starter

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Similar topics (7)