Added these configuration changes in VLCOptions.java:
options.add("--audio-filter=normvol")
options.add("--norm-buff-size=20")
options.add("--norm-max-level=2")
But in the logs could find:
libvlc audio filter: using audio filter module "scaletempo"
We tried the same approach in vlc command line its selecting the "normvol" module.
Maybe this works
options.add("--audio-filter=volnorm")
Related
I need to replay guacamole replay file by html5.
But the only thing I can do now is to use guacenc to convert the playback file into a video and play it locally.
I tried to build a demo based on the secondary development of guacamole-example to realize the playback of the screen file.
Although I still don't know the principle of its implementation, it solves my problem very well.
I also tried the official demo, but there is a problem with maven dependencies.
While showing the rstp-stream, we are trying to transcode, and record it to file for later use.
VLC 2.1.1 seems to work when using
vlc rtsp-stream :sout=#transcode{vcodec=mp1v,vb=700,scale=1}:duplicate{dst=display,dst=std{access=file,mux=asf,dst="C:\file.mpg"}}"
This seems to be broken on VLC 2.2.4
Documentation on VLC's wiki seems outdated.
Discrepancies with the vcodec/mux pairing as well as using samplerate instead of vb seem to fix it.
vlc rtsp-stream :sout=#transcode{vcodec=mp4v,scale=0.5,samplerate=44100}:duplicate{dst=display,dst=std{access=file,mux=mp4,dst='C:\file.mpg'}}"
I'm developing some Video Editing Apps on Android.
the objective of the app is "Editing Videos on Android".
and...
I'm just completed making video file using some images.
but.. I can't attach audio into the video.
my method is same as follows.
1.VideoStream, audio stream creation using AVFormatContext
2.Movie encoding in video stream was successful
3.Encode codec open in audio stream was successful
4.Set sample format to AV_SAMPLE_FMT_FLTP
5.Sample rate and channel was set same as source audio
6.Choose appropriate Decoder and read packet
7.Convert packets using swr_converter, setting same as sample format
8.Encode converted data
9.memory deallocation
10.END!
Problem is here:
Video of finally created video file was normally played. but the Audio wasn't.
It heared like weird. It have many noises and plays slowly.
I've googled with many keywords but they only say about "FFmpeg command line usage".
I wanna make with FFMpeg API. not a Command line tool.
Please help.
Your question is vague without some kind of code to go along with it, as trust me there are a lot of things that can go wrong when using ffmpeg's libraries directly (and on Windows there is no debuging). Unfortunately ffmpeg's libraries are not well documented so it is generally best to read the source code for ffmpeg in order to use its libraries. Find the equivalent command line options to perform what you want and track that through ffmpeg's source to see the library calls.
I would like to use the sout option in libvlc like in the corresponding command line:
vlc rtsp://address --sout '#duplicate{dst=display,dst=standard{access=file,mux=ts,dst=/tmp/go.mpg}}'
but unfortunately, it's not taken into account. I was told that sout is not implemented (yet) in libvlc. Any idea how I could find a solution? I'm basically just trying to dump on file the rtsp stream that is played on screen. There is not really any transcoding here - just a dump. If it's not possible, is there a good place I could patch libvlc and simply dump the stream on file?
After enabling sout, the magic line in libvlc turned out to be:
libvlc_media_add_option(p_md, ":sout=#stream_out_duplicate{dst=display,dst=std{access=file,mux=ts,dst=/sdcard/go.mpg}}");
Currently I am working on the application for which I have to use audio buffering. Please tell me how I can achieve this task as I am trying myself.
read this Buffer and play streamed media
Also, there's a great example in the Blackberry SDK, which shows buffered playback of a MP3 file.
Take a look in the 'samples' folder of JDE/Eclipse Plugin.