Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Any Java library for live media streaming ? [on hold]
29 novembre 2016, par NiconoidI'm developing a personal project which consists basically in a Java server reading the System's Stereo Mix and streaming all the content through HTTP into a HTML5 player in a webapp.
I've been searching for days how to achieve this through a library as making it from ground up would be overly tedious and will take too much time. I've just found Red5, which isn't useful as I want to stream purely over HTTP, and ffserver (ffmpeg) that has been dropped months ago.
Which alternatives do I have related to Java-based libraries in terms of live streaming over HTTP?
-
ffmpeg : Generic stream (or file) re-streaming at lower bitrate
29 novembre 2016, par ChristianI often find streams on the internet that are high-bitrate only, or video streams that offer no audio-only stream.
Is there a generic way to tell
ffmpeg
orffserver
, in my case on a small server, to input a given stream, digest it (eg. x264ify it or even HEVCify it, and convert the audio to AAC+ HEC at a low bitrate) and output
a) a lightweight low-bitrate version or
b) an audio-only stream of the ingested stream
that can be viewed (in my case) by a mobile device that doesn't have the greatest connectivity?Thanks for any pointers in the right direction.
-
Exception in thread "main" java.lang.UnsatisfiedLinkError : no jniavutil in java.library.path
29 novembre 2016, par tpm900I am trying to split a video into frames using FFmpegFrameGrabber (using code I have seen in tutorials) but am getting an exception as follows:
The code:
public BufferedImage getNextFrame() { FFmpegFrameGrabber fFmpegFrameGrabber = new FFmpegFrameGrabber("resources/WebPage.mp4"); BufferedImage bufferedImage = null; opencv_core.IplImage i; try { fFmpegFrameGrabber.start(); i = fFmpegFrameGrabber.grab(); bufferedImage = i.getBufferedImage(); } catch (Exception e) { e.printStackTrace(); try { fFmpegFrameGrabber.stop(); } catch (Exception e1) { e1.printStackTrace(); } } return bufferedImage; }
The stack trace:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jniavutil in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867) at java.lang.Runtime.loadLibrary0(Runtime.java:870) at java.lang.System.loadLibrary(System.java:1122) at com.googlecode.javacpp.Loader.loadLibrary(Loader.java:593) at com.googlecode.javacpp.Loader.load(Loader.java:489) at com.googlecode.javacpp.Loader.load(Loader.java:431) at com.googlecode.javacv.cpp.avutil.
(avutil.java:76) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at com.googlecode.javacpp.Loader.load(Loader.java:453) at com.googlecode.javacv.cpp.avcodec. (avcodec.java:87) at com.googlecode.javacv.FFmpegFrameGrabber. (FFmpegFrameGrabber.java:73) at MP4VideoCodec.getNextFrame(MP4VideoCodec.java:16) at MP4VideoCodec. (MP4VideoCodec.java:12) at main.main(main.java:7) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147) Caused by: java.lang.UnsatisfiedLinkError: no avutil in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867) at java.lang.Runtime.loadLibrary0(Runtime.java:870) at java.lang.System.loadLibrary(System.java:1122) at com.googlecode.javacpp.Loader.loadLibrary(Loader.java:593) at com.googlecode.javacpp.Loader.load(Loader.java:481) ... 15 more How do I correct this exception?
-
live streamming using ffmpeg for more than stream on the same time
29 novembre 2016, par بسمة أملI'm using this command to stream video in ffmpeg but when I stream more than 3 or 4 streams at the same time interruption happen although the process in my device doesn't exceed 50% I tried to use ffmpeg lib for each stream but interruption still happened
this is my command :
ffmpeg -re -i test.mp4 -i logo.png -vcodec libx264 -pix_fmt yuv420p -vb 2000000 -g 60 -vprofile main -acodec aac -ab 128000 -ar 48000 -ac 2 -vbsf h264_mp4toannexb -strict experimental -filter_complex "[0][1]overlay=0:0" -pass 1 -f mpegts udp://127.0.0.1:1234?pkt_size=1316
-
How can I replace the audio of different time intervals of video multiple audio files using ffmpeg ?
29 novembre 2016, par Suresh Kumar SI want to replace the specific portion of the audio in the video with multiple audio files. I am facing issues with FFMPEG in android. Help me for this. Thanks in advance :)
Currently I use this command
ffmpeg -i video.mov -i audio1.mp3 -i audio2.mp3 -filter_complex \ "[1:a]atrim=end=10,asetpts=PTS-STARTPTS[a1]; \ [2:a]atrim=end=10,asetpts=PTS-STARTPTS[a2]; \ [a1][a2]concat=n=2:v=0:a=1[a] \" -map 0:v -map "[a]" -codec:v copy -codec:a libmp3lame -shortest output.mov