-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decklink output #109
Comments
In looking at the log I am trying some changes but still no luck unfortunately.. In config, changed Width: 1280, Hight: 720, FPS: 59.94, aspect: 1.000 ffmpeg_param: stream_output: Please let me know if you have any ideas, I will ask on the ffmpeg email forum too.. Thanks! |
Found the output page. https://github.com/ffplayout/ffplayout_engine/wiki/Outputs Hoping to get a little more info, is there a sample of the python file to be made with the ffplayout/output/ with an output() function in it? Then what do you put in the ffmpeg_param field/ edit the ffplayout.yml config? |
Aspect of one is not correct, for 16:9 you should leaf this untouched. I think the string quotation from output was not preserved. Can you download the zip from master branch and override /opt/ffplayout_engine? And try again? When you override this folder, you have to fix the config also. In /etc/ffplayout/ffplayout.yml You need to change:
|
Changed aspect back to 1.778
Player page now shows no clip loaded and no duration moving.. |
Since you don't have a decklink card, if you ever wanted to Zoom/ remote into this test server, we could set that up and soon as I get some money coming in I am hoping to sponsor you. Thanks again for everything you do! |
Have you restart the service? And what says: |
Ok, after a reboot and building of new playlist it is playing. I also put it back to your recommended settings: Stop, restart and update service seem to not really work, the player just keeps showing progress of the file playing. Logging also seems to not always work, at least in the UI. I have to delete the current playlist to get it to stop, going to delete logs, reboot and see if that will give me an accurate/ current log.. |
All logs are from 2 days ago. Does not seem to be writing new ones. |
Have you check |
Sorry, where is that? |
Also, with the version of ffmpeg I am using, (that does play out the decklink and play in ffplayout stream to VLC) I was unable to compile with libzimg and libdav1d. Would those libraries missing cause any issues? I was able to mirror everything else the same as the ffmpeg that the installer makes. |
You type this in terminal. libzimg and libdav1d are optional. |
Ok, thanks good to know. I am starting again with a fresh OS and fresh install of FFplayout. Just changed congfig with 1280x720 59.94fps and added .TS extension. Trying your recommended: `[2022-01-17 02:51:23,849] [INFO] Play: /opt/tv-media/720ts_6DK01H_tru720og.ts And from terminal: File playing MediInfo: Video Audio Text #1 Text #2 I can make any type of file if you want me to try something else or try any playout code changes.. |
Have you also replace the engine again? The installer still uses the old version, which are not working correctly with your output settings. But I don't see any errors there. |
I can try and replace the engine now. |
Please add code blocks with 3 `, it makes it more readable. Your systemd output shows also the old settings, no resolution change and not decklink output. |
Sorry I will work on my code blocks, thought they were formatting. Seems the installers engine did not keep the output settings but the replaced engine is, getting errors now:
Terminal:
Not getting the most current log reading in the UI, seems to stop after failing with decklink.. |
Ok. Can you post the output from running:
|
After replacing the engine, I also needed to: Here is that terminal run: I did: Also tried to check the version.. |
Yes that is true you need to install a virtual environment. But I think doing this things with sudo is not working correctly. Better login in root and source the environment and then install the requirements. |
Logged in as root and it is working and playing out the Decklink! This is awesome :] So logged in as root I did:
And all is well on normal user as well :] |
So I have this working for Ubuntu 20.04 but it is not working for 21.10 as I need that version to get MPV player to work. So I did everything the same, logged in as root, ran the installer, replaced the engine from master git, updated smtp server and port in ffplayout.yml, create virtual environment:
Getting nothing in the logs and:
Any advice would be great, thanks! |
I think you will see what is happen, when you run again:
Here you also make the same mistake: sudo virtualenv -p python3 venv
source ./venv/bin/activate # <--- wrong
sudo apt install python3-testresources
sudo pip3 install -r requirements.txt You ran everything as root, but you source the environment as normal user. This can not work ;-). |
Ok opp, I was going off my notes, I will update those, thanks for catching that! To clarify, should I be doing the install, engine replacement and virtualenv while logged in as root or just virtualenv? When I run |
I'm working on a new major version, which has braking changes. So better save the engine folder, because it will take time until the release will come and I can not guarantee that the master will work with the current API and frontend. |
Ok, saved all repos currently up. Saves the disk with Ubuntu 20.04 and playout with decklink working (not sure if I have the repos though). Working on this new disk for Ubuntu 21.10 as I will need to be on that OS version but still having problems getting it to work. Here is what I am doing- https? No compile and install srs rtmp/hls server? yes media path- /opt/tv-media playlist path- /opt/playlists ffmpeg: -will not ask since it is installed multi channel setup (Y/n) : no Do you wish to install nginx? (Y/n) : y` Installer finishes but shows: `HTTP request sent, awaiting response... 200 OK v3.1.0.tar.gz [ <=> ] 1.16M 6.53MB/s in 0.2s 2022-01-24 10:19:47 (6.53 MB/s) - ‘v3.1.0.tar.gz’ saved [1212498] bash: line 1: npm: command not found installation done...` While still logged in as root, download the ffplayout_engine zip from master branch and override /opt/ffplayout_engine
Go to http://192.168.1.xxx/ < machine IP, get: 404 Not Found nginx/1.18.0 (Ubuntu) |
Not everything was installed. Maybe there was temporary something offline. I have to check this tomorrow. |
Ok, thanks. Would like to find a way to install off line, just to avoid issues if things change, I will research that. |
I was not able to reproduce. Everything run normal. |
On Ubuntu 21.10? Definitely not working on 21 like it is on 20. Maybe I should use CentOS? So installed, web UI comes but would not show files playing on player from playlist. Replaced the engine, same not playing, logged in as root, did the python3 venv/ activate/ install -r requirements.. Checking system gives:
|
Ok, just ran the installer on a fresh Ubuntu 21.10 and everything works as it should except for Decklink (needs ffmpeg compile with Decklink support). When I compile ffmpeg with Decklink support, it plays out the card as it should but one thing that is different in compiling on Ubuntu 21 vs 20 is that on 21 it cannot find libzmq 4.2.1 even when I have Pretty sure I needed libzmq in ffmpeg for ffplayout to run right? It was failing before when I did not have it, pretty sure.. |
For the installer I uses this script, this compiles libzmq. You can extend it to your needs. |
Ok, ditched libzmq in my ffmpeg compile and ffplayout is working like a champ again, playing out Decklink on Ubuntu 21.10. I had seen some issues with libzmq, seems even if you do libzmq3-dev, ffmpeg 4.4 still wants libzmq 4.2.1 for some reason even though that's like 6 years old and seems to have got lost at some point. I don't currently need text overlay so just going to skip it, I will ask on zeromq git and ffmpeg if there is a solution, seems like a bug. For FFplayout to work with Decklink, I did have to replace the engine and log in as root to do the python3 venv/ activate/ install -r requirements. Still looking for a way to do offline install/ set up.. just do be able to have a solid base for trouble shooting and if the internet blows up and I don't have a connection or libs change, maybe I'm just old school.. Is there a list anywhere of all the dependencies/ libs/ packages needed for FFplayout? Guessing I could look at the install log and try and figure out whats going on. Would I be able to use something like Synaptic or Keryx. Maybe the best approach at that point would be to not use the installer and work with the engine, api and front end individually.. ? Just kind of thinking out loud, I'm not really a programmer, but open to learning. :] Thanks again for always stepping up on the assist, cheers! |
Every repo has his docs folder and inside this is a short install instruction. I guess, when you observe them you get an idea what's needed. |
I close here, because the original issue is fixed. |
I can see the stream in VLC on rtmp://192.168.1.xxx/live/stream <- playing file 720ts_6DK01H_tru720og.ts and 720ts_.ts- same file as the other, just renamed and both are on loop.
I can output video directly from ffmpeg out the Decklink SDI with:
ffmpeg -i /home/matt/VideoTests/720ts_6DK01H_tru720og.ts -pix_fmt yuv420p -f decklink -vcodec v210 "DeckLink SDI 4K"
Trying now to get the ffplayout to output on decklink, I tried your recommended:
ffmpeg_param: >- -c:v libx264 -crf 23 -x264-params keyint=50:min-keyint=25:scenecut=-1 -maxrate 1300k -bufsize 2600k -preset medium -profile:v Main -level 3.1 -c:a aac -ar 44100 -b:a 128k stream_output: >- -flags +global_header -f flv rtmp://localhost/live/stream -pix_fmt uyvy422 -vcodec v210 -f decklink "DeckLink SDI 4K"
Unfortunately nothing out the decklink.. Log:
decode:
[2022-01-14 10:11:22,533] Error writing trailer of pipe:: Broken pipe [2022-01-14 10:11:24,409] av_interleaved_write_frame(): Broken pipe
encode:
[2022-01-14 10:11:24,408] [NULL @ 0x55ec92de8600] Unable to find a suitable output format for 'SDI' [2022-01-14 10:11:24,408] SDI: Invalid argument
The text was updated successfully, but these errors were encountered: