jaskie / Server

This fork of CasparCG Server contains enhancements used in broadcast play-out system used in TVP.
http://playoutautomation.tvp.pl
GNU General Public License v3.0
20 stars 4 forks source link

Cannot change audio_stream_id and video_stream_id #2

Closed mibuhari closed 5 years ago

mibuhari commented 5 years ago

I couldn't succeed in running the following command in casparcg ADD 1 STREAM "udp://127.0.0.1:9250?pkt_size=1316" -vcodec libx264 -tune zerolatency -preset ultrafast -crf 25 -format mpegts -vf scale=302:168 -audio_stream_id 301 -video_stream_id 310

Is the above correct? The output of ffprobe shows the stream as running with pid 256 (0x100) and 257 (0x101)

Thanks in advance.

jaskie commented 5 years ago

No, you have to omit all - signs. Available parameters from command line are:

So in your case correct command syntax is: ADD 1 STREAM "udp://127.0.0.1:9250?pkt_size=1316" vcodec libx264 audio_stream_id 301 video_stream_id 310 options="preset=ultrafast,tune=zerolatency,crf=25"

Currently there is no way to freely apply filter, and scaling is available on current release, but limited only to formats defined in CasparCG (PAL, 1080i5000 etc.)