Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Install ffmpeg on Wamp Server 2.2
10 septembre 2014, par PreeTI try all the links available on the Internet for the Proper Instructions for installing ffmpeg on the wamp server 2.2
OS is Window 7 64bit
Please help me for installing the ffmpeg on wampserver. Php version: 5.3.13 apache: 2.2.22
What i was trying.
- download http://quezar.ro/php_ffmpeg/php_ffmpeg.zip
- unzip
- move php_ffmpeg.dll to php extension dir
- move all other files to Windows\System32
- add extension=php_ffmpeg.dll to php.ini
- restart apache
-
Is it possible to count from a given number when extracting images from a video with FFmpeg ?
10 septembre 2014, par KonstantinI am using ffmpeg to extract still images from a video. First from the beginning of the video, to a given time and then from the end of the video from a given time. So I am using two ffmpeg command line to achieve my goal. My problem is when I save the images both sequence start from 1 or 00000001, and I want to start the second sequence at some different (but greater) number than the first sequence ends. My command are:
wine avs2yuv.exe input1.avs - | ffmpeg -y -f yuv4mpegpipe -i - -f image2 -vf fps=fps=0.1 -q:v 2 ./thumb001/%09d.jpg" wine avs2yuv.exe input2.avs - | ffmpeg -y -f yuv4mpegpipe -i - -f image2 -vf fps=fps=15 -q:v 2 ./thumb002/%09d.jpg"
I made my avisynth files to yield the appropriate parts of the video I need. For example when the first command extarct 1500 images, name of the last file is 000001500.jpg I want the second command to start the counting from 1501 or maybe more, to get file names from 000001501.jpg, 000001502.jpg, etc.
-
Upload part of a video files to server
10 septembre 2014, par Peter LurI want to make a webpage where you can upload a video to the server (let say using a File Input HTML TAG). I would like to know if it's possible in ANY languages to upload only small parts of the video files without uploading the whole file first and then splitting the file.
Let me give you an example of what I am trying to achieve. I am trying to create a service where one upload a long & big video file and I give them 10 samples segment of the video file as a result.
Let say I have a 1 hours long & /1 Gig size video (avi) file.
I would like to get a sample of 10 segments of 1 minutes spread across the entire file uploaded to the server.
I know that I could upload the whole file and then split it but uploading a 1G file would be way long for the user.
I want to know if upfront there is a way to choose what part of the file need to be uploaded so I could upload only specific segments and then re-construct the files to make them readable.
I know this is more of a subjective question and it may not be well fitted for Stack Overflow but I really need to figure out how to do that.
-
Add aditional headers to setDataSource IJKPlayer
10 septembre 2014, par MehdiI have implemented successfully the IJK Media Player (based on FFMpeg) : https://github.com/bbcallen/ijkplayer,
however it's driving me crazy ! I'm struggling wondering : Is there any possible way to pass the HTTP Headers of signature
akey
etc.. with thesetDataSource
method ??I'm not an expert in JNI or C but from what I have inspected : the headers are added nowhere..
Java :
@Override public void setDataSource(String path) throws IOException, IllegalArgumentException, SecurityException, IllegalStateException { mDataSource = path; _setDataSource (path, null, null); } private native void _setDataSource(String path, String[] keys, String[] values) throws IOException, IllegalArgumentException, SecurityException, IllegalStateException;
and I can see in a the ijkPlayer_jni.c file :
static void IjkMediaPlayer_setDataSourceAndHeaders (JNIEnv *env, jobject thiz, jstring path, jobjectArray keys, jobjectArray values) { MPTRACE("IjkMediaPlayer_setDataSourceAndHeaders"); int retval = 0; const char *c_path = NULL; IjkMediaPlayer *mp = jni_get_media_player(env, thiz); JNI_CHECK_GOTO(path, env, "java/lang/IllegalArgumentException", "mpjni: setDataSource: null path", LABEL_RETURN); JNI_CHECK_GOTO(mp, env, "java/lang/IllegalStateException", "mpjni: setDataSource: null mp", LABEL_RETURN); c_path = (*env)->GetStringUTFChars(env, path, NULL); JNI_CHECK_GOTO(c_path, env, "java/lang/OutOfMemoryError", "mpjni: setDataSource: path.string oom", LABEL_RETURN); ALOGV("setDataSource: path %s", c_path); retval = ijkmp_set_data_source(mp, c_path); (*env)->ReleaseStringUTFChars(env, path, c_path); IJK_CHECK_MPRET_GOTO(retval, env, LABEL_RETURN); LABEL_RETURN: ijkmp_dec_ref_p(&mp); }
Well I'm not that expert in C language, but I can't see where the
jobjectArray keys, jobjectArray values
are being used in this function.Is that mean that the args
jobjectArray keys, jobjectArray values
are not used ? Is someone have ever implemented this library ? Any help will be very appreciated. Thank you. -
ffmpeg overlay duration issue
9 septembre 2014, par umamiMikeI am making a setting (using anothergui) to burn in an overlay movie:
-i "
" -i "Pathto\overlay1080.mov" -filter_complex overlay=shortest=0 -y -vcodec prores -profile:v 3 -qscale:v 1 -acodec pcm_s16le -ar 48000 -ac 2 " \forCompFolder\ .mov" The compositing is fine, but the overlay video is 999 frames long and the first input video is shorter. When I render it opts for the length of the overlay video. What am I doing wrong?
Thanks in advance.