olzzon / live-factory

Reciever - transmitter - transcoder for video and audio
9 stars 2 forks source link

Unhandled event DECKLINK #4

Open sfahadshahzad opened 1 year ago

sfahadshahzad commented 1 year ago

Hi,

I am trying to encode video from Decklink SDI input into MPEGTS and getting errors.

Spawning Encode index: 0 FFmpeg is starting FFmpeg Spawn [ '/bin/sh', '-c', '/usr/bin/ffmpeg -hide_banner -re -f decklink -i DeckLinkQuad (1) -channels 16 -queue_size 1073741824 -vfyadif_videotoolbox -c:v hevc_nvenc -preset llhq -b:v 5000k -cbr true -zerolatency true -pix_fmt yuv420p -c:a -acodec libopus -b:a 256k -f mpegts udp://127.0.0.1:1234?pkt_size=1316' ] Encoder Local Exited : 2 Encoder index : 0 Have been closed with code : 2 Signal : null Stopping Encoder Index : 0 events.js:291 throw er; // Unhandled 'error' event ^ Regards,

Fahad

olzzon commented 1 year ago

You can always try to run the command locally by copying the command. Removing the "-hide_banner" could give you hints.

/usr/bin/ffmpeg -hide_banner -re -f decklink -i DeckLinkQuad (1) -channels 16 -queue_size 1073741824 -vfyadif_videotoolbox -c:v hevc_nvenc -preset llhq -b:v 5000k -cbr true -zerolatency true -pix_fmt yuv420p -c:a -acodec libopus -b:a 256k -f mpegts udp://127.0.0.1:1234?pkt_size=1316

Looks like some spaces is missing here: -vf yadif.... etc

Issue is related to the local ffmpeg part (which has a bit lower priority at the moment) The way it's handled (until all parsing of args is moved to the backend) is by splitting at spaces.

So this will be fixed in the next version.

olzzon commented 1 year ago

https://github.com/olzzon/live-factory/releases/tag/v0.9.2