Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Retrieving User Uploaded Video Specifications
21 octobre 2012, par SBerg413The web app I'm working on allows a user to upload videos. The videos must meet specific criteria as outlined by our client (format, frame size, frame rate, etc) or they will be rejected. I found the ffmpeg-php library from some googling. However, I noticed that it doesn't appear to be actively maintained.
- What's the current standard library for accessing video data via PHP?
- If this data is retrieved from the video's metadata, can this information be trusted to be accurate?
-
Something missing during transcoding audio-only pieces from FLV format to AAC format ?
21 octobre 2012, par MaiTianoI have ten consecutive flv pieces cut from a song in flv format. Each flv piece has about 10 seconds long.
After I transcode these flv format audio piece into wav format by ffmpeg, I drag the new 10 wav file into foobar player and play them automatically(one-by-one played automatically). I found there is no "broken/pause" feeling in during switching from the end part of previous wav file to the start part of the next wav file.
However, after I transcode these flv format audio piece into AAC format by ffmpeg, and do the similar listening test in the foobar player, I can hear/feel obvious breakpoint when file changing.
Is it possible for ffmpeg to miss some audio signal during flv->aac transcoding? Because, the transcoded aac files are supposed to be played one-by-one contiguously just like there is one file playing, in other words, there should not be the breakpoint feeling happened between two consecutive file playing!
Any advices? Many thanks.
-
How to know if uploaded file is a video file [closed]
20 octobre 2012, par Gage ThomsonPossible Duplicate:
How do I validate that an uploaded file is a video?How to know using exec with ffmpeg and php if the uploaded file or any file on the hard disk is a video or not?
Turned out to use finfo for checking the mime, unsure if it is the best solution, but it appears everyone is happy by giving down votes instead of reasoning.
Well, some of my videos have a mime of application octet-stream which makes finfo not the solution, LIKE I ASKED. I suppose with ffmpeg there might be an
is_video()
function somehow just that I couldn't find it. -
Running ffmpeg command in android gives Protocol not found error for image path
20 octobre 2012, par Abdul MateenI am trying to use ffmpeg from android command line to convert images into video. I have stored my sequence of images on sdcard.When I run ffmpeg command to convert images into video, ffmpeg command give me error
Protocol not found
.My command is like this/data/data/package/files/ffmpeg -r 40 -qscale 2 -i /mnt/sdcard/images/img%d.jpg /mnt/sdcard/images/finalvideo.mp4
Error is like this
/mnt/sdcard/vid.mp4: Protocol not found
I found the same error message mentioned in
error.c
file.But I am not getting the type of error and condition when it throws the error. Also when I run ffmpeg command i.e.ffmpeg -protocols
from android and linux,the number of supported protocols are not same. I found file and many protocols missing in android.I need solution for this urgent...Please do help me
Thanking you!!!
-
Composite 2 video(.mov) files using ffmpeg
20 octobre 2012, par eco_bachNovice user of ffmpeg but going thru whatever docs I can find online.
For a current project I will need to composite 2 videos together to create a .flv file.
Does anyone know the commands to do this?