[FFmpeg-user] Can ffmpeg feed shoutcast?
Hello. I'm wondering if it is possible to feed an mp3 stream to shoutcast since a password is needed for feeding shoutcast. If it is, how is the password sent to for http://ip:port/stream Thanks for your time. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Can ffmpeg feed shoutcast?
I've already tried that and it doesn't work. I get "End of File" >ffmpeg -version ffmpeg version N-73361-g03b2b40 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.9.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avis ynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable -iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --en able-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-lib ilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable -libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enab le-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enabl e-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc - -enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable- libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enabl e-decklink --enable-zlib libavutil 54. 27.100 / 54. 27.100 libavcodec 56. 46.100 / 56. 46.100 libavformat56. 40.100 / 56. 40.100 libavdevice56. 4.100 / 56. 4.100 libavfilter 5. 19.100 / 5. 19.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.100 / 1. 2.100 libpostproc53. 3.100 / 53. 3.100 >SET PATH=F:\ffmpeg\ffmpeg-20150702-git-03b2b40-win32-static\ffmpeg-20150702-git -03b2b40-win32-static\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files ( x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\S ystem32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ QuickTime\QTSystem\;C:\Program Files (x86)\Brackets\command >ECHO Current directory is now: "F:\ffmpeg\ffmpeg-20150702-git-03b2b40-win32-sta tic\ffmpeg-20150702-git-03b2b40-win32-static\bin" Current directory is now: "F:\ffmpeg\ffmpeg-20150702-git-03b2b40-win32-static\ff mpeg-20150702-git-03b2b40-win32-static\bin" >ECHO The bin directory has been added to PATH The bin directory has been added to PATH >ffmpeg -rtbufsize 500M -f dshow -i audio="recorder (Realtek High Definiti" -vn -acodec libmp3lame -ab 128k -f mp3 icecast://user:pass@ip: 8082/2 ffmpeg version N-73361-g03b2b40 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.9.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca -- enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena ble-decklink --enable-zlib libavutil 54. 27.100 / 54. 27.100 libavcodec 56. 46.100 / 56. 46.100 libavformat56. 40.100 / 56. 40.100 libavdevice56. 4.100 / 56. 4.100 libavfilter 5. 19.100 / 5. 19.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.100 / 1. 2.100 libpostproc53. 3.100 / 53. 3.100 Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, dshow, from 'audio=recorder (Realtek High Definiti': Duration: N/A, start: 103223.618000, bitrate: 1411 kb/s Stream #0:0: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s icecast://user:pass@ip:8082/2: End of file >CMD /F:ON /Q /K > On Sun, Nov 22, 2015 at 11:32 AM, Simon Thelen <ffmpeg-u...@c-14.de> wrote: > On 15-11-22 at 11:18, En Figureo Canal wrote: > > Hello. > > > > I'm wondering if it is possible to feed an mp3 stream to shoutcast since > a > > password is needed for feeding shoutcast. If it is, how is the password > > sent to for http://ip:port/stream > https://ffmpeg.org/ffmpeg-protocols.html#Icecast > > -- > Simon Thelen > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Can ffmpeg feed shoutcast?
On Sun, Nov 22, 2015 at 12:18 PM, Simon Thelen <ffmpeg-u...@c-14.de> wrote: > On 15-11-22 at 12:07, En Figureo Canal wrote: > > I've already tried that and it doesn't work. I get "End of File" > Have you tried setting -legacy_icecast? > > Also, please don't top-post on this mailing list. > > -- > Simon Thelen > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > Sorry. I've tried another command: ffmpeg -rtbufsize 500M -f dshow -i audio="recorder (Realtek High Definiti" -vn -acodec libmp3lame -ab 128k -legacy_icecast 1 -content_type audio/mpeg -ice_name "DemoStream" -f mp3 icecast://user:pass@ip:8082/2 And starts doing something but it just dies. Remember I'm trying to send the feed to SHOUTCAST. Thanks. >ffmpeg -version ffmpeg version N-73361-g03b2b40 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.9.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avis ynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable -iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --en able-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-lib ilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable -libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enab le-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enabl e-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc - -enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable- libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enabl e-decklink --enable-zlib libavutil 54. 27.100 / 54. 27.100 libavcodec 56. 46.100 / 56. 46.100 libavformat56. 40.100 / 56. 40.100 libavdevice56. 4.100 / 56. 4.100 libavfilter 5. 19.100 / 5. 19.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.100 / 1. 2.100 libpostproc53. 3.100 / 53. 3.100 >SET PATH=F:\ffmpeg\ffmpeg-20150702-git-03b2b40-win32-static\ffmpeg-20150702-git -03b2b40-win32-static\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files ( x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\S ystem32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ QuickTime\QTSystem\;C:\Program Files (x86)\Brackets\command >ECHO. >ECHO For help run: ffmpeg -h For help run: ffmpeg -h >ECHO For formats run: ffmpeg -formats | more For formats run: ffmpeg -formats | more >ECHO For codecs run: ffmpeg -codecs | more For codecs run: ffmpeg -codecs | more >ECHO. >ECHO Current directory is now: "F:\ffmpeg\ffmpeg-20150702-git-03b2b40-win32-sta tic\ffmpeg-20150702-git-03b2b40-win32-static\bin" Current directory is now: "F:\ffmpeg\ffmpeg-20150702-git-03b2b40-win32-static\ff mpeg-20150702-git-03b2b40-win32-static\bin" >ffmpeg -rtbufsize 500M -f dshow -i audio="recorder (Realtek High Definiti" -vn -acodec libmp3lame -ab 128k -legacy_icecast 1 -content_type audio/mpeg -ice_name "DemoStream" -f mp3 icecast://user:pass@ip:8082/2 ffmpeg version N-73361-g03b2b40 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.9.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca -- enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena ble-decklink --enable-zlib libavutil 54. 27.100 / 54. 27.100 libavcodec 56. 46.100 / 56. 46.100 libavformat56. 40.100 / 56. 40.100 libavdevice56. 4.100 / 56. 4.100 libavfilter 5. 19.100 / 5. 19.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.100 / 1. 2.100 libpostproc53. 3.100 / 53. 3.100 Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, dshow, from 'audio=recorder (Realtek High Definiti': Duration: N/A, start: 104958.814000, bitrate: 1411 kb/s Stream #0:0: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s Output #0, mp3, to 'icecast://user:pass@ip:8082/2': Metadata: TSSE: Lavf56.40.100 Stream #0:0: Audio: mp3 (libmp3lame),
Re: [FFmpeg-user] ffserver rtsp stream transmits only audio
On Tue, Jul 21, 2015 at 6:44 PM, En Figureo Canal figureo56@gmail.com wrote: On Tue, Jul 21, 2015 at 6:23 PM, Moritz Barsnick barsn...@gmx.net wrote: On Tue, Jul 21, 2015 at 18:18:17 -0400, En Figureo Canal wrote: problems with rtsp streaming with ffserver. [...] Format rtp Is RTP identical to RTSP? (I don't know - I'm asking.) When I use ffprobe I get the following, not showing any video info other than the codec: Stream #0:0: Audio: mp3, 441000 Hz, stereo, s16p, bitrate: 96 kb/s Stream#0:1: Video: h264, none, 90k tbr, 180ktbc Impossible, ffprobe should also show at least a banner. Can you please guide to what I'm doing wrong? Please show us the command line and complete, uncut console output of - your ffmpeg command, - your ffprobe command. Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user This is ffprobe output: ./bin/ffprobe rtsp://ip:/7654/live.h264 ffprobe version 2.5.4 Copyright (c) 2007-2015 the FFmpeg developers built on Jun 13 2015 22:34:19 with gcc 4.7 (Debian 4.7.2-5) configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --prefix=/root/ffmpeg/build --enable-libx265 --enable-nonfree libavutil 54. 15.100 / 54. 15.100 libavcodec 56. 13.100 / 56. 13.100 libavformat56. 15.102 / 56. 15.102 libavdevice56. 3.100 / 56. 3.100 libavfilter 5. 2.103 / 5. 2.103 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc53. 3.100 / 53. 3.100 [rtsp @ 0x397ec60] Could not find codec parameters for stream 1 (Video: h264, none): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, rtsp, from 'rtsp://ip:7654/live_500k.h264': Metadata: title : live Duration: N/A, start: 87715.219244, bitrate: 96 kb/s Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 96 kb/s Stream #0:1: Video: h264, none, 90k tbr, 90k tbn, 180k tbc Now this is ffserver output: ./bin/ffserver -d ffserver version 2.5.4 Copyright (c) 2000-2015 the FFmpeg developers built on Jun 13 2015 22:34:19 with gcc 4.7 (Debian 4.7.2-5) configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --prefix=/root/ffmpeg/build --enable-libx265 --enable-nonfree libavutil 54. 15.100 / 54. 15.100 libavcodec 56. 13.100 / 56. 13.100 libavformat56. 15.102 / 56. 15.102 libavdevice56. 3.100 / 56. 3.100 libavfilter 5. 2.103 / 5. 2.103 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc53. 3.100 / 53. 3.100 Tue Jul 21 22:25:11 2015 FFserver started. Tue Jul 21 22:25:11 2015 Launch command line: ./bin/ffmpeg -f concat -rtbufsize 8k -re -i /root/videos/list.txt http://127.0.0.1:8090/livechannel.ffm ffmpeg version 2.5.4 Copyright (c) 2000-2015 the FFmpeg developers built on Jun 13 2015 22:34:19 with gcc 4.7 (Debian 4.7.2-5) configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --prefix=/root/ffmpeg/build --enable-libx265 --enable-nonfree libavutil 54. 15.100 / 54. 15.100 libavcodec 56. 13.100 / 56. 13.100 libavformat56. 15.102 / 56. 15.102 libavdevice56. 3.100 / 56. 3.100 libavfilter 5. 2.103 / 5. 2.103 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc53. 3.100 / 53. 3.100 Input #0, concat, from '/root/videos/list.txt': Duration: N/A, start: 0.00, bitrate: 1474 kb/s Stream #0:0: Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 720x420 [SAR 28:27 DAR 16:9], 1346 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s Tue Jul 21 22:25:11 2015 127.0.0.1 - - New connection: GET /livechannel.ffm Tue Jul 21 22:25:11 2015 127.0.0.1 - - [GET] /livechannel.ffm HTTP/1.1 200 4175 Tue Jul 21 22:25:11 2015 127.0.0.1
[FFmpeg-user] ffserver rtsp stream transmits only audio
I'm currently trying to stream a file into different formats but, having problems with rtsp streaming with ffserver. For testing purposes I'm feeding a mp4 file to ffserver and the video needs to be live streamed to different formats, here is my ffserver configuration: Stream live_500k.h264 Feed live.ffm Format rtp VideoCodec libx264 VideoSize 640x360 AVOptionVideo maxrate 500k AVOptionVideo preset ultrafast AVOptionVideo bufsize 1200k AVOptionVideo flags +global_header AudioCodec libmp3lame #libfdk_aac AudioBitRate 96 AudioChannels 2 AudioSampleRate 44100 AVOptionAudio flags +global_header PreRoll 0 MaxTime 0 NoDefaults /Stream When I try to play the stream with VLC, I only get the audio. When I use ffprobe I get the following, not showing any video info other than the codec: Stream #0:0: Audio: mp3, 441000 Hz, stereo, s16p, bitrate: 96 kb/s Stream#0:1: Video: h264, none, 90k tbr, 180ktbc Can you please guide to what I'm doing wrong? Thanks. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffserver rtsp stream transmits only audio
On Tue, Jul 21, 2015 at 6:23 PM, Moritz Barsnick barsn...@gmx.net wrote: On Tue, Jul 21, 2015 at 18:18:17 -0400, En Figureo Canal wrote: problems with rtsp streaming with ffserver. [...] Format rtp Is RTP identical to RTSP? (I don't know - I'm asking.) When I use ffprobe I get the following, not showing any video info other than the codec: Stream #0:0: Audio: mp3, 441000 Hz, stereo, s16p, bitrate: 96 kb/s Stream#0:1: Video: h264, none, 90k tbr, 180ktbc Impossible, ffprobe should also show at least a banner. Can you please guide to what I'm doing wrong? Please show us the command line and complete, uncut console output of - your ffmpeg command, - your ffprobe command. Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user This is ffprobe output: ./bin/ffprobe rtsp://ip:/7654/live.h264 ffprobe version 2.5.4 Copyright (c) 2007-2015 the FFmpeg developers built on Jun 13 2015 22:34:19 with gcc 4.7 (Debian 4.7.2-5) configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --prefix=/root/ffmpeg/build --enable-libx265 --enable-nonfree libavutil 54. 15.100 / 54. 15.100 libavcodec 56. 13.100 / 56. 13.100 libavformat56. 15.102 / 56. 15.102 libavdevice56. 3.100 / 56. 3.100 libavfilter 5. 2.103 / 5. 2.103 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc53. 3.100 / 53. 3.100 [rtsp @ 0x397ec60] Could not find codec parameters for stream 1 (Video: h264, none): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, rtsp, from 'rtsp://ip:7654/live_500k.h264': Metadata: title : live Duration: N/A, start: 87715.219244, bitrate: 96 kb/s Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 96 kb/s Stream #0:1: Video: h264, none, 90k tbr, 90k tbn, 180k tbc Now this is ffserver output: ./bin/ffserver -d ffserver version 2.5.4 Copyright (c) 2000-2015 the FFmpeg developers built on Jun 13 2015 22:34:19 with gcc 4.7 (Debian 4.7.2-5) configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --prefix=/root/ffmpeg/build --enable-libx265 --enable-nonfree libavutil 54. 15.100 / 54. 15.100 libavcodec 56. 13.100 / 56. 13.100 libavformat56. 15.102 / 56. 15.102 libavdevice56. 3.100 / 56. 3.100 libavfilter 5. 2.103 / 5. 2.103 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc53. 3.100 / 53. 3.100 Tue Jul 21 22:25:11 2015 FFserver started. Tue Jul 21 22:25:11 2015 Launch command line: ./bin/ffmpeg -f concat -rtbufsize 8k -re -i /root/videos/list.txt http://127.0.0.1:8090/livechannel.ffm ffmpeg version 2.5.4 Copyright (c) 2000-2015 the FFmpeg developers built on Jun 13 2015 22:34:19 with gcc 4.7 (Debian 4.7.2-5) configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --prefix=/root/ffmpeg/build --enable-libx265 --enable-nonfree libavutil 54. 15.100 / 54. 15.100 libavcodec 56. 13.100 / 56. 13.100 libavformat56. 15.102 / 56. 15.102 libavdevice56. 3.100 / 56. 3.100 libavfilter 5. 2.103 / 5. 2.103 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc53. 3.100 / 53. 3.100 Input #0, concat, from '/root/videos/list.txt': Duration: N/A, start: 0.00, bitrate: 1474 kb/s Stream #0:0: Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 720x420 [SAR 28:27 DAR 16:9], 1346 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s Tue Jul 21 22:25:11 2015 127.0.0.1 - - New connection: GET /livechannel.ffm Tue Jul 21 22:25:11 2015 127.0.0.1 - - [GET] /livechannel.ffm HTTP/1.1 200 4175 Tue Jul 21 22:25:11 2015 127.0.0.1 - - New connection: POST /livechannel.ffm [libx264 @ 0x3251ac0] using SAR=28/27 [libx264 @ 0x3251ac0] using cpu capabilities
[FFmpeg-user] How can adaptive bit rate be done streaming with ffserver
Hello. Since I'm in the process of learning more and more about ffmpeg and ffserver for a future project I have planned, I have a question regarding streaming with adaptive bit rate using ffserver. I know (I think), that a feed can be streamed with different bit rates and sizes by specifying different streams encoded at different rates. But, is there a way to do automatically find out the user's BW and serve the correct stream according to it? I've heard about DASH but, haven't look into it and don't have any idea if is, or will be, supported by ffserver. Bandwidth, in my country is very expensive and Internet service is not good enough to stream high quality video. Please guide me to where I can get more info about my needs. Thanks in advanced for you time. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] Long delay during live streaming
Hello. Today I finally was able to send a feed from my pc's capture card to ffserver but, when i play the stream on either vlc or with ffplay, there's a long delay of about 3 minutes. Also, if I stop viewing it and play it again, then the stream starts from when I started uploading the feed. I MUST be doing something wrong, please guide me or point me to the right place where I can find a solution to the problem. I'm sending the feed from pc using ffmpeg: ffmpeg -rtbufsize 1500M -f dshow -i video=input:audio=input -vcodec libx264 -preset ultrafast -tune zerolatency http://ipaddress:8090/livefeed.ffm My ffserver configuration looks like this: Feed livefeed.ffm File /root/livefeed.ffm FileMaxSize 1000M /Feed Stream livetv.flv Feed livefeed.ffm Format flv VideoCodec libx264 VideoSize 320x188 AVOptionVideo maxrate 500k AVOptionVideo preset ultrafast AVOptionVideo bufsize 1000k AVOptionVideo flags +global_header AudioCodec libfdk_aac #libmp3lame AudioBitRate 96 AudioChannels 2 AudioSampleRate 44100 AVOptionAudio flags +global_header PreRoll 0 MaxTime 0 NoDefaults /Stream I'm just doing a test so I can learn more about ffmpeg and ffserver. Thanks in advanced for your time. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffmpeg extremely high consumption
On Thu, Jun 18, 2015 at 3:19 AM, Frans Gouverne frans...@gmail.com wrote: You need to specify option -re before the input file to read input as native frame rate. Otherwise ffmpeg will try to convert as fast as possible (neglecting the input frame rate), using as much as CPU power as it can get. As a result, you cannot view the output stream as well. So please use something like: ffmpeg -re -i video.mp4 [...] I have a test system with much less CPU resources as your system but my CPU power is not exceeding around 60%. But when I do not use option -re it goes up to 175%! Thanks Frans for replying but, I'm already doing that. The only thing I noticed used less power is using -preset ultrafast 2015-06-14 18:16 GMT+02:00 En Figureo Canal figureo56@gmail.com: On Sat, Jun 13, 2015 at 10:28 PM, Pavel Koshevoy pkoshe...@gmail.com wrote: On 6/13/15 17:49, En Figureo Canal wrote: On Sat, Jun 13, 2015 at 8:24 PM, Moritz Barsnick barsn...@gmx.net wrote: On Sat, Jun 13, 2015 at 19:17:51 -0400, En Figureo Canal wrote: Noticed that, after Henk's reply, if I use -vcodec copy then the output will copy the source video's attribute (-vb, size, etc...), but, if I really need to set the video rate (-vb) then I need to specify the codec needed to encode the new video. No, it does not copy the attributes (those are very had to duplicate), it copies the stream without reencoding. You wouldn't even need libx264 for that. http://ffmpeg.org/mailman/listinfo/ffmpeg-user I understand I don't need libx264 but, when I tried it like this: ffmpeg -i video.mp4 -vcodec copy -vb 1024k -f flv rtmp://ip/live/test the output rate was the original video rate at 4M But, if I do this: ffmpeg -i video.mp4 -vcodec libx264 -vb 1024k -f flv rtmp://ip/live/test the output rate is at 1M but video freezes. You either need a faster computer, or a hardware accelerated encoder (nvenc if you have compatible NVIDIA card), or you can use a less demanding libx264 preset -- veryfast might work, ultrafast is most likely to work. I believe the default is medium. The cheapest and quickest thing you can try is adding -preset ultrafast after libx264. If you don't like the quality try -preset veryfast. If that fails consider using nvenc. Also, see here -- https://trac.ffmpeg.org/wiki/EncodingForStreamingSites -- it appears to be relevant to what you are trying to do. Pavel. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user Pavel thanks for replying. I'm using ultrafast preset. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user -- Gouverne Web Design Colenso 125 3761GL Soest Tel: 035-6015569 Mobiel: 06-11408032 KvK: 32108255 ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffmpeg extremely high consumption
On Sat, Jun 13, 2015 at 10:28 PM, Pavel Koshevoy pkoshe...@gmail.com wrote: On 6/13/15 17:49, En Figureo Canal wrote: On Sat, Jun 13, 2015 at 8:24 PM, Moritz Barsnick barsn...@gmx.net wrote: On Sat, Jun 13, 2015 at 19:17:51 -0400, En Figureo Canal wrote: Noticed that, after Henk's reply, if I use -vcodec copy then the output will copy the source video's attribute (-vb, size, etc...), but, if I really need to set the video rate (-vb) then I need to specify the codec needed to encode the new video. No, it does not copy the attributes (those are very had to duplicate), it copies the stream without reencoding. You wouldn't even need libx264 for that. http://ffmpeg.org/mailman/listinfo/ffmpeg-user I understand I don't need libx264 but, when I tried it like this: ffmpeg -i video.mp4 -vcodec copy -vb 1024k -f flv rtmp://ip/live/test the output rate was the original video rate at 4M But, if I do this: ffmpeg -i video.mp4 -vcodec libx264 -vb 1024k -f flv rtmp://ip/live/test the output rate is at 1M but video freezes. You either need a faster computer, or a hardware accelerated encoder (nvenc if you have compatible NVIDIA card), or you can use a less demanding libx264 preset -- veryfast might work, ultrafast is most likely to work. I believe the default is medium. The cheapest and quickest thing you can try is adding -preset ultrafast after libx264. If you don't like the quality try -preset veryfast. If that fails consider using nvenc. Also, see here -- https://trac.ffmpeg.org/wiki/EncodingForStreamingSites -- it appears to be relevant to what you are trying to do. Pavel. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user Pavel thanks for replying. I'm using ultrafast preset. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] ffserver for live streaming guidance request
Hello everyone I now have another question, this time regarding ffserver. I'm currently testing a live stream from file and from a webcam (just for testing purposes). Trying to have different types of streams for different devices I created a feed thats going to be used as the source for all the streams I'm testing: Feed livechannel.ffm File /root/radio56.ffm FileMaxSize 200K /Feed Stream channel56.flv Feed livechannel.ffm Format flv VideoCodec libx264 VideoFrameRate 30 VideoBitRate 500 VideoSize 640x360 #AVOptionVideo crf 30 AVOptionVideo preset ultrafast VideoBufferSize 1 # for more info on crf/preset options, type: x264 --help AVOptionVideo flags +global_header AudioCodec libmp3lame AudioBitRate 96 AudioChannels 2 AudioSampleRate 44100 AVOptionAudio flags +global_header NoDefaults MaxTime 0 /Stream Stream channel56.sdp # Output stream URL definition Feed livechannel.ffm Format rtp # Audio settings AudioCodec libmp3lame AudioBitRate 96 AudioChannels 2 AudioSampleRate 44100 # Video settings VideoCodec libx264 VideoSize 560x320 # Video resolution VideoFrameRate 25 # Video FPS AVOptionVideo flags +global_header # Parameters passed to encoder # (same as ffmpeg command-line parameters) AVOptionVideo qmin 10 AVOptionVideo qmax 42 AVOptionAudio flags +global_header VideoBitRate 400# Video bitrate /Stream Stream audio56.mp3 Feed livechannel.ffm Format mp2 AudioBitRate 128 AudioChannels 2 AudioSampleRate 44100 AudioCodec libmp3lame MaxTime 0 NoVideo /Stream Now, when stream to the server like this: ffmpeg -re -i videos/masha-3.flv -vcodec libx264 -pix_fmt yuv422p -acodec libmp3lame -maxrate 600k -bufsize 600k http://ip:8090/livechannel.ffm I get this output: Output #0, ffm, to 'http://ip:8090/livechannel.ffm': Metadata: creation_time : now encoder : Lavf56.31.100 Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s32p, 96 kb/s Metadata: encoder : Lavc56.35.101 libmp3lame Stream #0:1: Video: h264 (libx264), yuv422p, 640x360, q=-1--1, 500 kb/s, 25 fps, 1000k tbn, 30 tbc Metadata: encoder : Lavc56.35.101 libx264 Stream #0:2: Video: h264 (libx264), yuv422p, 560x320, q=10-42, 400 kb/s, 25 fps, 1000k tbn, 25 tbc Metadata: encoder : Lavc56.35.101 libx264 Stream #0:3: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s32p, 128 kb/s Metadata: encoder : Lavc56.35.101 libmp3lame Stream mapping: Stream #0:1 - #0:0 (mp3 (native) - mp3 (libmp3lame)) Stream #0:0 - #0:1 (h264 (native) - h264 (libx264)) Stream #0:0 - #0:2 (h264 (native) - h264 (libx264)) Stream #0:1 - #0:3 (mp3 (native) - mp3 (libmp3lame)) Press [q] to stop, [?] for help frame= 37 fps=8.9 q=29.0 Lq=30.0 size= 184kB time=00:00:01.23 bitrate=1222.2kbits/s dup=18 drop=0 Noticed, this: Stream #0:1 - #0:0 (mp3 (native) - mp3 (libmp3lame)) Stream #0:0 - #0:1 (h264 (native) - h264 (libx264)) Stream #0:0 - #0:2 (h264 (native) - h264 (libx264)) Stream #0:1 - #0:3 (mp3 (native) - mp3 (libmp3lame)) After playing nginx rtmp I noticed it doesn't demand specifications like ffserver does for the feed, so I need to match the stream and feed with the same specs ? Does ffmpeg sends 4 different feeds for each stream I specified? Another question, how can I play the rtsp stream on a website? Thanks for your time and sorry if too many questions. Have a great day! ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffmpeg extremely high consumption
On Sat, Jun 13, 2015 at 8:24 PM, Moritz Barsnick barsn...@gmx.net wrote: On Sat, Jun 13, 2015 at 19:17:51 -0400, En Figureo Canal wrote: Noticed that, after Henk's reply, if I use -vcodec copy then the output will copy the source video's attribute (-vb, size, etc...), but, if I really need to set the video rate (-vb) then I need to specify the codec needed to encode the new video. No, it does not copy the attributes (those are very had to duplicate), it copies the stream without reencoding. You wouldn't even need libx264 for that. http://ffmpeg.org/mailman/listinfo/ffmpeg-user I understand I don't need libx264 but, when I tried it like this: ffmpeg -i video.mp4 -vcodec copy -vb 1024k -f flv rtmp://ip/live/test the output rate was the original video rate at 4M But, if I do this: ffmpeg -i video.mp4 -vcodec libx264 -vb 1024k -f flv rtmp://ip/live/test the output rate is at 1M but video freezes. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffmpeg extremely high consumption
Since I'm new to video and ffmpeg, I would like to know if something I noticed is correct. Please correct me if I'm wrong since I'm trying to learn about ffmpeg, encoding, etc for a project I started working on. Noticed that, after Henk's reply, if I use -vcodec copy then the output will copy the source video's attribute (-vb, size, etc...), but, if I really need to set the video rate (-vb) then I need to specify the codec needed to encode the new video. Since, internet bandwidth is an issue where I will be deploying the project, I'm forced to limit every video to about 2M max so, I have to specify the codec resulting that into high cpu usage. I upgraded to a newer x264 version and the difference in cpu stress isn't that much. Also, I don't know what type of video and the quality at 2mbps I'm going to have as output. Tried encoding a video originally with 4M rate changing it to 2M and the video freezes from time to time, don't know if is really the feed or the server itself. Thanks you guys, once again, for your time. On Sat, Jun 13, 2015 at 6:09 PM, En Figureo Canal figureo56@gmail.com wrote: Thanks Henk for your reply, I just learned something new with your post. Didn't know -crf would override -vb. I know the source video was encoded with x264 but, had other videos in different format. But, is great to know that tip before feeding videos. Thanks a lot. On Sat, Jun 13, 2015 at 10:04 AM, Henk D. Schoneveld belca...@zonnet.nl wrote: On 13 Jun 2015, at 15:42, En Figureo Canal figureo56@gmail.com wrote: On Sat, Jun 13, 2015 at 8:08 AM, Moritz Barsnick barsn...@gmx.net wrote: Hi En, On Fri, Jun 12, 2015 at 14:23:24 -0400, En Figureo Canal wrote: Now, what other options are there using libx264, if any? Well, have you read my email? Why do I go to the trouble of writing those things if you don't engage with it. E.g.: If you showed us the complete, uncut output, we could see what the specs of your streams are and whether something is wrong. This way, without more info, we don't even know which resolution your material has. Have you shown us your uncut console output? And: - use a different preset (e.g. -preset fast) and experiment with both. You could even copy the input stream, if its specs are sufficient. That reduces CPU significantly. Have you tried these things? What have you experimented? If the fast preset doesn't suffice, try ultrafast. Honestly, there can be a large CPU difference. (I have achieved 3x from faster to ultrafast with SD TV material.) Another thing: Is your libx264 and ffmpeg compiled with proper yasm support? Moritz A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user Thank you Moritz Barsnick for replying again and taking your time to help me out with my problem. I do read your emails, if I'm top posting please pardon me. Gmail input is what might be top posting. I experimented using ultrafast and indeed lowered the cpu stress to 50% which is a great improvement this is how I run the command: ffmpeg -re -i /video.mp4 -vcodec libx264 -s 640x360 -vb 1024k -crf 23 -preset ultrafast -pix_fmt yuv420p -maxrate 1256k -bufsize 1256k -ab 96k -f flv rtmp://ip/live/test And this is the output: ffmpeg version 2.5.4 Copyright (c) 2000-2015 the FFmpeg developers built on Apr 27 2015 21:49:23 with gcc 4.7 (Debian 4.7.2-5) configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree libavutil 54. 15.100 / 54. 15.100 libavcodec 56. 13.100 / 56. 13.100 libavformat56. 15.102 / 56. 15.102 libavdevice56. 3.100 / 56. 3.100 libavfilter 5. 2.103 / 5. 2.103 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc53. 3.100 / 53. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/video.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 creation_time : 2015-03-03 16:28:42 Duration: 01:41:30.90, start: 0.00, bitrate: 712 kb/s Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 638 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default) If you look at the line above you see that your source already is h264, and the bitrate being 712kb/s. So
Re: [FFmpeg-user] ffmpeg extremely high consumption
On Sat, Jun 13, 2015 at 8:08 AM, Moritz Barsnick barsn...@gmx.net wrote: Hi En, On Fri, Jun 12, 2015 at 14:23:24 -0400, En Figureo Canal wrote: Now, what other options are there using libx264, if any? Well, have you read my email? Why do I go to the trouble of writing those things if you don't engage with it. E.g.: If you showed us the complete, uncut output, we could see what the specs of your streams are and whether something is wrong. This way, without more info, we don't even know which resolution your material has. Have you shown us your uncut console output? And: - use a different preset (e.g. -preset fast) and experiment with both. You could even copy the input stream, if its specs are sufficient. That reduces CPU significantly. Have you tried these things? What have you experimented? If the fast preset doesn't suffice, try ultrafast. Honestly, there can be a large CPU difference. (I have achieved 3x from faster to ultrafast with SD TV material.) Another thing: Is your libx264 and ffmpeg compiled with proper yasm support? Moritz A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user Thank you Moritz Barsnick for replying again and taking your time to help me out with my problem. I do read your emails, if I'm top posting please pardon me. Gmail input is what might be top posting. I experimented using ultrafast and indeed lowered the cpu stress to 50% which is a great improvement this is how I run the command: ffmpeg -re -i /video.mp4 -vcodec libx264 -s 640x360 -vb 1024k -crf 23 -preset ultrafast -pix_fmt yuv420p -maxrate 1256k -bufsize 1256k -ab 96k -f flv rtmp://ip/live/test And this is the output: ffmpeg version 2.5.4 Copyright (c) 2000-2015 the FFmpeg developers built on Apr 27 2015 21:49:23 with gcc 4.7 (Debian 4.7.2-5) configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree libavutil 54. 15.100 / 54. 15.100 libavcodec 56. 13.100 / 56. 13.100 libavformat56. 15.102 / 56. 15.102 libavdevice56. 3.100 / 56. 3.100 libavfilter 5. 2.103 / 5. 2.103 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc53. 3.100 / 53. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/video.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 creation_time : 2015-03-03 16:28:42 Duration: 01:41:30.90, start: 0.00, bitrate: 712 kb/s Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 638 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default) Metadata: handler_name: VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 72 kb/s (default) Metadata: creation_time : 2015-03-03 16:29:33 handler_name: IsoMedia File Produced by Google, 5-11-2011 [libx264 @ 0x255e260] using SAR=1/1 [libx264 @ 0x255e260] using cpu capabilities: MMX2 SSE2Slow SlowCTZ [libx264 @ 0x255e260] profile Constrained Baseline, level 3.0 [libx264 @ 0x255e260] 264 - core 123 r2189 35cf912 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc_lookahead=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1256 vbv_bufsize=1256 crf_max=0.0 nal_hrd=none ip_ratio=1.40 aq=0 Output #0, flv, to 'rtmp://69.64.49.252/live/test': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 encoder : Lavf56.15.102 Stream #0:0(und): Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=-1--1, 1024 kb/s, 29.97 fps, 1k tbn, 29.97 tbc (default) Metadata: handler_name: VideoHandler encoder : Lavc56.13.100 libx264 Stream #0:1(und): Audio: mp3 (libmp3lame) ([2][0][0][0] / 0x0002), 44100 Hz, mono, fltp, 96 kb/s (default) Metadata: creation_time : 2015-03-03 16:29:33 handler_name: IsoMedia File Produced by Google, 5
Re: [FFmpeg-user] ffmpeg extremely high consumption
I've noticed that the cpu goes wild when I use libx264, it doesn't matter if I reduce the quality ( -crf 30 ). If I don't use it, then the cpu stress stays at around 90-98%. Now, the video quality can't be compared. the libx264 compression is great but the stream freezes while playing but, the without it is not even worth viewing. Now, what other options are there using libx264, if any? Thanks for replying. On Fri, Jun 12, 2015 at 1:17 PM, Moritz Barsnick barsn...@gmx.net wrote: On Fri, Jun 12, 2015 at 11:56:04 -0400, En Figureo Canal wrote: This is the command I'm using to send the stream to nginx: ffmpeg -re -i video.mp4 -vcodec libx264 -crf 23 -preset medium -pix_fmt yuv420p -f flv rtmp://ip/live/test (BTW, -crf 23 -preset is default for libx264. Not that it matters.) If you showed us the complete, uncut output, we could see what the specs of your streams are and whether something is wrong. This way, without more info, we don't even know which resolution your material has. Can someone please let me know why such a high cpu consumption Show us the output, please. or if there is another way of doing such stream with less stress on cpu. Yes, you can leverage conversion speed (CPU) vs. video size (stream bandwidth) vs. quality. You could: - reduce quality (e.g. -crf 25) and/or resolution - use a different preset (e.g. -preset fast) and experiment with both. You could even copy the input stream, if its specs are sufficient. That reduces CPU significantly. Cheers, Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] No luck with live stream from ffmpeg to ffserver
Once again, decided to give ffserver a try but, again it crashed: kernel: [7169843.523862] ffserver[24324] general protection ip:7fa6247bf777 sp:7fffa7b4b5a0 error:0 in libc-2.13.so[7fa624746000+182000] On Thu, May 7, 2015 at 10:08 PM, Reuben Martin reube...@gmail.com wrote: On Saturday, May 02, 2015 06:50:25 PM En Figureo Canal wrote: I haven’t had much luck deploying ffserver, nothing works out for me streaming live from ffmpeg to ffserver. Had different problems, I don’t know if my configuration is correct but, can’t really get ffsever to do what I need and things are just frustrating me. Quite using ffserver. It’s an arcane piece of junk that is not well maintained. If you wanting to stream meetings over your LAN you don’t need a central server. You can send it multicast with RTP. Example: ffmpeg -re -i sourceFile.ext -pix_fmt yuv420p -c:v libx264 -crf 20 -g 30 - trellis 2 -profile:v high -c:a libfdk_aac -vbr 4 -ac 2 -ar 48000 -f sap sap://224.2.128.0?same_port=1 Change sourceFile.ext to whatever your source file is. (Or to whatever capture source you are using.) To view the stream, open VLC and in the playlist window pane on the side under “Local Network” is an entry for “Network Streams (SAP)”. Click that and any RTP streams advertised via SAP on your network will populate the playlist after a few seconds. Click on the one you want. (Likely your stream will be the only one listed but you never know.) **Note: your network admin better have IGMP snooping correctly configured or your multicast turns into a broadcast. -Reuben ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] No luck with live stream from ffmpeg to ffserver
: */* Connection: close Host: 172.16.0.3:8090 Icy-MetaData: 1 Successfully opened the file. [mpegts @ 0xae864c0] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts Output #0, mpegts, to 'http://172.16.0.3:8090/channel2.ffm': Metadata: major_brand : M4V minor_version : 1 compatible_brands: M4V mp42isom encoder : Lavf56.31.100 Stream #0:0(eng), 0, 1/9: Video: h264, 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1280x720 (0x0) [SAR 1:1 DAR 16:9], 1001/24000, q=2-31, 3994 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc (default) Metadata: creation_time : 2014-05-01 02:41:00 handler_name: Mainconcept MP4 Video Media Handler encoder : AVC Coding Stream #0:1(eng), 0, 1/9: Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, 157 kb/s (default) Metadata: creation_time : 2014-05-01 02:41:00 handler_name: Mainconcept MP4 Sound Media Handler Stream mapping: Stream #0:0 - #0:0 (copy) Stream #0:1 - #0:1 (copy) Press [q] to stop, [?] for help av_interleaved_write_frame(): Connection reset by peer No more output streams to write to, finishing. frame= 10 fps=0.0 q=-1.0 Lsize= 165kB time=00:00:00.41 bitrate=3238.1kbits/s video:305kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (videos/david-diaz.mp4): Input stream #0:0 (video): 10 packets read (312519 bytes); Input stream #0:1 (audio): 1 packets read (420 bytes); Total: 11 packets (312939 bytes) demuxed Output file #0 (http://172.16.0.3:8090/channel2.ffm): Output stream #0:0 (video): 10 packets muxed (312555 bytes); Output stream #0:1 (audio): 1 packets muxed (420 bytes); Total: 11 packets (312975 bytes) muxed 0 frames successfully decoded, 0 decoding errors [AVIOContext @ 0xb06bf20] Statistics: 0 seeks, 7 writeouts [AVIOContext @ 0xacc1f60] Statistics: 373112 bytes read, 0 seeks Conversion failed! Thanks again for replying. On Mon, May 4, 2015 at 3:09 AM, W Jansen widojan...@gmail.com wrote: On Sun, May 3, 2015 at 9:47 PM, En Figureo Canal figureo56@gmail.com wrote: Can someone please guide me to get this working. I can easily stream to rtmp server: ustream and even nginx but can't really feed ffserver and get av_interleaved_write_frame(): Unknown error and have run out of patience trying to get this working. I'll really appreciate if someone can please help me out with this problem. Thanks in advanced for your time. On Sat, May 2, 2015 at 6:50 PM, En Figureo Canal figureo56@gmail.com wrote: I haven’t had much luck deploying ffserver, nothing works out for me streaming live from ffmpeg to ffserver. Had different problems, I don’t know if my configuration is correct but, can’t really get ffsever to do what I need and things are just frustrating me. The last error message I’m getting is av_interleaved_write_frame(): Unknown error along with Past duration too large. I’ve read somewhere saying that it might be incompatible versions of ffmpeg, which I found odd and stupid. I believed ffmpeg should work with any current version. First, I’m trying to do a live stream using a capture card I’ve installed and/or using VidBlaster but, haven’t been able. Audio can be done easily but not Video. Here’s my ffmpeg conf: Feed channel2.ffm File /root/channel2.ffm FileMaxSize 64M /Feed Stream channel2.sdp Feed channel2.ffm Format rtp VideoCodec libx264 # VideoFrameRate 30 # VideoSize 640x360 VideoBitRate 1000 # Audio settings AudioCodec libmp3lame #libfdk_aac AudioSampleRate 41000 AudioBitRate 96 AudioChannels 2 #this is creating problem # AVOptionAudio flags +global_header MaxTime 0 AVOptionVideo me_range 16 AVOptionVideo qdiff 4 AVOptionVideo qmin 4 AVOptionVideo qmax 40 #AVOptionVideo good # AVOptionVideo flags +global_header # Streaming settings PreRoll 10 StartSendOnKey NoDefaults /Stream When I send the feed to the server I get the previous mentioned error. What exactly am I doing wrong? I’ve tried different combinations to send the feed but nothing works, this is the last conf to send to the server: Ffmpeg –re –rtbufsize 1500M –f dshow –I video=”input”:audio=”input” –acodec libmp3lame –ar 44100 –ab 96k –vcodec libx264 –f flv http://ip:8090/channel2.ffm I've even tried feeding a video from my pc to the server, and still no luck. Please guide me to the correct path to get this working, thanks. ___ ffmpeg
Re: [FFmpeg-user] No luck with live stream from ffmpeg to ffserver
W Jansen. Definitely, I get the same problem with any file even capturing video from capture card. But, here's the link to the file so you can download it and test: http://www.figureo56.com/images/david-diaz.mp4 I first tested with files in case that worked I would proceed to live stream with capture video. Thanks a lot for taking time to help me out on this. I really appreciate it. On Mon, May 4, 2015 at 10:44 AM, W Jansen widojan...@gmail.com wrote: On Mon, May 4, 2015 at 3:32 PM, En Figureo Canal figureo56@gmail.com wrote: Thanks W Jansen for replying. I've done what you requested, I would like to do a live stream from my pc to our network. My PC has a video capture card and would like to send the feed to a server in our LAN so, others can watch certain videos during a seminar. I started with a simple configuration and still can't get it to work. Here's the output of the command you requested, I'm still lost. root@optimum-pbx:~# ./bin/ffmpeg -v debug -i videos/david-diaz.mp4 -vcodec copy -bsf:v h264_mp4toannexb -acodec copy -override_ffserver -f mpegts http://172.16.0.3:8090/channel2.ffm ffmpeg version 2.6.git Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.7 (Debian 4.7.2-5) configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree libavutil 54. 23.101 / 54. 23.101 libavcodec 56. 35.101 / 56. 35.101 libavformat56. 31.100 / 56. 31.100 libavdevice56. 4.100 / 56. 4.100 libavfilter 5. 14.100 / 5. 14.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc53. 3.100 / 53. 3.100 Splitting the commandline. Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'. Reading option '-i' ... matched as input file with argument 'videos/david-diaz.mp4'. Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'copy'. Reading option '-bsf:v' ... matched as option 'bsf' (A comma-separated list of bitstream filters) with argument 'h264_mp4toannexb'. Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'copy'. Reading option '-override_ffserver' ... matched as option 'override_ffserver' (override the options from ffserver) with argument '1'. Reading option '-f' ... matched as option 'f' (force format) with argument 'mpegts'. Reading option 'http://172.16.0.3:8090/channel2.ffm' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option v (set logging level) with argument debug. Applying option override_ffserver (override the options from ffserver) with argument 1. Successfully parsed a group of options. Parsing a group of options: input file videos/david-diaz.mp4. Successfully parsed a group of options. Opening an input file: videos/david-diaz.mp4. [mov,mp4,m4a,3gp,3g2,mj2 @ 0xacb99c0] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0xacb99c0] ISO: File Type Major Brand: M4V [mov,mp4,m4a,3gp,3g2,mj2 @ 0xacb99c0] Before avformat_find_stream_info() pos: 53738 bytes read:65536 seeks:0 [mov,mp4,m4a,3gp,3g2,mj2 @ 0xacb99c0] All info found [mov,mp4,m4a,3gp,3g2,mj2 @ 0xacb99c0] After avformat_find_stream_info() pos: 366677 bytes read:373112 seeks:0 frames:11 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'videos/david-diaz.mp4': Metadata: major_brand : M4V minor_version : 1 compatible_brands: M4V mp42isom creation_time : 2014-05-01 02:41:00 Duration: 00:02:08.38, start: 0.00, bitrate: 4153 kb/s Stream #0:0(eng), 10, 1/24000: Video: h264 (Baseline), 2 reference frames (avc1 / 0x31637661), yuv420p(tv, left), 1280x720 [SAR 1:1 DAR 16:9], 1001/48000, 3994 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default) Metadata: creation_time : 2014-05-01 02:41:00 handler_name: Mainconcept MP4 Video Media Handler encoder : AVC Coding Stream #0:1(eng), 1, 1/48000: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 157 kb/s (default) Metadata: creation_time : 2014-05-01 02:41:00 handler_name: Mainconcept MP4 Sound Media Handler Successfully opened the file
Re: [FFmpeg-user] No luck with live stream from ffmpeg to ffserver
One more thing, what are the things or configurations I need to focus on before creating or sending a feed to ffserver, because I'm totally lost after the config line W Jansen posted. I've read many documentation but, I'm still puzzled. Where, other than the ffmpeg doc, can I study to become better at this ffmpeg and ffserver thing.? On Mon, May 4, 2015 at 3:44 PM, En Figureo Canal figureo56@gmail.com wrote: I have different mp4 files that seem not to work. I even tried converting it to flv but no luck but, how come does it work if feeding ustream or any other rtmp server? So, will that format work on all devices? Since, I would need to be display on different devices at a max rate of 1024kb/s . That's for a file input but, capturing from a device doesn't work, I'll experiment using ts format and see if it will work. Thanks a lot. On Mon, May 4, 2015 at 2:49 PM, W Jansen widojan...@gmail.com wrote: On Mon, May 4, 2015 at 7:15 PM, En Figureo Canal figureo56@gmail.com wrote: W Jansen. Definitely, I get the same problem with any file even capturing video from capture card. But, here's the link to the file so you can download it and test: http://www.figureo56.com/images/david-diaz.mp4 I first tested with files in case that worked I would proceed to live stream with capture video. Thanks a lot for taking time to help me out on this. I really appreciate it. On Mon, May 4, 2015 at 10:44 AM, W Jansen widojan...@gmail.com wrote: On Mon, May 4, 2015 at 3:32 PM, En Figureo Canal figureo56@gmail.com wrote: Thanks W Jansen for replying. I've done what you requested, I would like to do a live stream from my pc to our network. My PC has a video capture card and would like to send the feed to a server in our LAN so, others can watch certain videos during a seminar. I started with a simple configuration and still can't get it to work. Here's the output of the command you requested, I'm still lost. root@optimum-pbx:~# ./bin/ffmpeg -v debug -i videos/david-diaz.mp4 -vcodec copy -bsf:v h264_mp4toannexb -acodec copy -override_ffserver -f mpegts http://172.16.0.3:8090/channel2.ffm ffmpeg version 2.6.git Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.7 (Debian 4.7.2-5) configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree libavutil 54. 23.101 / 54. 23.101 libavcodec 56. 35.101 / 56. 35.101 libavformat56. 31.100 / 56. 31.100 libavdevice56. 4.100 / 56. 4.100 libavfilter 5. 14.100 / 5. 14.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc53. 3.100 / 53. 3.100 Splitting the commandline. Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'. Reading option '-i' ... matched as input file with argument 'videos/david-diaz.mp4'. Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'copy'. Reading option '-bsf:v' ... matched as option 'bsf' (A comma-separated list of bitstream filters) with argument 'h264_mp4toannexb'. Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'copy'. Reading option '-override_ffserver' ... matched as option 'override_ffserver' (override the options from ffserver) with argument '1'. Reading option '-f' ... matched as option 'f' (force format) with argument 'mpegts'. Reading option 'http://172.16.0.3:8090/channel2.ffm' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option v (set logging level) with argument debug. Applying option override_ffserver (override the options from ffserver) with argument 1. Successfully parsed a group of options. Parsing a group of options: input file videos/david-diaz.mp4. Successfully parsed a group of options. Opening an input file: videos/david-diaz.mp4. [mov,mp4,m4a,3gp,3g2,mj2 @ 0xacb99c0] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0xacb99c0] ISO: File Type Major Brand: M4V [mov,mp4,m4a,3gp,3g2,mj2 @ 0xacb99c0
Re: [FFmpeg-user] No luck with live stream from ffmpeg to ffserver
I have different mp4 files that seem not to work. I even tried converting it to flv but no luck but, how come does it work if feeding ustream or any other rtmp server? So, will that format work on all devices? Since, I would need to be display on different devices at a max rate of 1024kb/s . That's for a file input but, capturing from a device doesn't work, I'll experiment using ts format and see if it will work. Thanks a lot. On Mon, May 4, 2015 at 2:49 PM, W Jansen widojan...@gmail.com wrote: On Mon, May 4, 2015 at 7:15 PM, En Figureo Canal figureo56@gmail.com wrote: W Jansen. Definitely, I get the same problem with any file even capturing video from capture card. But, here's the link to the file so you can download it and test: http://www.figureo56.com/images/david-diaz.mp4 I first tested with files in case that worked I would proceed to live stream with capture video. Thanks a lot for taking time to help me out on this. I really appreciate it. On Mon, May 4, 2015 at 10:44 AM, W Jansen widojan...@gmail.com wrote: On Mon, May 4, 2015 at 3:32 PM, En Figureo Canal figureo56@gmail.com wrote: Thanks W Jansen for replying. I've done what you requested, I would like to do a live stream from my pc to our network. My PC has a video capture card and would like to send the feed to a server in our LAN so, others can watch certain videos during a seminar. I started with a simple configuration and still can't get it to work. Here's the output of the command you requested, I'm still lost. root@optimum-pbx:~# ./bin/ffmpeg -v debug -i videos/david-diaz.mp4 -vcodec copy -bsf:v h264_mp4toannexb -acodec copy -override_ffserver -f mpegts http://172.16.0.3:8090/channel2.ffm ffmpeg version 2.6.git Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.7 (Debian 4.7.2-5) configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree libavutil 54. 23.101 / 54. 23.101 libavcodec 56. 35.101 / 56. 35.101 libavformat56. 31.100 / 56. 31.100 libavdevice56. 4.100 / 56. 4.100 libavfilter 5. 14.100 / 5. 14.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc53. 3.100 / 53. 3.100 Splitting the commandline. Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'. Reading option '-i' ... matched as input file with argument 'videos/david-diaz.mp4'. Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'copy'. Reading option '-bsf:v' ... matched as option 'bsf' (A comma-separated list of bitstream filters) with argument 'h264_mp4toannexb'. Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'copy'. Reading option '-override_ffserver' ... matched as option 'override_ffserver' (override the options from ffserver) with argument '1'. Reading option '-f' ... matched as option 'f' (force format) with argument 'mpegts'. Reading option 'http://172.16.0.3:8090/channel2.ffm' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option v (set logging level) with argument debug. Applying option override_ffserver (override the options from ffserver) with argument 1. Successfully parsed a group of options. Parsing a group of options: input file videos/david-diaz.mp4. Successfully parsed a group of options. Opening an input file: videos/david-diaz.mp4. [mov,mp4,m4a,3gp,3g2,mj2 @ 0xacb99c0] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0xacb99c0] ISO: File Type Major Brand: M4V [mov,mp4,m4a,3gp,3g2,mj2 @ 0xacb99c0] Before avformat_find_stream_info() pos: 53738 bytes read:65536 seeks:0 [mov,mp4,m4a,3gp,3g2,mj2 @ 0xacb99c0] All info found [mov,mp4,m4a,3gp,3g2,mj2 @ 0xacb99c0] After avformat_find_stream_info() pos: 366677 bytes read:373112 seeks:0 frames:11 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'videos/david-diaz.mp4': Metadata: major_brand : M4V
Re: [FFmpeg-user] No luck with live stream from ffmpeg to ffserver
Can someone please guide me to get this working. I can easily stream to rtmp server: ustream and even nginx but can't really feed ffserver and get av_interleaved_write_frame(): Unknown error and have run out of patience trying to get this working. I'll really appreciate if someone can please help me out with this problem. Thanks in advanced for your time. On Sat, May 2, 2015 at 6:50 PM, En Figureo Canal figureo56@gmail.com wrote: I haven’t had much luck deploying ffserver, nothing works out for me streaming live from ffmpeg to ffserver. Had different problems, I don’t know if my configuration is correct but, can’t really get ffsever to do what I need and things are just frustrating me. The last error message I’m getting is av_interleaved_write_frame(): Unknown error along with Past duration too large. I’ve read somewhere saying that it might be incompatible versions of ffmpeg, which I found odd and stupid. I believed ffmpeg should work with any current version. First, I’m trying to do a live stream using a capture card I’ve installed and/or using VidBlaster but, haven’t been able. Audio can be done easily but not Video. Here’s my ffmpeg conf: Feed channel2.ffm File /root/channel2.ffm FileMaxSize 64M /Feed Stream channel2.sdp Feed channel2.ffm Format rtp VideoCodec libx264 # VideoFrameRate 30 # VideoSize 640x360 VideoBitRate 1000 # Audio settings AudioCodec libmp3lame #libfdk_aac AudioSampleRate 41000 AudioBitRate 96 AudioChannels 2 #this is creating problem # AVOptionAudio flags +global_header MaxTime 0 AVOptionVideo me_range 16 AVOptionVideo qdiff 4 AVOptionVideo qmin 4 AVOptionVideo qmax 40 #AVOptionVideo good # AVOptionVideo flags +global_header # Streaming settings PreRoll 10 StartSendOnKey NoDefaults /Stream When I send the feed to the server I get the previous mentioned error. What exactly am I doing wrong? I’ve tried different combinations to send the feed but nothing works, this is the last conf to send to the server: Ffmpeg –re –rtbufsize 1500M –f dshow –I video=”input”:audio=”input” –acodec libmp3lame –ar 44100 –ab 96k –vcodec libx264 –f flv http://ip:8090/channel2.ffm I've even tried feeding a video from my pc to the server, and still no luck. Please guide me to the correct path to get this working, thanks. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] No luck with live stream from ffmpeg to ffserver
I haven’t had much luck deploying ffserver, nothing works out for me streaming live from ffmpeg to ffserver. Had different problems, I don’t know if my configuration is correct but, can’t really get ffsever to do what I need and things are just frustrating me. The last error message I’m getting is av_interleaved_write_frame(): Unknown error along with Past duration too large. I’ve read somewhere saying that it might be incompatible versions of ffmpeg, which I found odd and stupid. I believed ffmpeg should work with any current version. First, I’m trying to do a live stream using a capture card I’ve installed and/or using VidBlaster but, haven’t been able. Audio can be done easily but not Video. Here’s my ffmpeg conf: Feed channel2.ffm File /root/channel2.ffm FileMaxSize 64M /Feed Stream channel2.sdp Feed channel2.ffm Format rtp VideoCodec libx264 # VideoFrameRate 30 # VideoSize 640x360 VideoBitRate 1000 # Audio settings AudioCodec libmp3lame #libfdk_aac AudioSampleRate 41000 AudioBitRate 96 AudioChannels 2 #this is creating problem # AVOptionAudio flags +global_header MaxTime 0 AVOptionVideo me_range 16 AVOptionVideo qdiff 4 AVOptionVideo qmin 4 AVOptionVideo qmax 40 #AVOptionVideo good # AVOptionVideo flags +global_header # Streaming settings PreRoll 10 StartSendOnKey NoDefaults /Stream When I send the feed to the server I get the previous mentioned error. What exactly am I doing wrong? I’ve tried different combinations to send the feed but nothing works, this is the last conf to send to the server: Ffmpeg –re –rtbufsize 1500M –f dshow –I video=”input”:audio=”input” –acodec libmp3lame –ar 44100 –ab 96k –vcodec libx264 –f flv http://ip:8090/channel2.ffm I've even tried feeding a video from my pc to the server, and still no luck. Please guide me to the correct path to get this working, thanks. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffserver crashes from time to time
As stated on a previous post, I'm feeding the server from my home pc like this: ffmpeg –rtbufsize 1500M –f show audio=”input” –vn –acodec libmp3lame –ab 128k –abufsize 256k http://ffserverip:8090/feedname.ffm Feed radio56.ffm File /root/radio56.ffm FileMaxSize 200K /Feed Stream radio56.sdp Feed radio56.ffm Format rtp AudioBitRate 128 AudioChannels 2 AudioSampleRate 44100 AudioCodec libmp3lame NoVideo /Stream I'm listening to the stream on iPhone running MDC Live Media Player. Sometimes if I close the app while receiving the stream causes the server to crash. This time I had to do it several time but, it crashed it. It looks like something just kills the process some how and it just locks me out. I'm not feeding a file is just the audio from my pc. On Wed, Apr 29, 2015 at 4:37 AM, Moritz Barsnick barsn...@gmx.net wrote: On Tue, Apr 28, 2015 at 20:50:16 -0400, En Figureo Canal wrote: No clue on this problem? A crash in ffserver is a serious problem, assuming it isn't caused by other code (external library). It usually shouldn't happen. But without you recompiling ffmpeg and running ffserver_g in gdb, there is next to nothing anyone can do to identify the problem. You could give us the exact file you're feeding to ffserver, the exact config, and tell us (once more) exactly what you did with the client to cause the crash. We _could_ try to reproduce, but it's probably not feasible. Debugging on your end would be much more efficient. Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffserver crashes from time to time
Hello. No clue on this problem? Anyone? On Mon, Apr 27, 2015 at 7:00 PM, En Figureo Canal figureo56@gmail.com wrote: I can't find any log at all of what really happened, but this is how the crash occurs: As stated on a previous post, I'm feeding the server from my home pc like this: ffmpeg –rtbufsize 1500M –f show audio=”input” –vn –acodec libmp3lame –ab 128k –abufsize 256k http://ffserverip:8090/feedname.ffm Feed radio56.ffm File /root/radio56.ffm FileMaxSize 200K /Feed Stream radio56.sdp Feed radio56.ffm Format rtp AudioBitRate 128 AudioChannels 2 AudioSampleRate 44100 AudioCodec libmp3lame NoVideo /Stream I'm listening to the stream on iPhone running MDC Live Media Player. Sometimes if I close the app while receiving the stream causes the server to crash. This time I had to do it several time but, it crashed it. On Mon, Apr 27, 2015 at 6:39 PM, En Figureo Canal figureo56@gmail.com wrote: Once again I was able to recreate the crash but it just locks out on me, no output NOTHING. It looks like something just kills the process some how. Is there a log file where I can now get the output of what just happened? On Mon, Apr 27, 2015 at 6:11 PM, En Figureo Canal figureo56@gmail.com wrote: Just recompiled an reinstalled. Would be testing now... On Mon, Apr 27, 2015 at 5:14 PM, En Figureo Canal figureo56@gmail.com wrote: Is not there, could it be that I issued a make distclean I installed two severs, one locally and the other remote and in neither ffserver_g appears. On Mon, Apr 27, 2015 at 5:06 PM, Moritz Barsnick barsn...@gmx.net wrote: On Mon, Apr 27, 2015 at 16:51:48 -0400, En Figureo Canal wrote: ./ffserver_g: No such file or directory. Starting program: -f /etc/ffserver No executable file specified. Use the file or exec-file command. I even searched for ffserver_g and is NOT found It should be in the directory where you were in when you called make install. Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffserver crashes from time to time
Looked in var/messages and saw this: kernel: [6031675.912677] ffserver[31114]: segfault at 5c ip 00553de0 sp 7fff0e640210 error 4 in ffserver[40+f07000] On Mon, Apr 27, 2015 at 3:27 PM, En Figureo Canal figureo56@gmail.com wrote: ffserver crashed again. I’m connected via ssh to the server and this time I had two windows opened: one running ffserver with gdb and another one just to monitor. I was feeding the server from my home pc with ffmpeg like this: Ffmpeg –rtbufsize 1500M –f show audio=”input” –vn –acodec libmp3lame –ab 128k –abufsize 256k http://ffserverip:8090/feedname.ffm I had three clients connected via rtsp, one with vlc, another one with a rtsp player, and another one with another player on iPhone. When I closed the app on the iphone the server just crashed without any message and locking the ssh ffserver window and no output but, the other window still worked. Now, how can I get the trace to send it to the list? Here’s an image of the ffmpeg on my pc: http://www.figureo56.com/images/ffmpeg-error-48.jpg ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffserver crashes from time to time
./ffserver_g: No such file or directory. Starting program: -f /etc/ffserver No executable file specified. Use the file or exec-file command. I even searched for ffserver_g and is NOT found On Mon, Apr 27, 2015 at 4:38 PM, Moritz Barsnick barsn...@gmx.net wrote: Hi En, On Mon, Apr 27, 2015 at 14:14:50 -0400, En Figureo Canal wrote: Can't seem to star ffserver that way. I intalled it using source. Usually I start ffserver like this: /usr/local/fmpeg/ffserver -f /etc/ffserver.conf Then go to your (uninstalled) source directory, and call $ gdb -ex r --args ./ffserver_g -f /etc/ffserver.conf This launches your ffserver(_g) with gdb. Once it crashes, you will get a prompt within gdb. Type: $ thread apply all bt full We need the complete output. :-) And please don't make screenshots, but rather copy the text from the console and paste it here. Thanks, Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffserver crashes from time to time
Is not there, could it be that I issued a make distclean I installed two severs, one locally and the other remote and in neither ffserver_g appears. On Mon, Apr 27, 2015 at 5:06 PM, Moritz Barsnick barsn...@gmx.net wrote: On Mon, Apr 27, 2015 at 16:51:48 -0400, En Figureo Canal wrote: ./ffserver_g: No such file or directory. Starting program: -f /etc/ffserver No executable file specified. Use the file or exec-file command. I even searched for ffserver_g and is NOT found It should be in the directory where you were in when you called make install. Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffserver crashes from time to time
Just recompiled an reinstalled. Would be testing now... On Mon, Apr 27, 2015 at 5:14 PM, En Figureo Canal figureo56@gmail.com wrote: Is not there, could it be that I issued a make distclean I installed two severs, one locally and the other remote and in neither ffserver_g appears. On Mon, Apr 27, 2015 at 5:06 PM, Moritz Barsnick barsn...@gmx.net wrote: On Mon, Apr 27, 2015 at 16:51:48 -0400, En Figureo Canal wrote: ./ffserver_g: No such file or directory. Starting program: -f /etc/ffserver No executable file specified. Use the file or exec-file command. I even searched for ffserver_g and is NOT found It should be in the directory where you were in when you called make install. Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffserver crashes from time to time
I can't find any log at all of what really happened, but this is how the crash occurs: As stated on a previous post, I'm feeding the server from my home pc like this: ffmpeg –rtbufsize 1500M –f show audio=”input” –vn –acodec libmp3lame –ab 128k –abufsize 256k http://ffserverip:8090/feedname.ffm Feed radio56.ffm File /root/radio56.ffm FileMaxSize 200K /Feed Stream radio56.sdp Feed radio56.ffm Format rtp AudioBitRate 128 AudioChannels 2 AudioSampleRate 44100 AudioCodec libmp3lame NoVideo /Stream I'm listening to the stream on iPhone running MDC Live Media Player. Sometimes if I close the app while receiving the stream causes the server to crash. This time I had to do it several time but, it crashed it. On Mon, Apr 27, 2015 at 6:39 PM, En Figureo Canal figureo56@gmail.com wrote: Once again I was able to recreate the crash but it just locks out on me, no output NOTHING. It looks like something just kills the process some how. Is there a log file where I can now get the output of what just happened? On Mon, Apr 27, 2015 at 6:11 PM, En Figureo Canal figureo56@gmail.com wrote: Just recompiled an reinstalled. Would be testing now... On Mon, Apr 27, 2015 at 5:14 PM, En Figureo Canal figureo56@gmail.com wrote: Is not there, could it be that I issued a make distclean I installed two severs, one locally and the other remote and in neither ffserver_g appears. On Mon, Apr 27, 2015 at 5:06 PM, Moritz Barsnick barsn...@gmx.net wrote: On Mon, Apr 27, 2015 at 16:51:48 -0400, En Figureo Canal wrote: ./ffserver_g: No such file or directory. Starting program: -f /etc/ffserver No executable file specified. Use the file or exec-file command. I even searched for ffserver_g and is NOT found It should be in the directory where you were in when you called make install. Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffserver crashes from time to time
Thanks Carl for replying. How can I run that debug ? One more question: Is ffserver used by others in the list for live streaming? Because I find is very unstable since it crashes even streaming audio. Thanks again. On Sun, Apr 26, 2015 at 5:02 PM, Carl Eugen Hoyos ceho...@ag.or.at wrote: En Figureo Canal figureo56.com at gmail.com writes: root at optimum-pbx:~# Unrelated: This is a very, very bad idea. *** glibc detected *** ./bin/ffserver: double free or corruption First step is to run the debug binary of ffserver under gdb and get a backtrace. It is not unlikely that the backtrace is useless, in that case run the debug binary with valgrind, you will a have to use a very (!) small resolution because valgrind is slow. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffserver crashes from time to time
Once again I was able to recreate the crash but it just locks out on me, no output NOTHING. It looks like something just kills the process some how. Is there a log file where I can now get the output of what just happened? On Mon, Apr 27, 2015 at 6:11 PM, En Figureo Canal figureo56@gmail.com wrote: Just recompiled an reinstalled. Would be testing now... On Mon, Apr 27, 2015 at 5:14 PM, En Figureo Canal figureo56@gmail.com wrote: Is not there, could it be that I issued a make distclean I installed two severs, one locally and the other remote and in neither ffserver_g appears. On Mon, Apr 27, 2015 at 5:06 PM, Moritz Barsnick barsn...@gmx.net wrote: On Mon, Apr 27, 2015 at 16:51:48 -0400, En Figureo Canal wrote: ./ffserver_g: No such file or directory. Starting program: -f /etc/ffserver No executable file specified. Use the file or exec-file command. I even searched for ffserver_g and is NOT found It should be in the directory where you were in when you called make install. Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffserver crashes from time to time
Can't seem to star ffserver that way. I intalled it using source. Usually I start ffserver like this: /usr/local/fmpeg/ffserver -f /etc/ffserver.conf On Mon, Apr 27, 2015 at 1:30 PM, Carl Eugen Hoyos ceho...@ag.or.at wrote: En Figureo Canal figureo56.com at gmail.com writes: How can I run that debug ? $ gdb ffserver_g Please do not top-post here, Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffserver crashes from time to time
Got it running. I'll post output if anything happens. On Mon, Apr 27, 2015 at 2:21 PM, Carl Eugen Hoyos ceho...@ag.or.at wrote: En Figureo Canal figureo56.com at gmail.com writes: Can't seem to star ffserver that way. Why not? Please remember not to top-post here, Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffserver crashes from time to time
ffserver crashed again. I’m connected via ssh to the server and this time I had two windows opened: one running ffserver with gdb and another one just to monitor. I was feeding the server from my home pc with ffmpeg like this: Ffmpeg –rtbufsize 1500M –f show audio=”input” –vn –acodec libmp3lame –ab 128k –abufsize 256k http://ffserverip:8090/feedname.ffm I had three clients connected via rtsp, one with vlc, another one with a rtsp player, and another one with another player on iPhone. When I closed the app on the iphone the server just crashed without any message and locking the ssh ffserver window and no output but, the other window still worked. Now, how can I get the trace to send it to the list? Here’s an image of the ffmpeg on my pc: http://www.figureo56.com/images/ffmpeg-error-48.jpg ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] New user trying to get things working
Hello. This is my first post to the list. I've done some research about what I'm trying to accomplish but, can't really find the correct answer to my problem: I'm trying to configure a ffserver to stream feeds and files locally but, first I'm trying to get it to work with files. I have hundreds of videos on a server I would like to watch on my tv and smartphones at different quality and rates since bandwidth could be an issue. How can I have clients use specific amount of bandwidth for each stream, for example I would like to make clients not to use more than 1024Kbit/s. If I have four clients watching a stream that would be each 1024, 4 x 1024 = 4096 TOTAL. Does this type of shaping needs to be configured the os side or simply by assigning a max bit rate: Here's what I try doing in my ffserver.conf: Stream video.sdp Format rtp File /root/videos/video1.mp4 AudioBitRate 96 AudioSampleRate 44100 VideoBitRate 1024 VideoFrameRate 30 VideoCodec libx264 VideoCodec libx264 VideoSize 720x480 AVOptionVideo crf 23 AVOptionVideo flags +global_header Preroll 15 /Stream The video's specs are as follow: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'videos/video1.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 creation_time : 2013-11-26 23:10:14 Duration: 01:27:39.02, start: 0.00, bitrate: 3035 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 2840 kb/s, 25 fps, 25 tbr, 50 tbn, 50 tbc (default) Metadata: handler_name: VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 192 kb/s (default) Metadata: creation_time : 2013-11-26 23:15:21 handler_name: IsoMedia File Produced by Google, 5-11-2011 The ffserver.conf does not work, I checked the server bw consumption or traffic with iptraf and is over 6M. Am I doing something wrong? Please guide me to where I can find more info to correct my problem. Thanks in advanced for your time and guidance. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user