Comments (6)
PreDeToR, I also wanted to realize this. Have you found a solution?
from bmdtools.
Hi @msslava
Yes I found a bit of a work-around, not the prettiest of solutions but it works.
What I Did was
1)Capture the stream and stream it to a file using mpegts (This allows reading and timestamping of the file while its being written to), This file/process is reset once a day.
2)I then have a script that gets the duration of the above file and starts as new ffmpeg process to stream using the timestamp so that I am always starting at the end of the file, I have two of these processes as I needed to stream to two different locations and pull the audio out the source stream differently as the one channel as english and the other french.
This works perfectly fine, it just uses some extra cpu.
from bmdtools.
Hi, PreDeToR! Thanks for you reply.
An interesting idea with a temporary file. I want to record video from SDI and for me the main quality video. The mpegts can not this. How to be in this case?
Can you share your scripts for reference?, for me it would be very useful. Thank you!
from bmdtools.
you can adjust the quality, my feeds aren't hd so its easy:
- /root/bmdtools/bmdcapture -C 5 -m 1 -A 2 -V 4 -M 2 -F nut -d 1 -v -f pipe:1 | ffmpeg -loglevel error -i pipe:0 -y -c:a mp3 -strict -2 -ac 2 -ar 44100 -ab 128k -deinterlace -pix_fmt yuv420p -vcodec libx264 -preset slow -coder 1 -bf 3 -x264opts nal-hrd=none -g 25 -b:v 3500k -bufsize 8500k -f mpegts "/root/Streams/5.mp4"
The above script restarts once a day, and streams to the single file all day, so you just need to know how long the stream is , using ffprobe, to make sure you set the start time for your 2nd process
- ffmpeg -loglevel info -re -ss 57 -t 43200 -i "/root/Streams/5.mp4" -map_channel 0.1.1 -c:a mp3 -strict -2 -ac 2 -ar 44100 -ab 128k -af "volume=4" -pix_fmt yuv420p -vcodec libx264 -preset slow -coder 1 -bf 3 -x264opts nal-hrd=none -g 50 -b:v 3500k -bufsize 5500k -f flv 'rtmp://xxx/xxx'
from bmdtools.
I mean, when we 1) write to mp4 and then 2) want to get from it in ProRes (for example) - it's wrong, I think.
Thank you for sharing
from bmdtools.
Ah, not sure about that i know ffmpeg can handle it for me, you might need something like a rtmp stream that you need to send to
from bmdtools.
Related Issues (20)
- bmdplay looses the time of buffering
- memlimit is ignored. HOT 2
- How to install libfdk-acc-dev ?
- bmdplay.cpp setting connections
- Makefile:58: recipe for target 'bmdcapture' failed HOT 3
- Segmentation Fault: 11 for bmdcapture
- Document how to build on windows HOT 2
- bmdplay interlace video format problem HOT 1
- AVCodecParameters HOT 1
- Multiple Concurrent Captures on Decklink Duo 2 fail on some interfaces HOT 2
- bmdplay 1080p25 problem HOT 2
- Can't get HDMI input to work. Colour bars only. HOT 2
- "This application requires the DeckLink drivers installed" error when running bmdcapture HOT 1
- bmdplay: Would it be possible to use streams without audio? HOT 9
- Question about multiple pipe with bmdplay HOT 1
- Make bmdplay pass input option
- Do not crash if the file does not exist
- Pause / Resume for Bmdplay HOT 3
- Is the input faster than realtime?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bmdtools.