Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Android video unplayable at iOS
21 février 2017, par Atif ImranI've found that videos with codec
H.264, MPEG-4 HE AAC V2
have no problem with my code here. But when I use a video of codecH.264, AAC
(Sent from Android device) the videos are again black. Now my question is how do I convert a video to iOS playable codec. -
How to mix 3 audio files or more by ffmpeg and set volume each file
20 février 2017, par Kwan NI use this code. But it's not success:
ffmpeg -f lavfi -i "amovie=1.mp3,volume=1" -f lavfi -i "amovie=2.mp3,volume=0.3" -f lavfi -i "amovie=3.mp3,volume=1" -filter_complex amerge -ac 2 -c:a libmp3lame -q:a 4 output.mp3
-
playing video in android using javacv ffmpeg
20 février 2017, par d91I'm trying to play a video stored in sd card using javacv. Following is my code
public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); playthevideo(); } protected void playthevideo() { String imageInSD = "/storage/080A-0063/dama/" + "test3.mp4"; FFmpegFrameGrabber grabber = new FFmpegFrameGrabber(imageInSD); AndroidFrameConverter converterToBitmap = new AndroidFrameConverter(); OpenCVFrameConverter.ToIplImage converterToipi = new OpenCVFrameConverter.ToIplImage(); try { Log.d("Tag", "try"); grabber.start(); Log.d("Tag", "started"); int i = 0; IplImage grabbedImage = null; ImageView mimg = (ImageView) findViewById(R.id.a); grabber.setFrameRate(grabber.getFrameRate()); ArrayList
bitmapArray = new ArrayList (); while (((grabbedImage = converterToipi.convert(grabber.grabImage())) != null)) { Log.d("Tag", String.valueOf(i)); int width = grabbedImage.width(); int height = grabbedImage.height(); if (grabbedImage == null) { Log.d("Tag", "error"); } IplImage container = IplImage.create(width, height, IPL_DEPTH_8U, 4); cvCvtColor(grabbedImage, container, CV_BGR2RGBA); Bitmap bitmapnew = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); bitmapnew.copyPixelsFromBuffer(container.getByteBuffer()); if (bitmapnew == null) { Log.d("Tag", "bit error"); } mimg.setImageBitmap(bitmapnew); mimg.requestFocus(); i++; } Log.d("Tag", "go"); } catch(Exception e) { } } } just ignore the tags because those are only for my testing purposes.. When I run this code the main activity layout is still loading while android monitor shows the value of "i" (which is current frame number) and suddenly after frame number 3671 code exits the while loop and the
imageview
shows a frame which is not the end frame of that video(it somewhere around staring of the video). I was unable to find a way to show the grabbed frames from ffmpegframegrabber so i decided to show the image in imageview in this way. Can anybody tell me why I'm getting this error or another error non path to play and show the video in android activity? BTW javacv 1.3.1 is imported correctly into my android dev environment. Thanks. -
How to download live streaming videos with HTTP .flv url
20 février 2017, par Sajjad DarvishiI just wanted to record a live stream by downloading this link but it did'nt work by curl , ffmpeg and wget please help me how can i record this?
-
ffmpeg error : at least one output file must be specified
20 février 2017, par Elsa AmriI'm trying to input this command to extract a video into frames:
ffmpeg -i mirai.mpg -r 30 -t 2 -ss 0:00 -f image2_4%dpng
But I keep getting this error: "At least one output file must be specified". I'm new to this, any help would be appreciated.
UPDATE
Solved, I removed the -f like you said. Thanks!