Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

3 votes
1 answers
1059 views
Why can't pull the dash stream with ffplay?
The nginx.conf is simple: sudo cat /usr/local/nginx/conf/nginx.conf worker_processes 1; error_log logs/error.log error; events { worker_connections 4096; } rtmp { server { listen 1935; application live { live on; dash on; dash_path /mnt/dash; dash_fragment 15s; } } } http { server { listen 80; locat...
The nginx.conf is simple: sudo cat /usr/local/nginx/conf/nginx.conf worker_processes 1; error_log logs/error.log error; events { worker_connections 4096; } rtmp { server { listen 1935; application live { live on; dash on; dash_path /mnt/dash; dash_fragment 15s; } } } http { server { listen 80; location /dash { root /mnt; } } types { text/html html; application/dash+xml mpd; } } I push the web camera to 127.0.0.1. output="rtmp://127.0.0.1:1935/live/sample" ffmpeg -f v4l2 -video_size 640x480 -i /dev/video0 -c:v libx264 -f flv $output Pull it with rtmp protocol: ffplay rtmp://127.0.0.1:1935/live/sample Succeeded! Pull it with dash protocol: ffplay http://127.0.0.1/dash/sample.mpd It encounter an error: http://127.0.0.1/dash/sample.mpd : Invalid data found when processing input How to fix it? My os :debian9. ffplay -formats |& grep "DASH Muxer" E dash DASH Muxer
scrapy (353 rep)
Jan 15, 2021, 01:38 PM • Last activity: Jan 19, 2021, 07:39 AM
0 votes
2 answers
1486 views
Why can't open the stream with hls url?
I build RTMP server on my local pc according to the nginx official manual: [video-streaming-for-remote-learning-with-nginx][1] My nginx setting: sudo vim /usr/local/nginx/conf/nginx.conf worker_processes 1; error_log logs/error.log; worker_rlimit_nofile 8192; events { worker_connections 1024; } rtmp...
I build RTMP server on my local pc according to the nginx official manual: video-streaming-for-remote-learning-with-nginx My nginx setting: sudo vim /usr/local/nginx/conf/nginx.conf worker_processes 1; error_log logs/error.log; worker_rlimit_nofile 8192; events { worker_connections 1024; } rtmp { server { listen 1935; application live { live on; interleave on; hls on; hls_path /mnt/hls; hls_fragment 15s; } } } http { default_type application/octet-stream; server { listen 80; location /tv { root /mnt/hls; } } types { application/vnd.apple.mpegurl m3u8; video/mp2t ts; text/html html; } } Set the rtmp url: output="rtmp://127.0.0.1:1935/live/sample" Push the web camera : ffmpeg -f v4l2 -video_size 640x480 -i /dev/video0 -c:v libx264 -f flv $output Pull the stream with rtmp protocol: ffplay rtmp://127.0.0.1:1935/live/sample I get the video successfully. Pull the stream with hls protocol: ffplay http://127.0.0.1/live/sample HTTP error 404 Not Found http://127.0.0.1:80/live/sample.m3u8 : Server returned 404 Not Found #It can't get video with browser. How to fix it? What does the following code snippet in http segment mean? server { listen 80; location /tv { root /mnt/hls; } } Where should i mkdir /tv ?
scrapy (353 rep)
Jan 12, 2021, 01:25 AM • Last activity: Jan 15, 2021, 10:09 AM
2 votes
1 answers
3046 views
NGINX RTMP not working with sites-enabled directory set
I'm having problems getting NGINX with the RTMP module to start when the RTMP server block is used within a file inside the `sites-available` (symbolic linked to `sites-enabled`). NGINX configuration files are all located at `/etc/nginx/`. If I use the below RTMP server block directly in the `nginx....
I'm having problems getting NGINX with the RTMP module to start when the RTMP server block is used within a file inside the sites-available (symbolic linked to sites-enabled). NGINX configuration files are all located at /etc/nginx/. If I use the below RTMP server block directly in the nginx.conf, the server starts up perfectly fine. However, as soon I remove the comment from the line include /etc/nginx/sites-enabled/*; in the nginx.conf, systemctl status nginx.service comes back with"nginx: [emerg] "rtmp" directive is not allowed here in /etc/nginx/sites-enabled/livestream:1
`
rtmp {
    server {
        listen 1935;
        chunk_size;

        application obs_output {
            live on:
            record off;
        }
    }
}
` These are the two guides I followed to install NGINX and the RTMP module. - https://helpdeskgeek.com/linux-tips/create-your-own-live-video-streaming-server-with-linux/ - https://www.scaleway.com/en/docs/setup-rtmp-streaming-server/ Any ideas what's going on here please? Many thanks in advance
willowen100 (67 rep)
Mar 30, 2020, 07:59 PM • Last activity: Mar 31, 2020, 10:52 PM
3 votes
2 answers
5073 views
How to download rtmp video stream on linux?
I want to download a video recorded today at 5-6 pm from the following earthcam: http://www.abbeyroad.com/crossing How can i download it in debian or ubuntu? Inspecting the source code i got the following: rtmp://video4.earthcam.com/archives/MP4:abbeyroad_archives/2016/03/26/1700.mp4 I tried using t...
I want to download a video recorded today at 5-6 pm from the following earthcam: http://www.abbeyroad.com/crossing How can i download it in debian or ubuntu? Inspecting the source code i got the following: rtmp://video4.earthcam.com/archives/MP4:abbeyroad_archives/2016/03/26/1700.mp4 I tried using the rtmpdump application as follow: rtmpdump -r "rtmp://video4.earthcam.com/archives/MP4:abbeyroad_archives/2016/03/26/1700.mp4" but i get the following error message > INFO: Connected... ERROR: Closing connection: NetStream.Play.StreamNotFound
George Birchoff (33 rep)
Mar 27, 2016, 05:38 AM • Last activity: Apr 5, 2017, 05:57 AM
3 votes
1 answers
1960 views
VLC - libvdpau error with intel graphics
I am using archlinux trying to connect to an RTSP stream on my local network (local IP camera) and am getting very hit-and-miss performance from VLC. Most of the time the connection runs just fine, but sometimes the connection _freezes_ and I have to close and reopen to resume. Running from the term...
I am using archlinux trying to connect to an RTSP stream on my local network (local IP camera) and am getting very hit-and-miss performance from VLC. Most of the time the connection runs just fine, but sometimes the connection _freezes_ and I have to close and reopen to resume. Running from the terminal shows the following: VLC media player 2.2.4 Weatherwax (revision 2.2.3-37-g888b7e89) [0000000000bbf1f8] dummy interface: using the dummy interface module... Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory [00007fa54800c618] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?) ... ... [00007fa54800c618] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?) This is obviously a bit off as this is an intel laptop with no nvidia components. I cannot figure out where/why it is looking for nvidia files (or if it is even relevant to the problem) Running grep -iE 'vdpau|dri driver' ~/.local/share/xorg/Xorg.0.log yields: [ 99171.065] (II) intel(0): [DRI2] DRI driver: i965 [ 99171.065] (II) intel(0): [DRI2] VDPAU driver: va_gl Running vainfo yields: libva info: VA-API version 0.39.4 libva info: va_getDriverName() returns 0 libva info: Trying to open /usr/lib/dri/i965_drv_video.so libva info: Found init function __vaDriverInit_0_39 libva info: va_openDriver() returns 0 vainfo: VA-API version: 0.39 (libva 1.7.3) vainfo: Driver version: Intel i965 driver for Intel(R) Ivybridge Mobile - 1.7.3 vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Simple : VAEntrypointEncSlice VAProfileMPEG2Main : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointEncSlice VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSlice VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSlice VAProfileH264StereoHigh : VAEntrypointVLD VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileNone : VAEntrypointVideoProc VAProfileJPEGBaseline : VAEntrypointVLD I've read the relevant arch wiki articles (I believe), but cannot get a stable connection. I have extra/libva, extra/libva-intel-driver, and extra/libva-vdpau-driver installed and this seems like it should do it... what am I missing?
sam (23295 rep)
Mar 9, 2017, 01:38 AM • Last activity: Mar 30, 2017, 08:59 PM
2 votes
1 answers
1895 views
RTMP Streaming to Twitch
I'm streaming using OBS on Windows (QuickSync), pushing 20k bitrate to 2nd PC based on Linux (Debian Jessie 8.4.0, 64bit) via Gigabit Ethernet. The Debian system runs a minimal installation without X server (just CLI), where I compiled and installed nginx 1.10 with rtmp module. Debian Jessie specs:...
I'm streaming using OBS on Windows (QuickSync), pushing 20k bitrate to 2nd PC based on Linux (Debian Jessie 8.4.0, 64bit) via Gigabit Ethernet. The Debian system runs a minimal installation without X server (just CLI), where I compiled and installed nginx 1.10 with rtmp module. Debian Jessie specs: - AMD Athlon X2 64 4200 - 2GB RAM - Regular 7200 RPM hdd nginx.conf: root@streamer:~# cat /usr/local/nginx/conf/nginx.conf worker_processes 2; error_log logs/error.log debug; events { worker_connections 1024; } rtmp { server { listen 1935; chunk_size 4000; application transcode { live on; record off; exec avconv -re -i rtmp://localhost:1935/transcode/1234 -c:v libx264 -preset superfast -g 60 -keyint_min 30 -b:v 2800k -minrate 2800k -maxrate 2800k -s 1280x720 -r 30 -f flv rtmp://localhost:1935/live/1234; } application live { live on; record off; push rtmp://live-ams.twitch.tv/app/STREAMKEY; } } } My question: I can stream video using SUPERFAST preset without stutters, but when I go to VERYFAST, video on twitch is stopping every like 5 seconds for a while (not buffering). Is that Athlon not enough to stream video with veryfast - faster preset? This machine got literally only needed stuff on the CLI Debian just to stream, so I'm not losing any resources. I was quite sure I can push the quality as faster/veryfast with this rig. Could anyone elaborate on the topic?
Eska (121 rep)
May 30, 2016, 08:46 PM • Last activity: Jun 6, 2016, 04:52 PM
2 votes
1 answers
1754 views
Ubuntu live RTMP video streem
I'm trying to launch live(not ondemand) RTMP stream from ubuntu, but i succeed only with `RTSP` stream through VLC vlc -vvv ./videos/test.mp4 --sout '#rtp{dst=192.168.8.106,port=1234,sdp=rtsp://192.168.8.106:1234/test.sdp}' (source here - https://www.videolan.org/doc/streaming-howto/en/ch04.html) an...
I'm trying to launch live(not ondemand) RTMP stream from ubuntu, but i succeed only with RTSP stream through VLC vlc -vvv ./videos/test.mp4 --sout '#rtp{dst=192.168.8.106,port=1234,sdp=rtsp://192.168.8.106:1234/test.sdp}' (source here - https://www.videolan.org/doc/streaming-howto/en/ch04.html) and unfortunately it is not supported by any flash or html5 players. For RTMP streaming i found "how to" only for webcam case - http://www.jpsaman.org/vlc/rtmp Can someone help me with creating exact command for RTMP stream from this 2 examples please? Or is there other free linux software which can start stream RTMP stream ?
Armen (211 rep)
Nov 19, 2015, 05:28 AM • Last activity: Dec 11, 2015, 06:32 AM
1 votes
0 answers
384 views
How to download a video from rtmp protocol from behind proxy using rtmpdump
I am trying to download video from rtmp://flash.dce.harvard.edu/bounce/mp4:2015/01/14328/L01/14328-20140902-L01-4-h264-av1248-16x9-852x480.mp4. My college internet runs behing proxy, Is there a way I can set http/https proxy to rtmpdump?
I am trying to download video from rtmp://flash.dce.harvard.edu/bounce/mp4:2015/01/14328/L01/14328-20140902-L01-4-h264-av1248-16x9-852x480.mp4. My college internet runs behing proxy, Is there a way I can set http/https proxy to rtmpdump?
vikasreddy (111 rep)
Sep 15, 2015, 08:12 AM • Last activity: Sep 15, 2015, 10:13 PM
Showing page 1 of 8 total questions