Streaming (TvHeadend): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(→m3u) |
(→ffmpeg) |
||
(10 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 12: | Zeile 12: | ||
== Transcoding == | == Transcoding == | ||
<pre> | |||
sudo apt-get install libmp3lame-dev libx264-dev | |||
</pre> | |||
[[Datei:TvHeadendCodecProfile.png|400px]] | |||
[[Datei:TvHeadendStreamingProfile.png|400px]] | |||
[[Datei:TvHeadendUserAccessEntries.png|400px]] | |||
[[Datei:TvHeadendUserPassword.png|400px]] | |||
[https://www.kodinerds.net/thread/72527-howto-tvheadend-m3u-mit-persistentem-auth-erstellen-transcoding-profile-verwende/#a-b4705b665c https://www.kodinerds.net/thread/72527-howto-tvheadend-m3u-mit-persistentem-auth-erstellen-transcoding-profile-verwende/#a-b4705b665c] | [https://www.kodinerds.net/thread/72527-howto-tvheadend-m3u-mit-persistentem-auth-erstellen-transcoding-profile-verwende/#a-b4705b665c 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/ https://www.reddit.com/r/raspberry_pi/comments/9bzrhr/tvheadend_transcoding/] | |||
=== ffmpeg === | |||
Siehe auch [[ffmpeg (Linux)|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/] | ||
[https://superuser.com/questions/1457877/ffmpeg-encoding-works-fine-on-a-raspberry-pi-3-but-hangs-on-a-raspberry-pi-4 https://superuser.com/questions/1457877/ffmpeg-encoding-works-fine-on-a-raspberry-pi-3-but-hangs-on-a-raspberry-pi-4] | |||
Zurück zu [[Tvheadend_(Linux)#Streaming|Tvheadend]] | Zurück zu [[Tvheadend_(Linux)#Streaming|Tvheadend]] |
Aktuelle Version vom 1. Mai 2024, 15:55 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
https://www.reddit.com/r/raspberry_pi/comments/9bzrhr/tvheadend_transcoding/
ffmpeg
Siehe auch 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
Zurück zu Tvheadend