Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Extracting parts of video and make a new video with them [on hold]
13 février 2014, par FilippoI need to extract parts of a video and make a video (in order to make a summary). My videos are mostly mpg, sometimes avi.
I'm using ffmpeg to do it :
Extraction : ffmpeg -ss XX -t XX -i video.mpg -vcodec copy -acodec copy partX.mpg
Concatenation : ffmpeg -i concat:part1.mpg|part2.mpg|... -vcodec copy -acodec copy summary.mpg
I have two problems :
- ffmpeg only let me set position by time reference and not by frame number. I will prefere to set it by frame number, but it's not a big deal
- the resulting video is...bad. The transitions between extracted parts are not smooth at all.
What is the best way to do that ? I guess I need some kind of non-linear editing library : gnonlin, gtreamer-editing-services (but no package for Fedora 16 ?), MLT...
But how I can do that easily ? (in preference in python)
I can't find any good example.
Thanks.
-
FFMPEG : Compilation error for custom code
13 février 2014, par samI have a video decoder integrated in FFMPEG. All the code that i have currently integrated is pure C-code. For performance purposes, i have to integrate the corresponding SSE code into the FFMPEG's libavcodec.
So i followed the same steps as i did while integrating the pure c code. While configuring i used the following command:
./configure --enable-sse --disable-yasm
I have disabled yasm as i dont have one installed, if needed i can install it, but for c code integration, i had not installed it.
After configuring, i give the command
make
, but i get all errors in my SSE code. So my first question is:-> Does giving --enable-sse ensures that the sse code will get compiled or i need to do something extra? (Note: my processor supports upto sse 4.2 and the code i want to integrate is also in SSE4.2)
Next, inorder to resolve this what i did was, i opened the
config.mak
file, and found all gcc commands and i appended them with a -msse4.2 option (this option i use to compile standalone SSE code that is, compiling code without integrating it with FFMPEG).After modifying the
config.mak
(which i think i shouldn't, because it is auto-generated on ./configure command), although i'm not getting any error in SSE code, but i get errors likeundefined variable ...
anderror:No previous prototype
for all the old C code which is already a part of the code( although in the source file i have included the required headers).So my second question is, I have manually modified config.mak file is it ok to do so? If so, then how do i resolve the above issue?
Any help regarding this issue will be really helpful to me. Moreover there is no info on net available on compiling the FFMPEG code with SSE (except for using --enable-sse option while configuring, which i think is not working for me).
Thanks in advance.
-
Burn filenames of single images into FFmpeg output video [on hold]
13 février 2014, par JpsyI am using FFmpeg to read in a series of single images and output them as a video.
The result is a timelapse of screenshots of a website in 1 minute intervals.Now I would like to burn the original capture time of each image into the resulting video using the drawtext command. The capture time is available in the filename of each image. But I am failing to find some option for drawtext to access the filenames of the input images.
An alternative would be to access the creation date of each image from within drawtext (I cannot find a way to do this either). But I would definitely prefer to access the filename, as this would give me more options to format the text.
Is there a way to do this?
It would be great if any proposed solution would work on Windows too. -
Need steps to build ffmpeg library in ubuntu
13 février 2014, par user1632209 -
iOS use FFMPEG to play sound files [on hold]
13 février 2014, par Hadi M.NourAllahI am already compiled ffmpeg well and use it to try IFrameExtractor and kxmovie but i need some of codes or source code that makes me play audio files
thank you for your help i found what i was need you can find it FFmpegAudioPlayer
and thank you again