Page 1 of 1

Live Streaming

Posted: Mon Mar 28, 2016 2:41 pm
by vijm1972
Hello Steipal,

I am trying live streaming using below FFMPEG command through command line, it's perfectly working. I am using YouTube to check my output.
How I can use below command in FFAStrans?

FFAStrans0.7.0_Win32\Processors\FFMpeg\ffmpeg.exe -re -i "D:\Movies\Test.mp4" -acodec libmp3lame -ar 44100 -b:a 128k -pix_fmt yuv420p -profile:v main -level 4.1 -s 1920x1080 -bufsize 3000k -vb 5000k -maxrate 6000k -deinterlace -vcodec libx264 -preset fast -g 75 -r 25 -refs 1 -bf 2 -f flv "rtmp://a.rtmp.youtube.com/live2/(Mykey)"

Please suggest.

Thanks
Vijay

Re: Live Streaming

Posted: Mon Mar 28, 2016 6:57 pm
by admin
Because of the way the "Custom FFMpeg"-encoder is built you cannot execute this encoder with the "-re" option before input "-i". So you need to do a "Command executor" for this one.
Changes to the "Custom FFMpeg"-encoder will soon come in order to solve these kind of scenarios.

-steipal

Re: Live Streaming

Posted: Fri Aug 26, 2022 10:37 am
by mrazik
Hi steipal,

si you already solve this problem with "Custom FFmpeg" processor (options before -i input) or the only way is still "Command executor"?

Many thanks,
mrazik

Re: Live Streaming

Posted: Sat Aug 27, 2022 12:27 pm
by FranceBB
mrazik wrote: Fri Aug 26, 2022 10:37 am si you already solve this problem with "Custom FFmpeg" processor (options before -i input) or the only way is still "Command executor"?
In the current version of FFAStrans you still have to use Command Executor.
I made it for you:

Image

where Stream Content is Command Executor with the following command:

Code: Select all

%comspec% /C ""%s_ffmpegx64%" -re -i  "%s_original_full%" -profile:v high -level:v 4.1 -refs 4  -b:v 5000k -maxrate 6000k -bufsize 3000k -ignore_chapters 1 -ignore_unknown -write_tmcd 0 -vf "sidedata=delete,metadata=delete,bwdif=mode=0:parity=0:deint=0,scale=w=1920:h=1080:flags=lanczos:sws_dither=ed,format=yuv420p,setfield=prog,setsar=1:1" -x264opts "keyint=25:force_cfr=1:deblock=-1,-1:aud=1:overscan=show:colorprim=bt709:fullrange=off:transfer=bt709:colormatrix=bt709" -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range tv -field_order progressive -map_metadata -1 -metadata creation_time=now -c:a aac -b:a 384k -ar 44100 -ac 2 -f flv "rtmp://a.rtmp.youtube.com/live2/(Mykey)""

(Yes, I changed your command line a bit to make it look a bit closer to what the filter_builder would do in FFAStrans and I also changed the audio codec from MP3 to AAC 'cause encoding in MP3 in 2022 is a sin punishable by death not recommended).