Project

General

Profile

mark stream

Added by hacksat hacksat over 6 years ago

hello,
is it possible to add a sign on the broadcast channel via a stream profile?
:)


Replies (37)

RE: mark stream - Added by saen acro over 6 years ago

See links from previous post

RE: mark stream - Added by hacksat hacksat over 6 years ago

hello thanks for the reply

http://tvheadend.org/boards/5/topics/31443 this link?

i see but I can not make it go! I can not understand yet if I have to put the command in the Command line box: or I have to put the link of the path, but in both cases the stream does not start, you can kindly get an example screenshot to work on it

RE: mark stream - Added by hacksat hacksat over 6 years ago

nothing I can not make it work by following all the links you suggested to follow do not want to leave, by putting a file in a path like: home/hts/test/file.sh with the file inside as described

home/hts/test/file.sh: --->
#!/bin/bash
/home/hts/ffmpeg -fflags +genpts -nostats -nostdin -hide_banner -loglevel quiet -hwaccel_device 0 -hwaccel cuvid -c:v h264_cuvid -deint 2 -drop_second_field 1 -surfaces 10 -resize 1280x720 -i -map 0:v -c:v h264_nvenc -preset fast -profile:v high -rc vbr -cq 1 -bf 2 -b:v 2200k -minrate 2200k -maxrate 2200k -bufsize 3002k -map 0:a -c:a libfdk_aac -ac 2 -b:a 128k -strict experimental -f mpegts

I also tried to put the file directly in Command line:
see Screenshot_10.jpg and not work too!

in neither case did I get the desired result, the stream only works if I do not put in the link or ffmpeg command in the space Command line:

like this work but not have encoding ffmpeg
see Screenshot_11.jpg

RE: mark stream - Added by saen acro over 6 years ago

Lets use simple logic.
Do you have ffmpeg in this location?

RE: mark stream - Added by hacksat hacksat over 6 years ago

hi
so both the two cases are correct either by putting link like this: home/hts/test/file.sh OR directly in the box?

i sent the command whereis ffmpeg

root@server:~# whereis ffmpeg
ffmpeg: /usr/bin/ffmpeg /usr/bin/X11/ffmpeg /usr/local/bin/ffmpeg /opt/ffmpeg/bin/ffmpeg /usr/share/man/man1/ffmpeg.1.gz
root@server:~#

I tried all these paths but it does not work anyway like this:

/usr/bin/ffmpeg -analyzeduration 1M -probesize 1M -i pipe:0 -bitrate 3000k -bufsize 3000k -c:v libx264 -preset ultrafast -c:a aac -c:s copy -f mpegts pipe:1

/usr/local/bin/ffmpeg -analyzeduration 1M -probesize 1M -i pipe:0 -bitrate 3000k -bufsize 3000k -c:v libx264 -preset ultrafast -c:a aac -c:s copy -f mpegts pipe:1

/opt/ffmpeg/bin/ffmpeg -analyzeduration 1M -probesize 1M -i pipe:0 -bitrate 3000k -bufsize 3000k -c:v libx264 -preset ultrafast -c:a aac -c:s copy -f mpegts pipe:1

see Screenshot_12.jpg

RE: mark stream - Added by saen acro over 6 years ago

lets continue with logical thinking
Use command line add input url from tvh playlist and output to file

remove
-analyzeduration 1M -probesize 1M
or make it larger

RE: mark stream - Added by hacksat hacksat over 6 years ago

hi
like this:
Screenshot_13.jpg

or like this:
Screenshot_14.jpg
?

RE: mark stream - Added by hacksat hacksat over 6 years ago

ok now it seems to work, I just have to find the right ffmpeg configuration to not block flick etc. :)
thanks

RE: mark stream - Added by hacksat hacksat over 6 years ago

Is normal the CPU go up and down?like 18% > 50%

RE: mark stream - Added by saen acro over 6 years ago

hacksat hacksat wrote:

Is normal the CPU go up and down?like 18% > 50%

It's transcoding what are you expecting?
Use GPU to offload CPU.

RE: mark stream - Added by hacksat hacksat over 6 years ago

I expected it to be stable but so it goes up and down from 10% to rise rapidly up to 50% I try with the GPU

RE: mark stream - Added by saen acro over 6 years ago

To be fair to others, at less post your config for community.

(26-37/37)