0

I'm trying to encode 2 inputs form 2 different decklink cards and create a output encoded in mjpeg with 2 video index's to open in VLC. To be able to change from one video to another.

I'm using ffmpeg with the following command:

ffmpeg -f decklink -i 'DeckLink Duo (1)' -f decklink -i 'DeckLink Duo (2)' -map 0 -map 1 -c:v mjpeg -vf yadif -framerate 25 -video_size 1920x1080 -an -f matroska udp://localhost:9000

Then on VLC I tried to open the udp link with udp://localhost:9000 and nothing happens.

I've tried with several ways, several mux's but this was the only command that didn't give an error.

I've recod it for 5 seconds and open on MediaInfo appears to be the 2 Videos:

General
Unique ID                                : 24553559863167489291122651164405819008 (0x1278D7F75C645173AC406CB4F2FE6680)
Complete name                            : /home/myuser/teste.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 8.78 MiB
Duration                                 : 5 s 0 ms
Overall bit rate                         : 14.7 Mb/s
Writing application                      : Lavf58.76.100
Writing library                          : Lavf58.76.100
ErrorDetectionType                       : Per level 1

Video #1
ID                                       : 1
Format                                   : V_MJPEG
Codec ID                                 : V_MJPEG
Duration                                 : 5 s 0 ms
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Writing library                          : Lavc58.134.100 mjpeg
Default                                  : Yes
Forced                                   : No
Color range                              : Full

Video #2
ID                                       : 2
Format                                   : V_MJPEG
Codec ID                                 : V_MJPEG
Duration                                 : 5 s 0 ms
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Writing library                          : Lavc58.134.100 mjpeg
Default                                  : No
Forced                                   : No
Color range                              : Full

Is there something that I'm doing wrong? Thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.