Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Batch convert MP3 and static image to AVI with FFMPEG
8 décembre 2013, par user3027136I'm tired of searching for this problem. I have found 2 solutions here, but both work only partially. What I want to do is to convert all the MP3 inside a folder (if possible subfolders, too) to avi or anything else accepted by Youtube. I have created 2 .bat that should do this (according to the other threads here). They don't, one of them creates the avi without the image (black) and the other seems to capture the screen. Here they are. If you know about ffmpeg please point me to the right direction. Thank you.
This one uses mp3info.exe - to be honest I have no idea what mp3info does, I just guess it finds the lenght of the song to be mathed later with the length of the video.
@echo off for %%a in (*.mp3) do ( for /f "delims=" %%b in ('mp3info.exe -p %%S "%%a"') do ( ffmpeg -i "%%a" -loop 1 -r 1 -i "cover.jpg" -acodec copy "%%~na.mp4" -t %%b ) )
This seems more simple, runs faster but captures the screenshot and ignores the cover.jpg file.
@echo off for %%A IN (*.mp3) DO ffmpeg -i "%%A" -i "cover.jpg" "%%A.mpg" done
mp2info.exe, cover.jpeg and the .bat scripts are in the same folder with the .mp3 files.
-
Invalid data found when processing input (on MKV's)
7 décembre 2013, par MartzyWith .avi and .mp4 works ok, but with mkv does not.
ffmpeg.exe -i F:\video.mkv ffmpeg version N-50610-g586ae70 Copyright (c) 2000-2013 the FFmpeg developers built on Mar 9 2013 19:56:18 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg sm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libo pencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-li bschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-lib twolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enabl e-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 19.100 / 52. 19.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 F:\video.mkv: Invalid data found when processing input
I tried with different mkv files, with the same result.
-
ffmpeg php - how to apply filters without losing quality
7 décembre 2013, par JohnHere is a simple request, it has an input, output, and two watermarks. From what I gathered I can't apply "-codec copy" because I'm using a filter.
exec('ffmpeg -i input.mp4 -i wm-bl.png -i wm-br.png -filter_complex "overlay=x=0:y=H-h,overlay=x=W-w:y=H-h" output.mp4');
this does the trick, as far as watermarking is concerned, but the output is compressed into half the original file size.
Is it possible to watermark without losing video quality?
-
AMR-NB support in javacv -> ffmpeg
7 décembre 2013, par cyberpawnI am trying to use AMR_NB Codec in JavaCV Android but having problems:
This is the code i run:
avcodec.avcodec_register_all(); avformat.av_register_all(); AVCodec mCodec = avcodec.avcodec_find_encoder(avcodec.AV_CODEC_ID_AMR_NB);
Output: The mCodec is null but if I pass avcodec.AV_CODEC_ID_AAC than mCodec is not null
I am assuming that I have to recompile ffmpeg with --enable-libopencore-amrnb. So, I downloaded Android NDKr9+ffmpeg-2.0.2+last_stable_x264 and added them to javacv-cppjars folder, I have also installed opencore-amr library in /usr/local. In ffmpeg-2.0.2-android-arm.patch i added the --enable-libopencore-amrnb flag and run following command in terminal
ANDROID_NDK=/Users/android-ndk-r9b/ FFMPEG_VERSION=2.0.2 ./build_ffmpeg-android-arm.sh
The script runs but the libs are not generated and the jar is empty but if I remove the --enable-libopencore-amrnb flag back then the libs are generated successfully, Please advise what am I doing wrong? What should I do? Any help would be greatly appreciated!
by the way, I am using mac-osx
Thanks.
-
usding ffmpeg How set watermark to video , and how split one video to multiple video using ffmpeg [on hold]
7 décembre 2013, par user2452749Resp. sir
i have quest about
ffmpeg
1) usding ffmpeg How set watermark to video , 2) and how split one video to multiple video using ffmpeg