Hi Dave,
I'm guessing a bit as to what the filtergraph parameter is contained in the "$CAPTION""$SCALE" variables.
I've pored through the rather detailed and extensive ffmpeg doco without learning what should reasonable values?
Streaming with ffmpeg?
Forum rules
This forum is run by the BATC (British Amateur Television Club), it is service made freely available to all interested parties, please do not abuse this privilege.
Thank you
This forum is run by the BATC (British Amateur Television Club), it is service made freely available to all interested parties, please do not abuse this privilege.
Thank you
Re: Streaming with ffmpeg?
Cheers,
Peter - VK4EA
Peter - VK4EA
Re: Streaming with ffmpeg?
Hi Peter
You can safely leave out the string for testing. The formatting of this particular parameter is very critical and it is easier to get something working without it, and then add it later.
$CAPTION contains the code to put a callsign caption in the top right hand corner, $SCALE contains code that can be used to force 16:9 format from a PAL 4:3 source, and yadif=0:1:0 changes the frame interlace order which seems to be set wrongly for PAL in the EasyCap driver (it's OK for NTSC, but not reversed, like it needs to be, for PAL).
Dave
You can safely leave out the string
Code: Select all
-vf "$CAPTION""$SCALE"yadif=0:1:0
$CAPTION contains the code to put a callsign caption in the top right hand corner, $SCALE contains code that can be used to force 16:9 format from a PAL 4:3 source, and yadif=0:1:0 changes the frame interlace order which seems to be set wrongly for PAL in the EasyCap driver (it's OK for NTSC, but not reversed, like it needs to be, for PAL).
Dave
Re: Streaming with ffmpeg?
This is my streaming command at present for GB3KM, uses a Hauppauge capture device.
ffmpeg -v 0 -f mpeg -i /dev/video1 -c:a aac -strict experimental -s 640x480 -ac 2 -b:a 48k -f flv -r 25 -vcodec libx264 -preset fast -vf crop=685:546:20:0 -b:v 375k -minrate 375k -maxrate 375k -bufsize 400k "rtmp://rtmp.batc.org.uk/live/gb3km-xxxxxx"
The minrate/maxrate is used to limit the data rate if encoding noise, it just stalls the encoder otherwise.
Rob
ffmpeg -v 0 -f mpeg -i /dev/video1 -c:a aac -strict experimental -s 640x480 -ac 2 -b:a 48k -f flv -r 25 -vcodec libx264 -preset fast -vf crop=685:546:20:0 -b:v 375k -minrate 375k -maxrate 375k -bufsize 400k "rtmp://rtmp.batc.org.uk/live/gb3km-xxxxxx"
The minrate/maxrate is used to limit the data rate if encoding noise, it just stalls the encoder otherwise.
Rob