Live Streaming

Questions and answers on how to get the most out of FFAStrans
Post Reply
vijm1972
Posts: 128
Joined: Fri Apr 24, 2015 7:35 am

Live Streaming

Post 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
admin
Site Admin
Posts: 1667
Joined: Sat Feb 08, 2014 10:39 pm

Re: Live Streaming

Post 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
mrazik
Posts: 36
Joined: Sat May 30, 2020 9:48 pm

Re: Live Streaming

Post 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
FFAStrans 1.2.2
Webinterface 1.2.0.4
- - - - - - - - - - - - - - - -
Intel Xeon CPU E5-1620 v3 @ 3.5GHz
8.00 GB RAM
NVIDIA Quadro K620
256GB SSD
1GB NIC
- - - - - - - - - - - - - - - -
Windows 10 Pro 64b
User avatar
FranceBB
Posts: 235
Joined: Sat Jun 25, 2016 3:43 pm
Contact:

Re: Live Streaming

Post 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).
Post Reply