Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
PHP - Converting images to video using ffmpeg
13 novembre 2013, par VishnuI am good in php but very new to ffmpeg and exec stuffs.Now I have successfully installed ffmpeg via ssh.I referred some stackoverflow here and found below code to make video using several images.
<?php echo exec('ffmpeg -f image2 -i image%d.jpg video.mpg'); ?>
I have image1.jpg and image2.jpg in same folder.I run this php code but nothing happened...where does video.mpg gets saved ? and how to check if exec function ran successfully or how to debug it ?Any help is appreciated.
-
Android get video rotation from metatags
13 novembre 2013, par vicmnscurrently I am using the Android MediaMetadataRetriever class in order to get the video rotation tag from a MP4 file, using the MediaMetadataRetriever.METADATA_KEY_VIDEO_ROTATION tag. The main drawback of this, is that is only compatible with API level 17 and up, and the minimum supported API level desired for the application is 14.
Is there any work around for this, I tried using the ffmpeg library that used in the project, but I did not find an option to get this tag from the video.
Thanks in advance.
-
capture accurate frame from video through ffmpeg command
13 novembre 2013, par rohitI need to upload video and capture a random frame from that particular video.
I am unable to capture perfect frame i.e I am receiving a blurred image.
Here is my code:
`if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] ; } else { if (file_exists("upload/" . $_FILES["file"]["name"])) { echo $_FILES["file"]["name"] . " already exists. "; } else { move_uploaded_file($_FILES["file"]["tmp_name"],"upload/" . $_FILES["file"]["name"]); $vidName = "upload/" . $_FILES["file"]["name"]; shell_exec("ffmpeg -i ".$vidName." -ss 00:00:05:123 -f image2 -vframes 1 upload/screen1.png"); echo "Stored in: " . $vidName; } }
?> `
-
when all filter are applied with extreme value
13 novembre 2013, par user2361120when I applied three filter(such as bass treble,equalizer) of ffmpeg simultaneously with extreme value .i am unable to hear song from both speaker of headphone.
please suggest me any solution .I already wasted three week on it
-
Recording video by the hour to file (avconv/ffmpeg)
13 novembre 2013, par JohanSI'm currently recording video from my IP camera to disk by making use of avconv (ffmpeg).
avconv -i rtsp://192.168.1.1/stream -c copy pool.mp4
However, I'm in need of following and have not been able to successfully get it running from a bash script or cron.
- Create a new file per hour and name it accordingly
- I have to support multiple cameras
- I need to limit to a weeks worth of recordings whereafter the oldest gets deleted.
- I want to manage this via a bash script and/or cron job as far as possible.
Thanks John