Skip to content

Getting Error #3

@sfahadshahzad

Description

@sfahadshahzad

Hi,

I am trying to get video input from Decklink but getting errors.

here is the command:
#!/bin/bash

#Generated by command builder r0.3h

timestamp="$(date +%s)"

ffmpeg

-copyts -probesize 10M -f decklink -bm_v210 0 -audio_depth 16 -channels 2 -queue_size 124608000
-decklink_copyts 1 -audio_pts abs_wallclock -video_pts abs_wallclock
-i "DeckLink SDI (1)"

-flags +global_header -r 25

-filter_complex "scale=1920x1080"

-pix_fmt yuv420p
-c:v libx264

-b:v:0 4500K -minrate:v:0 4500K -maxrate:v:0 4500K -bufsize:v:0 4500K/10

-g:v 25 -keyint_min:v 25 -sc_threshold:v 0

-color_primaries bt709 -color_trc bt709 -colorspace bt709

-c:a aac -ar 48000 -b:a 96k

-map 0:v:0
-map 0:a:0

-preset veryfast
-tune zerolatency
-x264-params 'sliced-threads=0:nal-hrd=cbr'

-f mpegts 'udp://127.0.0.1:1234?pkt_size=1316'

Error :

Input #0, decklink, from '80:f6ea8340:00000000':
Duration: N/A, start: 1650997587.302852, bitrate: 167424 kb/s
Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Stream #0:1: Video: rawvideo (UYVY / 0x59565955), uyvy422(top first), 720x576, 165888 kb/s, 25 fps, 25 tbr, 1000k tbn, 1000k tbc
Stream mapping:
Stream #0:1 (rawvideo) -> scale (graph 0)
scale (graph 0) -> Stream #0:0 (libx264)
Stream #0:0 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 000001e18bce06c0] Error setting option x264-params to value 'sliced-threads=6:nal-hrd=cbr'.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

Regards,

Fahad

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions