Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Android ffmpeg Issue :- : No such file or directory
15 février 2014, par Nirav DangiI am using FFMPEG tool to merge IMAGE & AUDIO files. Its working only in SAMSUNG GALAXY TAB II. I had tried in many android devices & emulators but unfortunately it had not worked in any of them.
Same issue is posted here also. But Its solutions has not worked for me.
Following is error log of emulator,
02-15 08:46:33.667: D/NIRAV(921): Shell Line : /data/data/org.ffmpeg.android/lib/libffmpeg.so -y -loop 1 -r 1 -i /mnt/sdcard/ffmpeg/img.jpg -i /mnt/sdcard/ffmpeg/myrecord.mp4 -acodec aac -vcodec mpeg4 -s 480x320 -strict experimental -b:a 32k -shortest -f mp4 -r 2 /mnt/sdcard/ffmpeg/out.mp4 02-15 08:46:33.707: D/NIRAV(921): Shell Line : ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers 02-15 08:46:33.717: D/NIRAV(921): Shell Line : built on Nov 15 2013 00:50:10 with gcc 4.6 20120106 (prerelease) 02-15 08:46:33.717: D/NIRAV(921): Shell Line : configuration: --arch=arm --cpu=cortex-a8 --target-os=linux --enable-runtime-cpudetect --enable-small --prefix=/data/data/info.guardianproject.ffmpeg/app_opt --enable-pic --disable-shared --enable-static --cross-prefix=/home/n8fr8/dev/android/ndk//toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi- --sysroot=/home/n8fr8/dev/android/ndk//platforms/android-3/arch-arm --extra-cflags='-I../x264 -mfloat-abi=softfp -mfpu=neon' --extra-ldflags=-L../x264 --enable-version3 --enable-gpl --disable-doc --enable-yasm --enable-decoders --enable-encoders --enable-muxers --enable-demuxers --enable-parsers --enable-protocols --enable-filters --enable-avresample --enable-libfreetype --disable-indevs --enable-indev=lavfi --disable-outdevs --enable-hwaccels --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-network --enable-libx264 --enable-zlib --enable-muxer=md5 02-15 08:46:33.717: D/NIRAV(921): Shell Line : libavutil 51. 54.100 / 51. 54.100 02-15 08:46:33.717: D/NIRAV(921): Shell Line : libavcodec 54. 23.100 / 54. 23.100 02-15 08:46:33.717: D/NIRAV(921): Shell Line : libavformat 54. 6.100 / 54. 6.100 02-15 08:46:33.717: D/NIRAV(921): Shell Line : libavdevice 54. 0.100 / 54. 0.100 02-15 08:46:33.727: D/NIRAV(921): Shell Line : libavfilter 2. 77.100 / 2. 77.100 02-15 08:46:33.727: D/NIRAV(921): Shell Line : libswscale 2. 1.100 / 2. 1.100 02-15 08:46:33.727: D/NIRAV(921): Shell Line : libswresample 0. 15.100 / 0. 15.100 02-15 08:46:33.727: D/NIRAV(921): Shell Line : libpostproc 52. 0.100 / 52. 0.100 02-15 08:46:33.747: D/NIRAV(921): Shell Line : /mnt/sdcard/ffmpeg/img.jpg: No such file or directory 02-15 08:46:33.747: D/NIRAV(921): Exit Value : 1
I had verified the path of
img.jpg
&myrecord.mp4
files. I am usingandroid-ndk-r7
to build ffmpeg. -
The sound jerk when playing video
15 février 2014, par Sinh HoI am building an app using AndroidFFmpeg https://github.com/appunite/AndroidFFmpeg.
While playing the first video, the sound is well. But for the next video, the sound jerk.
Maybe the issue relate to memory issue, but I can't find anything.
Anyone know this issue, please help me. Any suggestion would be appreciated, thanks!
-
Fastest ffmpeg encode and codec, lowest quality [on hold]
15 février 2014, par David542I have a two-hour video file that I need to make the fastest encode for. Nothing matters here except the speed of the encode. The quality does not matter at all.
Given a machine with two cores, what would be the best ffmpeg command to accomplish this? Here's what I'm currently using:
./ffmpeg -i media/test.mov -vf 'movie=media/test.png' -acodec copy -vcodec mjpeg -qscale 30 -threads 2
-
Converting images to youtube supported video using ffmpeg
15 février 2014, par Kaushik DBI'm trying to generate a 1.5hr video for uploading to
Youtube
usingffmpeg
with a 1280x720 screenshot and a audio file. I've tried but it takes a long time forYoutube
to process the video. how can i minimize the processing time.ffmpeg -loop 1 -r 2 -i input.png -i audio.ogg -c:v libx264 -preset medium -tune stillimage -crf 18 -c:a copy -shortest -pix_fmt yuv420p output.mkv
-
How to get the duration of any video file (.avi .mp4 .flv .mkv etc) using python script (in ubuntu) ?
15 février 2014, par seaborgI am interested in finding the duration of a video file (of commonly used formats) using a python script in UBUNTU. I found the code:
def getLength(filename): result = subprocess.Popen(["ffprobe", filename], stdout = subprocess.PIPE, stderr = subprocess.STDOUT) return [x for x in result.stdout.readlines() if "Duration" in x]
but it does not work on my UBUNTU BOX may be because of absence of ffprobe or something and i get the following error:
File "leng.py", line 8, in getLength stdout = subprocess.PIPE, stderr = subprocess.STDOUT) File "/usr/lib/python2.7/subprocess.py", line 679, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory
I only want the duration so is there any easier method or how to make the above code work Is there any simple way?