Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
ffmpeg erorr as "video4linux2 Dequeued v4l2 buffer contains corrupted data (0 bytes). " when captured image,in beaglebone black,
12 février 2020, par Deepak Poulwhen i'm capturing a image using ffmpeg 4.2.1 in debian 9.5 of Beaglebone black its not showing this error as [video4linux2,v4l2 @ 0x2e0f1e0] Dequeued v4l2 buffer contains corrupted data (0 bytes). i used this command to capture image "ffmpeg -y -i /dev/video0 -ss 00:00:06 -vframes 1 image.jpg"
-
is that possible to serv hls and dash mpeg both at a time
12 février 2020, par Rahul Mactually i'm a kind a newbie to the Nginx RTMP server. I had setup my nginx.conf file to accept both hls and dash-mpeg. but the now problem is at a once I can able to serve either of the hls or dash-mpeg. so now my question is that possible to serve both hls and dash-mpeg at the same time for two different videos? I'm streaming video from OBS Studio.
here are my MPEG and hls code in nginx.conf filertmp { server { listen 1935; # Listen on standard RTMP port chunk_size 4000; application show { live on; # Turn on HLS hls on; hls_path /nginx/hls/; hls_fragment 3; hls_playlist_length 60; deny play all; } application dash { live on; dash on; dash_path /nginx/dash; } }
}
thank you advance.
-
PHP-FFMPeg Converts Video Twice
12 février 2020, par 127-0-0-1I'm using FFMpeg's library for PHP (see https://github.com/PHP-FFMpeg/PHP-FFMpeg). After starting the convert process, the converted video's file size gradually increases (I constantly refresh the folder) and after converting finishes, the file size becomes 0 again and converting starts again. So converting is done twice, I could not understand if it is normal or there is something wrong.
My converting code is:
require 'vendor/autoload.php'; $ffmpeg = FFMpeg\FFMpeg::create([ 'ffmpeg.binaries' => 'C:/ffmpeg/ffmpeg.exe', 'ffprobe.binaries' => 'C:/ffmpeg/ffprobe.exe', 'timeout' => 0 ]); $video = $ffmpeg->open($fileName); $video ->filters() ->resize(new FFMpeg\Coordinate\Dimension(1920, 1080 )) ->synchronize(); $format = new FFMpeg\Format\Video\X264('libmp3lame'); try { $video->save($format, $outFileName); } catch (Exception $e) { echo $e->getMessage(); }
-
how do surface blur to a video using FFMPEG common line ?
12 février 2020, par zuiluolike above two image , it is one frame of the video ,
origin video:https://youtu.be/Qmoc7VyX2f8
surface blur video:https://youtu.be/zbw1XVXjn4c
Is there a way to use FFMPEG common line do that , thank you very much
-
Combine two ffmpeg commands (segment and still photo)
11 février 2020, par Brbcod1is it possible to combine this command
ffmpeg -i video.mp4 -map 0:s:0? -c copy -movflags empty_moov+default_base_moof+frag_keyframe -f segment output%03d.mp4
with a command that can take a still from the first segment
ffmpeg -ss 00:00:00.00 -i output001.mp4 -vframes 1 -q:v 2 still.jpg"