Streaming (TvHeadend): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 34: Zeile 34:


=== ffmpeg ===
=== ffmpeg ===
<pre>
/usr/bin/ffmpeg -loglevel quiet -i pipe:0 -vf scale=640:360 -vcodec h264_v4l2m2m -vb 1028k -bufsize 2048k -g 100 -af "aresample=async=1:first_pts=0" -acodec mp3 -ab 128k -f mpegts pipe:1
/usr/bin/ffmpeg -loglevel quiet -i pipe:0 -vf scale=480x270 -vcodec h264_v4l2m2m -vb 1028k -bufsize 3000k -g 100 -af "aresample=async=1:first_pts=0" -acodec mp3 -ab 128k -f mpegts pipe:1
/usr/bin/ffmpeg -threads 4 -c:v mpeg2_mmal -v panic -hide_banner -nostats -i pipe:0 -map 0:0 -map 0:1 -map 0:2? -c:v h264_omx -s 480x270 -b:v 768k -pix_fmt yuv420p -bufsize 2048k -c:a aac -ac 1 -ar 22050 -c:s copy -f mpegts -r 25 pipe:1
/usr/bin/ffmpeg -threads 4 -c:v h264_mmal -i pipe:0 -c:v h264_omx -s 480x270 -b:v 768k -pix_fmt yuv420p -bufsize 3000k -c:a libmp3lame -ac 1 -ar 22050 -f mpegts -r 25 pipe:1 - 2>/tmp/ff.log
</pre>


[https://www.kodinerds.net/thread/75265-transcoding-auf-handy-tablet-mit-tvheadend-raspberry-4-l%C3%A4uft-endlich/ https://www.kodinerds.net/thread/75265-transcoding-auf-handy-tablet-mit-tvheadend-raspberry-4-l%C3%A4uft-endlich/]
[https://www.kodinerds.net/thread/75265-transcoding-auf-handy-tablet-mit-tvheadend-raspberry-4-l%C3%A4uft-endlich/ https://www.kodinerds.net/thread/75265-transcoding-auf-handy-tablet-mit-tvheadend-raspberry-4-l%C3%A4uft-endlich/]

Version vom 26. April 2024, 00:35 Uhr

m3u

Mittels folgender URL kann man eine m3u-Liste mit allen Kanälen herunterladen:

http://<ip des servers>:9981/playlist
curl -L --digest "http://web-streaming:<password>@10.3.0.101:9981/playlist/auth/channels" > web-streaming.m3u

Transcoding

sudo apt-get install libmp3lame-dev libx264-dev

TvHeadendCodecProfile.png


TvHeadendStreamingProfile.png


TvHeadendUserAccessEntries.png


TvHeadendUserPassword.png


https://www.kodinerds.net/thread/72527-howto-tvheadend-m3u-mit-persistentem-auth-erstellen-transcoding-profile-verwende/#a-b4705b665c

https://www.reddit.com/r/raspberry_pi/comments/9bzrhr/tvheadend_transcoding/

ffmpeg

/usr/bin/ffmpeg -loglevel quiet -i pipe:0 -vf scale=640:360 -vcodec h264_v4l2m2m -vb 1028k -bufsize 2048k -g 100 -af "aresample=async=1:first_pts=0" -acodec mp3 -ab 128k -f mpegts pipe:1
/usr/bin/ffmpeg -loglevel quiet -i pipe:0 -vf scale=480x270 -vcodec h264_v4l2m2m -vb 1028k -bufsize 3000k -g 100 -af "aresample=async=1:first_pts=0" -acodec mp3 -ab 128k -f mpegts pipe:1

/usr/bin/ffmpeg -threads 4 -c:v mpeg2_mmal -v panic -hide_banner -nostats -i pipe:0 -map 0:0 -map 0:1 -map 0:2? -c:v h264_omx -s 480x270 -b:v 768k -pix_fmt yuv420p -bufsize 2048k -c:a aac -ac 1 -ar 22050 -c:s copy -f mpegts -r 25 pipe:1
/usr/bin/ffmpeg -threads 4 -c:v h264_mmal -i pipe:0 -c:v h264_omx -s 480x270 -b:v 768k -pix_fmt yuv420p -bufsize 3000k -c:a libmp3lame -ac 1 -ar 22050 -f mpegts -r 25 pipe:1 - 2>/tmp/ff.log

https://www.kodinerds.net/thread/75265-transcoding-auf-handy-tablet-mit-tvheadend-raspberry-4-l%C3%A4uft-endlich/

https://superuser.com/questions/1457877/ffmpeg-encoding-works-fine-on-a-raspberry-pi-3-but-hangs-on-a-raspberry-pi-4

https://www.linux-magazin.de/ausgaben/2017/11/ffmpeg-mit-gpus/3/


Zurück zu Tvheadend