Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
"opaque" pointer in ffmpeg AVFrame
4 octobre 2016, par R2-D2In
ffmpeg
there is a structure AVFrame describing decoded video or audio data.It has a void pointer
opaque
. The documentation claims it is "for some private data of the user".What does this mean? Can it be used to transport any additional data as per-frame metadata?
-
Possible to dynamically switch input streams in ffserver ?
4 octobre 2016, par dr.doomI am interested in having multiple alternative input streams to an ffserver that each will get activated upon command on predefined time intervals.
Imagine a scenario where the client wants to stream feeds from a security camera for 10 seconds and then switch to another security camera.
Is this functionality possible with ffserver and ffmpeg?
-
Is there any license to pay to the companies owning the rights/patent of the source/target containers/codecs for audio/video ?
4 octobre 2016, par Metin SezerWe are using ffmpeg to convert video files from these type of containers .avi, .mp4, .mov, .mkv and these codecs MPEG-4 Part 2, H.264/MPEG-4 AVC, H.262/MPEG-2 Part 2, VP8, VC-1, VP9.
The target format is: container: 3gp; videocodec: H.264/MPEG-4 AVC; audiocodec: AMR-NB
Our customer will allow his customers to upload personal videos in a format and get the video files on the target format.
My question is: Is there any license to pay to the companies owning the rights/patent of the source/target containers/codecs for audio/video?
Thanks for your support
-
How to load/dump a raw video data into AvFrame structure pointer by using ffmpeg api function
4 octobre 2016, par HarikrishnaI want to write an application for encoding raw (yuv) video file data by using ffmpeg api functions instead of using a command.
So for this, I need to use avcodec_encode_video2 function to encode raw video data and before calling this function all required configurations and video data should be fill on the AVCodecContext and AvFrame structure pointers.
Can anyone guide me that how can I load this raw video data on AvFrame by using ffmpeg api function?
Thank you in advance.
-
libavcodec not showing opus
4 octobre 2016, par AbuI am new to libavcodec. I tried to add two streams (audio and video) to webm file. I have my audio is OPUS encoded and video is vp8. Video is working. In case of audio, I used
AVStream *audio_st; audio_st->codec->codec_id = AV_CODEC_ID_OPUS; audio_st->codec->sample_fmt = AV_SAMPLE_FMT_FLTP; audio_st->codec->bit_rate = 64000; audio_st->codec->sample_rate = 48000; audio_st->codec->channels = 2; audio_st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
When I run my program it shows.
Codec 0x1503d is not in the full list. Stream #0:0: Audio: unknown_codec, 48000 Hz, 2 channels, fltp, 64 kb/s
Unknown codec? I checked the codecs using following code
AVCodec *codec = av_codec_next(NULL); while(codec != NULL) { fprintf(stderr, "%s\n", codec->long_name); codec = av_codec_next(codec); }
In that list it does not show OPUS. Why its like this?. Please someone suggest a way forward.