Page 1 of 1

passing commands to FFMpeg

Posted: Thu Aug 30, 2018 8:57 pm
by scotty69169
I got FFmpeg to see my camera correctly and write a file. But I had to use the following command line:

ffmpeg -loglevel debug -rtsp_transport tcp -i "rtsp://admin:123456@192.168.90.112:554/profile2/" -c:v copy -c:a aac -max_muxing_queue_size 99999 -map 0 foo.mp4

Is there a way to pass some of the commands to FFmpeg. Like "-c:a aac", Because my IP camera is using a none supported audio codex(pcm_alaw).

Thanks,

Scotty

Re: passing commands to FFMpeg

Posted: Fri Aug 31, 2018 5:51 am
by Sergey Tkachenko
RVMedia does not support reading sound using FFMpeg yet.
It only supports sound from microphones or other local devices.

Re: passing commands to FFMpeg

Posted: Mon Sep 03, 2018 11:44 am
by Kelch
scotty69169 wrote: Thu Aug 30, 2018 8:57 pm I got ExpressVPN recently and FFmpeg to see my camera correctly and write a file. But I had to use the following command line:

ffmpeg -loglevel debug -rtsp_transport tcp -i "rtsp://admin:123456@192.168.90.112:554/profile2/" -c:v copy -c:a aac -max_muxing_queue_size 99999 -map 0 foo.mp4

Is there a way to pass some of the commands to FFmpeg. Like "-c:a aac", Because my IP camera is using a none supported audio codex(pcm_alaw).

Thanks,

Scotty
Hi Sergey, 'yet' implies that you're planning to add this feature. Is that right? I think that would be awesome.

Re: passing commands to FFMpeg

Posted: Mon Sep 03, 2018 1:23 pm
by Sergey Tkachenko
Yes, reading sound using FFmpeg is planned in future.

But I do not know when it will be implemented, because our next goal (after releasing RVMedia 6) will be FireMonkey and other platforms.

Re: passing commands to FFMpeg

Posted: Wed Sep 26, 2018 1:07 pm
by benitomuso
Regarding the original subject of the post: "passing commands to FFMPeg"
In spite that the sound options wanted by Scotty are not supported, is there any way to pass extra parameters to RVMedia affecting the video, for example the ones to resize video or change aspect ratio of the sort:

-hide_banner -x 640 -y 480 -noborder -vf scale=640:480

Thank you.

Re: passing commands to FFMpeg

Posted: Wed Sep 26, 2018 1:30 pm
by Sergey Tkachenko
Some parameters can be passed to FFmpeg by assigning sub-properties of RVCamera.FFMpegProperty .