Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Get the error returned by FFMPEG
4 décembre 2014, par hiteshHow do I know there is error occured in ffmpeg command? and How do I get the error in my php?
below is my code
<?php $cmd = "$ffmpeg -i $vid -an -ss $getfromsecond -s $size -vframes 1 $imageFile"; if(!shell_exec($cmd)){ echo "Thumbnail created" . "
"; }else{ echo "Error Creating thumbnail". "
"; } ?>I am not sure if above approach is right.I have also tried below code
exec($cmd, $output, $return); echo '$output :' ; print_r($output); echo "
";echo '$return :' . $return . "
";exit;but in server it is just showing out put as
$output :Array ( ) $return127
I don't understand what is that error no, How to know if error has occurred and return the
ffmpeg
error no andffmpeg
error text , in php. -
while uploading video get screen shots with ffmpeg tool & php [on hold]
4 décembre 2014, par ilinkthreesixtyCan you tell me what is ffmpeg and for which purposes it is used in or with PHP ... ?
I wanna learn it to create thumbnails while uploading a video to rotate them when mouse is over the video when it is done, It's an effect which is used on dailymotion and even facebook is using it on it's Album when mouse is hover over a user Album it rotate the thumbnails so i want to learn how to get thumbnail screen shots on the flying while video is uploading ... Hope you have got me.
-
How to get each frame of the video and do some modifications to the frame in android
4 décembre 2014, par Naresh SharmaI need to get the frames a video and do some modification on it like drawing something on it or write some text. Then on saving I need that video with that modifications.
Please suggest me the best way to do that. Any help is appreciated.
Please see the below app for to understand my problem
https://play.google.com/store/apps/details?id=com.techsmith.apps.coachseye.free
-
How to Change priority process
4 décembre 2014, par user880386I have
List
commands = Arrays.asList(commandv); ProcessBuilder pb = new ProcessBuilder("[C:\ffmpeg\ffmpeg.exe, -i, "C:\file\video.mp4",-flags, +loop, -cmp, +chroma, -partitions, +parti4x4+partp8x8+partb8x8, -me_method, umh, -subq, 6, -me_range, 16, -g, 250, -keyint_min, 25, -sc_threshold, 40, -i_qfactor, 0.71, -b_strategy, 1, -threads, 4, -b:v, 200k, , -r, 25, -v, warning, -ac, 1, -ab, 96k, -y, -vf, "scale=640:360", "C:\newVideo\video.mp4"]"); Process proc = pb.start(); How I can set the process priority from "hight" to "low" in java?
-
ffplay with cookies
4 décembre 2014, par Steven PennyNormally with ffplay you can play a video like this
ffplay http://easy.com/foo.flv
However I have come across a video that requires a cookie. wget has no trouble with this
wget http://hard.com/foo.flv --load-cookies cookies.txt
Can ffplay play a video that requires a cookie?
Based on pogorskiy’s answer this works
ffplay -headers $'Cookie: sbsession=sbg&sbuser=lorem\r\n' http://hard.com/foo.flv