Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Building static FFmpeg libs for Windows 64-bit application
6 avril 2016, par Igor R.I build static FFmpeg libs for Windows 64 bit. Configuring as follows:
./configure --disable-everything --enable-static --disable-shared --enable-memalign-hack --disable-debug --enable-stripping --enable-protocol=file --enable-yasm --enable-decoder=mp3,mpeg4,h264 --enable-muxer=mp4,avi --enable-encoder=mjpeg
.The application is built in Visual Studio 2012 with
/MT
option and linked withlibavformat.a
,libavcodec.a
etc. I also link it withlibmingwex.a
,libgcc.a
.The linker fails with the following errors:
6>libavformat.a(file.o) : error LNK2001: unresolved external symbol __imp__wrmdir 6>libavformat.a(file.o) : error LNK2001: unresolved external symbol __imp__rmdir 6>libavformat.a(file.o) : error LNK2001: unresolved external symbol __imp__wunlink 6>libavformat.a(file.o) : error LNK2001: unresolved external symbol __imp__unlink 6>libavutil.a(time.o) : error LNK2001: unresolved external symbol clock_gettime 6>libavutil.a(time.o) : error LNK2001: unresolved external symbol nanosleep
As for the 2 latter errors, I can solve them by manually defining macros in
config.h
:#define HAVE_NANOSLEEP 1
and#define HAVE_CLOCK_GETTIME 1
.The question is how to solve the former 4. These look like functions imported from a dll (
__imp
prefix), but my application is built with/MT
, and I don't want any dynamic dependencies in FFmpeg. How to get rid of them?I tried to configure FFmpeg with
--extra-cflags="-static"
, but it doesn't help. -
Fast Video Streaming and Upload Android
6 avril 2016, par vminindFast Streaming & Uploading Videos On Mobile Apps with AWS S3
Im developing a app witch has Android, iOS Clients were users can upload videos and photos and view as news feed. I store my video file on Amazone s3. Video length is limited to 30sec.
When user is uploading 30 sec video from their gallery there are some high quality videos witch is even exceed 100MB so those video files take ages to upload. So i tried to convert them before upload using ffmpeg-android library but it also take almost same amount of time to convert the file so it seems this solution also point less. (convert in the scene reducing the video resolution and frame rate)
Im using ExoPlayer to play videos
Note : Videos uploading from iOS are not that huge files.
I want videos to upload fast and stream fast. Its big help if anyone can share their thoughts on this.
-
FFmpeg Creating Video from images with different duration [duplicate]
6 avril 2016, par Ma YuboThis question already has an answer here:
I have created a txt file
file '01.jpg' duration 5 file '02.jpg' duration 10 file '04.jpg' duration 15
then output ffmpeg -f concat -i d.txt out.mp4 the last image duration does not match the 15s , it become 5s about, if i put 50s then become 30 about.
any ideas?
-
imagemagick gradient mask file creation
6 avril 2016, par lang2I'm playing with this creative script here: http://www.fmwconcepts.com/imagemagick/transitions/. The plan is to mimic what happens with the script with
ffmpeg
and generate video with transition effects between pictures. My current understanding is this:- I have two pictures A and B.
- I need in between a couple of pictures (say 15) that are partially A and partially B.
- To do that I use the
composite -compose src-over A.jpg B.jpg mask-n.jpg out.jpg
command. - During the process, the mask-n.jpg gets generated automatically that gradually change from all black to all white.
- Depends on the mathematically equations, the way the transition effect looks is different.
In one of the example, Fred the author gave this:
convert -size 128x128 gradient: maskfile.jpg
This will generate a image like this:
This is partially black and partially white. For the transition to work, I'll need an all white one and an all black one and a couple of others in between. What's the magical command to do that?
-
How to generate TS streams from middle of a source video ?
6 avril 2016, par Ankit DhannaI am using ffmpeg to create m3u8 playlist for a video (actually a live video stream). I am using the following command:
ffmpeg -i /home/ubuntu/Download/1459530099245.mkv -c:a aac -strict experimental -ac 2 -ar 48k -ab 64k -c:v libx264 -s 480x270 -aspect 16:9 -b:v 400k -r 15 -g 45 -profile:v baseline -level 3.0 -f hls -hls_time 9 -hls_list_size 0 /home/ubuntu/Download/New Playlist.m3u8
It produces m3u8 file as well as ts files.
Question: simply, how can we produce m3u8 playlist and TS files for a particular duration of source video? E.g., I want to get playlist only for first 20 seconds or so?