[Libav-user] UDP streaming from one PC to another

2016-09-20 Thread Timur Guseynov
Hi. I am wondering if I can stream with ffmpeg from one PC via UDP to another and the second one has ffmpeg using this stream as an input and save to file? Can I do it via CLI? Will I be able to do the same programatically using its API? Kind regards, Timur Guseynov

Re: [Libav-user] Querying v4l2 devices

2016-09-17 Thread Timur Guseynov
avdevice_list_input_sources works. Thank you! сб, 17 сент. 2016 г. в 1:33, Lukasz Marek : > On 17.09.2016 00:08, Lukasz Marek wrote: > > I guess input device private data is not initialized, try to add this > > code right after formatContext->iformat=inputFormat, just replace s with > > formatCo

[Libav-user] Querying v4l2 devices

2016-09-16 Thread Timur Guseynov
Hi. I wrote the code for getting a list of input devices: avdevice_register_all(); AVFormatContext *formatContext = avformat_alloc_context(); AVInputFormat *inputFormat = NULL; while((inputFormat = av_input_video_device_next(inputFormat))) { formatContext->iformat =

Re: [Libav-user] Decoding/encoding api

2016-09-16 Thread Timur Guseynov
Thanks! Will try it out. пт, 16 сент. 2016 г. в 13:56, Steve : > Timur Guseynov wrote > > So I can write something like this and it would be ok? > > > > AVCodecContext *codecContext; > > AVPacket *packet; > > AVFrame *frame; > > // a

Re: [Libav-user] Decoding/encoding api

2016-09-16 Thread Timur Guseynov
) { av_frame_unref(frame); } пт, 16 сент. 2016 г. в 2:26, Steve : > Timur Guseynov wrote > > I'm a bit confused with decoding/encoding api. I've read this > > <https://ffmpeg.org/doxygen/3.1/group__lavc__encdec.html>; > > documentation and > > it s

[Libav-user] Get input device formats

2016-09-15 Thread Timur Guseynov
I've been trying to find out the way to get capabilities of my webcam like resolution, pixel format, fps etc. I've tried using AVDeviceCapabilitiesQuery, but after creating it, it was shown as NULL pointer. I've seen command like this ffmpeg -f v4l2 -list_formats all -i /dev/video0 How can I impl

[Libav-user] Decoding/encoding api

2016-09-15 Thread Timur Guseynov
I'm a bit confused with decoding/encoding api. I've read this documentation and it says "Receive output in a loop. Periodically call one of the avcodec_receive_*()...". avcodec_receive_frame() docs say "the function will always call av_fram

[Libav-user] Streaming from camera to server

2016-09-10 Thread Timur Guseynov
o a preview of stream in a GUI using, for example, Qt Quick? Is an input device blocked by one of the processes (either FFmpeg or Qt)? If it is, should I somehow copy frames for GUI to show them for user or just reference it? Thanks in advance! Kind re