Re: [FFmpeg-user] ffmpeg drops 360 video metadata
More over I do not want to use googles solution because I want to stream on the fly live and google solution seems to be manual solution On Mon, Jun 15, 2020 at 11:41 AM Rama Krishna Thelagathoti < mrk.ramakris...@gmail.com> wrote: > Thank you for your quick response. Let me clarify what I am looking for. > I want to stream 360 degree video over rtmp port and nginx server is in > the backend. I want to demonstrate dynamic bitrate adaptation(such as > HLS/DASH) . non-360 degree video streaming is working as expected, However > I have difficulty with 360 video. I tried following ways > > 1. ffmpeg -loglevel verbose -i R0010309_er.MP4 -vcodec libx264 -strict > unofficial -vprofile high -acodec aac -f flv > rtmp://localhost/live/360streamR > able to play stream at the sink but not playing in 360 degree mode because > 360 degree video metadata is lost while format conversion > (attached log 1) > > 2. ffmpeg -loglevel verbose -i R0010309_er.MP4 -preset veryfast -g 25 > -sc_threshold 0 -map v:0 -c:v:0 libx264 -strict unofficial -b:v:0 2000k > -map v:0 -c:v:1 libx264 -strict unofficial -b:v:1 6000k -map a:0 -map a:0 > -c:a aac -b:a 128k -ac 2 -f hls -hls_time 4 -hls_playlist_type event > -master_pl_name R3601.m3u8 -var_stream_map "v:0,a:0 v:1,a:1" > /mnt/hls/R360Stream1_%v.m3u8 > still same behaviour (log attached 2) > > Could you suggest a way where I can stream 360 degree video without > losing spatial metadata and able to demonstrate bit rate adaption. Thanks > in advance > > On Mon, Jun 15, 2020 at 10:54 AM Leo Butler via ffmpeg-user < > ffmpeg-user@ffmpeg.org> wrote: > >> Rama Krishna Thelagathoti writes: >> >> > Hello ffmpeg team, kindly help me with following issue >> > 360sample.mp4 is 360 video and with following command out.mp4 is also >> 360 >> > video. >> > >> > sudo ffmpeg -i 360sample.mp4 -vcodec libx264 -strict unofficial >> > -vprofile high -acodec aac out.mp4 >> >> An aside: You shouldn't need to run these commands as root (i.e. no need >> for sudo before ffmpeg). >> >> Leo >> ___ >> ffmpeg-user mailing list >> ffmpeg-user@ffmpeg.org >> https://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >> To unsubscribe, visit link above, or email >> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". > > > > -- > Best Regards > *Rama krishna Thelagathoti* > -- Best Regards *Rama krishna Thelagathoti* ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Add delay to stream on twitch/youtube/restream.io, add chat and alerts
After some researching i got working code: ## record screen and use delay filters ffmpeg -y -f x11grab -video_size 1920x1008 -framerate 30 -i :0.0+0,36 -f pulse -ac 2 -i default \ -vf 'tpad=start_duration=10:color=0xFF,scale=1280x720' -c:v libx264 -g 60 -preset ultrafast \ -b:v 3M -maxrate 3M -pix_fmt yuv420p -af 'adelay=1|1' -c:a aac -b:a 128k -ar 44100 \ -f flv 1.flv or ##record screen with overlay and delay filters ffmpeg -y -f x11grab -video_size 1920x1080 -framerate 30 -i :0.0+0,0 \ -f pulse -ac 2 -i default -i logo.png -i screenlogo.png -filter_complex \ "[0:v]tpad=start_duration=10:color=0xFF,scale=1280:-1,setpts=PTS-STARTPTS[bg]; \ [1:a]adelay=1|1[a]; \ [2:v]scale=162:-1,setpts=PTS-STARTPTS[bg2]; \ [3:v]scale=120:-1,setpts=PTS-STARTPTS[bg3]; \ [bg][bg2]overlay=0:H-h[bg4]; \ [bg4][bg3]overlay=W-w:0[v]" \ -map "[v]" -map "[a]" -c:v libx264 -g 60 -preset ultrafast \ -b:v 3M -maxrate 3M -pix_fmt yuv420p -c:a aac -b:a 128k -ar 44100 \ -f flv 1.flv But if i use this code for streaming there were no delay video and audio, video and audio start play immediately without 10 sec delay for audio and video. About "alerts" and "chat". You can use browser source in obs for playing chat from twitch/youtube/restream.io and alerts(donations, etc) . How i can do it with ffmpeg? пн, 15 июн. 2020 г. в 22:18, Carl Zwanzig : > On 6/15/2020 10:17 AM, Rob Hallam wrote: > > Is this still true? In OBS, Settings → Advanced there is a "Stream Delay" > > section (mentioned onhttps://obsproject.com/wiki/OBS-Studio-Overview). > > > > The default setting of 20s estimates mem usage of 11MB; I set the option > > to 120s which increased the memory usage estimate to 69MB. Even five > > minutes 'only' uses 174MB. > > I'd assume that obs is delaying encoded stream packets, not something that > an ffmpeg filter can do (they work on uncompressed frames between decode > and > encode). > > Best thing is for the OP to try it and see if that's what they need. > > z! > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Receive network stream and drop without decoding
Am Mo., 15. Juni 2020 um 23:39 Uhr schrieb Andrius Narbutas : > > On 2020-06-15 23:58, Carl Eugen Hoyos wrote: > > $ ffmpeg -i input -map 0:a:0 -c copy -f null - > > ffmpeg -i > http://download.tsi.telecom-paristech.fr/gpac/dataset/dash/uhd/dashevc-ondemand-4s/dashevc-ondemand-4s-p60.mpd > -map 0:a:0 -c copy -f null - > <...> > size=N/A time=00:02:31.80 bitrate=N/A speed= 165x > video:0kB audio:1195kB subtitle:0kB other streams:0kB global headers:0kB > muxing overhead: unknown > ...and quits Drop the map option. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Receive network stream and drop without decoding
On 2020-06-15 23:58, Carl Eugen Hoyos wrote: $ ffmpeg -i input -map 0:a:0 -c copy -f null - ffmpeg -i http://download.tsi.telecom-paristech.fr/gpac/dataset/dash/uhd/dashevc-ondemand-4s/dashevc-ondemand-4s-p60.mpd -map 0:a:0 -c copy -f null - <...> size=N/A time=00:02:31.80 bitrate=N/A speed= 165x video:0kB audio:1195kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown ...and quits So, it just pulls one DASH audio chunk into null sink and exits (no re-request, also note video:0kB) Other possibilities like -map 0:0 exist. Slightly better as now it takes video, too: ffmpeg -i http://download.tsi.telecom-paristech.fr/gpac/dataset/dash/uhd/dashevc-ondemand-4s/dashevc-ondemand-4s-p60.mpd -map 0:0 -c copy -f null - <...> frame= 4320 fps=197 q=-1.0 Lsize=N/A time=00:02:19.93 bitrate=N/A speed=6.37x video:24094kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Now it pulls one chunk of video (but not audio stream), pushes to null sink and exits. With -map 0:a:0 -map 0:v:0 ir pulls audio and video, but again only one chunk, does not follow stream. With -v debug it does not tell story why it decided to not take next chunk... CPU load during this one step is low, so probably no decoding done. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Receive network stream and drop without decoding
Am Mo., 15. Juni 2020 um 22:36 Uhr schrieb Andrius Narbutas : > Is there any way to tell ffmpeg to receive stream (network traffic) and > discard it immediately, without decoding? One example is: $ ffmpeg -i input -map 0:a:0 -c copy -f null - Other possibilities like -map 0:0 exist. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Libavcodec conflicts
Am Mo., 15. Juni 2020 um 20:11 Uhr schrieb gatodiablo--- via ffmpeg-user : > > Moritz, Yes that is how it "should" work. You missed not only to find out what top-posting means and to avoid it here but also that whatever your issue is it cannot be solved within FFmpeg but only by your distribution. (We do not offer libavfoo and libavfoo-extra, some distribution has invented this years ago.) Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] Receive network stream and drop without decoding
Hello, trying to do something like "DASH load generator" for testing. Trying to simulate DASH client on unencrypted stream (using public stream in examples, should be accessible from anywhere): ffplay -nodisp -vst 3 -an -i 'http://download.tsi.telecom-paristech.fr/gpac/dataset/dash/uhd/dashevc-ondemand-4s/dashevc-ondemand-4s-p60.mpd' - this works and displays no video, but eats 40-50% of CPU core. Recompiled latest git pull with debug symbols, ran perf, top 4 CPU users: 9.01% ff_h264_decode_mb_cabac 6.66% decode_cabac_residual_nondc_internal.isra.4 6.16% loop_filter 5.19% get_cabac So, it is clearly doing decoding even with -nodisp and -vn options (-vn makes no difference). On IRC i got suggestion to use ffmpeg instead of ffplay: ffmpeg/bin/ffmpeg -hide_banner -vn -an -i http://download.tsi.telecom-paristech.fr/gpac/dataset/dash/uhd/dashevc-ondemand-4s/dashevc-ondemand-4s-p60.mpd -f null - ..then it fails with: Output #0, null, to 'pipe:': Output file #0 does not contain any stream If i skip -vn and -an - it works without problems (i see traffic flowing) but eats even more CPU (~70%) So far this is not suitable as "fake client" as server can handle thousands clients, but "client server" can barely handle 100 connections. Is there any way to tell ffmpeg to receive stream (network traffic) and discard it immediately, without decoding? ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Libavcodec conflicts
On Mon, Jun 15, 2020 at 18:10:56 +, gatodiablo--- via ffmpeg-user wrote: > Moritz, Yes that is how it "should" work. Either set of packages > either normal or extra should work, but that isn't what's happening. > I installed the extras packages and apt tells me ffmpeg has "broken > dependencies". Well, originally, you wrote: > >> mint 19. Right away apt tells me Libavcodec-extra57 conflicts with > >> libavcodec57 and libavfilter-extra6 conflicts with libavfilter6. That means apt would have both after your install command, and cannot do that. You may need to de-install libavcodec57 and install libavcodec-extra57 in one step, or de-install the former first (also breaking packages which depend on it), then install the latter. I can't help you with that, I'm not very apt with apt (pun intended). Please consult your friendly apt guide, or wait for other answers here. ;-) Regards, Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Add delay to stream on twitch/youtube/restream.io, add chat and alerts
On 6/15/2020 10:17 AM, Rob Hallam wrote: Is this still true? In OBS, Settings → Advanced there is a "Stream Delay" section (mentioned onhttps://obsproject.com/wiki/OBS-Studio-Overview). The default setting of 20s estimates mem usage of 11MB; I set the option to 120s which increased the memory usage estimate to 69MB. Even five minutes 'only' uses 174MB. I'd assume that obs is delaying encoded stream packets, not something that an ffmpeg filter can do (they work on uncompressed frames between decode and encode). Best thing is for the OP to try it and see if that's what they need. z! ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Libavcodec conflicts
Moritz, Yes that is how it "should" work. Either set of packages either normal or extra should work, but that isn't what's happening. I installed the extras packages and apt tells me ffmpeg has "broken dependencies". Sent from ProtonMail mobile Original Message On Jun 15, 2020, 7:15 AM, Moritz Barsnick wrote: > On Mon, Jun 15, 2020 at 13:04:18 +, FFmpeg user discussions wrote: > > This is pretty muc a distribution issue, but let's try to help: > >> So I wanted to install all the extra codecs for ffmpeg. I'm using >> mint 19. Right away apt tells me Libavcodec-extra57 conflicts with >> libavcodec57 and libavfilter-extra6 conflicts with libavfilter6. I >> was able to get it to install by using the force-depends flag but now >> apt -f install complains that vlc, ffmpeg and celluloid are broken >> and wants to uninstall them. I checked all of the above programs and >> they work fine but apts complaining is annoying. > >> Why are these packages in conflict? Is it recommended to install both >> side by side? This looks like a common problem from my internet >> searches. What is the recommended solution? > > ffmpeg doesn't have the concept of plugins, so there's only a defined > set of codecs/filters/formats a compiled library can support. > > If this packaging is anything like in Debian/Ubuntu, those packages are > either/or. Either you install the one with e.g. "fewer" codecs, or the > one with "more". > > See also here: > https://askubuntu.com/questions/847213/whats-the-difference-between-libavcodec-ffmpeg-extra56-and-libavcodec-ffmpeg56 > > Cheers, > Moritz > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Add delay to stream on twitch/youtube/restream.io, add chat and alerts
On Mon, 15 Jun 2020 at 17:26, Carl Zwanzig wrote: > Add delay- how long? (delay is memory- or disk-intensive*) OBS can insert a > short delay, but longer ones usually mean writing data into a file and > playing it back later (which could be only 5 seconds). There are many > "gotchas" around that with file format and record/play timing. Please start > a separate email thread for that. Is this still true? In OBS, Settings → Advanced there is a "Stream Delay" section (mentioned on https://obsproject.com/wiki/OBS-Studio-Overview). The default setting of 20s estimates mem usage of 11MB; I set the option to 120s which increased the memory usage estimate to 69MB. Even five minutes 'only' uses 174MB. Cheers, Rob ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] ffmpeg enable between
I'm trying to draw text in a horizontal line and I want only Text1 for the first 5 seconds, and then Text2 starting from 5 seconds to 20 seconds, and Text3 starting from 10 seconds till the end. When I do this, my first text stays for about 15 seconds and the last two show up in the last 4 seconds of the video. Is there something wrong with my instruction? Am I using the enable between correctly? ffmpeg -i input.mp4 -vf "drawtext=fontfile='C:\arial.ttf':text='Text1':x=5:y=20+24-max_glyph_a:fontsize=24:fontcolor=yellow:box=1:boxcolor=black@0.5:boxborderw=5:enable='between(t,0,20)', drawtext=fontfile='C:\arial.ttf':text='Text2':x=100:y=20+24-max_glyph_a:fontsize=24:fontcolor=yellow:enable='between(t,5,20)', drawtext=fontfile='C:\arial.ttf':text='Text3':x=200:y=20+24-max_glyph_a:fontsize=24:fontcolor=yellow:enable='between(t,10,20)'" output.mp4 -- Enviado de forma segura com Tutanota. Crie sua conta de e-mail encriptada, livre de anúncios: https://tutanota.com ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] ffmpeg drops 360 video metadata
Thank you for your quick response. Let me clarify what I am looking for. I want to stream 360 degree video over rtmp port and nginx server is in the backend. I want to demonstrate dynamic bitrate adaptation(such as HLS/DASH) . non-360 degree video streaming is working as expected, However I have difficulty with 360 video. I tried following ways 1. ffmpeg -loglevel verbose -i R0010309_er.MP4 -vcodec libx264 -strict unofficial -vprofile high -acodec aac -f flv rtmp://localhost/live/360streamR able to play stream at the sink but not playing in 360 degree mode because 360 degree video metadata is lost while format conversion (attached log 1) 2. ffmpeg -loglevel verbose -i R0010309_er.MP4 -preset veryfast -g 25 -sc_threshold 0 -map v:0 -c:v:0 libx264 -strict unofficial -b:v:0 2000k -map v:0 -c:v:1 libx264 -strict unofficial -b:v:1 6000k -map a:0 -map a:0 -c:a aac -b:a 128k -ac 2 -f hls -hls_time 4 -hls_playlist_type event -master_pl_name R3601.m3u8 -var_stream_map "v:0,a:0 v:1,a:1" /mnt/hls/R360Stream1_%v.m3u8 still same behaviour (log attached 2) Could you suggest a way where I can stream 360 degree video without losing spatial metadata and able to demonstrate bit rate adaption. Thanks in advance On Mon, Jun 15, 2020 at 10:54 AM Leo Butler via ffmpeg-user < ffmpeg-user@ffmpeg.org> wrote: > Rama Krishna Thelagathoti writes: > > > Hello ffmpeg team, kindly help me with following issue > > 360sample.mp4 is 360 video and with following command out.mp4 is also 360 > > video. > > > > sudo ffmpeg -i 360sample.mp4 -vcodec libx264 -strict unofficial > > -vprofile high -acodec aac out.mp4 > > An aside: You shouldn't need to run these commands as root (i.e. no need > for sudo before ffmpeg). > > Leo > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". -- Best Regards *Rama krishna Thelagathoti* rthelagathoti@PKI369-NUC04:~/streaming$ ffmpeg -loglevel verbose -i R0010309_er.MP4 -vcodec libx264 -strict unofficial -vprofile high -acodec aac -f flv rtmp://localhost/live/360streamR ffmpeg version 4.2.2-1ubuntu1~18.04.york0 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04) configuration: --prefix=/usr --extra-version='1ubuntu1~18.04.york0' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat58. 29.100 / 58. 29.100 libavdevice58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc55. 5.100 / 55. 5.100 Routing option strict to both codec and muxer layer [h264 @ 0x562390046800] Reinit context to 3840x1920, pix_fmt: yuvj420p Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'R0010309_er.MP4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 creation_time : 2018-01-01T19:49:42.00Z Duration: 00:00:03.57, start: 0.00, bitrate: 62822 kb/s Stream #0:0(und): Video: h264 (Constrained Baseline), 1 reference frame (avc1 / 0x31637661), yuvj420p(pc, left), 3840x1920 [SAR 1:1 DAR 2:1], 59135 kb/s, 29.97 fps, 29.97 tbr, 29970 tbn, 59.94 tbc (default) Metadata: creation_time : 2018-01-01T19:49:42.00Z handler_name: VideoHandler Side data: spherical: equirectangular (0.00/0.00/0.00) Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 127 kb/s (default) Metadata: creation_time : 2018-01-01T19:49:42.00Z handler_name: SoundHandler [tcp
Re: [FFmpeg-user] Add delay to stream on twitch/youtube/restream.io, add chat and alerts
(please do not top-post on this list) On 15/06/2020, KoreanFanOfficial wrote: Hello. I want to add delay, chat and alerts to my stream with ffmpeg. How i can do it? On 6/15/2020 3:48 AM, Tom Sparks wrote: Have you looked at OBS[1]? OBS filters can only add a short delay. Add delay- how long? (delay is memory- or disk-intensive*) OBS can insert a short delay, but longer ones usually mean writing data into a file and playing it back later (which could be only 5 seconds). There are many "gotchas" around that with file format and record/play timing. Please start a separate email thread for that. *(back-of-the-envelope calculation) if you assume uncompressed 8-bit RGB HD, that's over 6MB/frame, a 30 second buffer at 30fps will need to be something like 6GB (spinning disks aren't fast enough for this, needs to be SSD or in-memory) Add "chat"- that's not a function of the stream. Add "alerts"- what does that mean in this case? z! ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] ffmpeg drops 360 video metadata
Rama Krishna Thelagathoti writes: > Hello ffmpeg team, kindly help me with following issue > 360sample.mp4 is 360 video and with following command out.mp4 is also 360 > video. > > sudo ffmpeg -i 360sample.mp4 -vcodec libx264 -strict unofficial > -vprofile high -acodec aac out.mp4 An aside: You shouldn't need to run these commands as root (i.e. no need for sudo before ffmpeg). Leo ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] ffmpeg drops 360 video metadata
On Mon, Jun 15, 2020 at 07:33:06 -0500, Rama Krishna Thelagathoti wrote: > Hello ffmpeg team, kindly help me with following issue > 360sample.mp4 is 360 video and with following command out.mp4 is also 360 > video. > > sudo ffmpeg -i 360sample.mp4 -vcodec libx264 -strict unofficial > -vprofile high -acodec aac out.mp4 > > But with the following transcoding command out.mp4 is not 360 video, video > is playing top/bottom , spherical data as part of metadata is lost. > > sudo ffmpeg -i R0010309_er.MP4 -vcodec libx264 -strict unofficial -vprofile > high -acodec aac -f flv RC.mp4 You are usually requested to also show us the complete, uncut console output. > How to ensure that 360 metadata is preserve while transcoding. You are writing to FLV. ffmpeg does not support spatial data for FLV. Is that even defined in the FLV spec? Google's own spatial tools don't support FLV either: https://github.com/google/spatial-media (but can successfully inject into MP4). Regards, Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Libavcodec conflicts
On Mon, Jun 15, 2020 at 13:04:18 +, FFmpeg user discussions wrote: This is pretty muc a distribution issue, but let's try to help: > So I wanted to install all the extra codecs for ffmpeg. I'm using > mint 19. Right away apt tells me Libavcodec-extra57 conflicts with > libavcodec57 and libavfilter-extra6 conflicts with libavfilter6. I > was able to get it to install by using the force-depends flag but now > apt -f install complains that vlc, ffmpeg and celluloid are broken > and wants to uninstall them. I checked all of the above programs and > they work fine but apts complaining is annoying. > Why are these packages in conflict? Is it recommended to install both > side by side? This looks like a common problem from my internet > searches. What is the recommended solution? ffmpeg doesn't have the concept of plugins, so there's only a defined set of codecs/filters/formats a compiled library can support. If this packaging is anything like in Debian/Ubuntu, those packages are either/or. Either you install the one with e.g. "fewer" codecs, or the one with "more". See also here: https://askubuntu.com/questions/847213/whats-the-difference-between-libavcodec-ffmpeg-extra56-and-libavcodec-ffmpeg56 Cheers, Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] Libavcodec conflicts
So I wanted to install all the extra codecs for ffmpeg. I'm using mint 19. Right away apt tells me Libavcodec-extra57 conflicts with libavcodec57 and libavfilter-extra6 conflicts with libavfilter6. I was able to get it to install by using the force-depends flag but now apt -f install complains that vlc, ffmpeg and celluloid are broken and wants to uninstall them. I checked all of the above programs and they work fine but apts complaining is annoying. Why are these packages in conflict? Is it recommended to install both side by side? This looks like a common problem from my internet searches. What is the recommended solution? Sent from ProtonMail mobile ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] ffmpeg drops 360 video metadata
Hello ffmpeg team, kindly help me with following issue 360sample.mp4 is 360 video and with following command out.mp4 is also 360 video. sudo ffmpeg -i 360sample.mp4 -vcodec libx264 -strict unofficial -vprofile high -acodec aac out.mp4 But with the following transcoding command out.mp4 is not 360 video, video is playing top/bottom , spherical data as part of metadata is lost. sudo ffmpeg -i R0010309_er.MP4 -vcodec libx264 -strict unofficial -vprofile high -acodec aac -f flv RC.mp4 How to ensure that 360 metadata is preserve while transcoding. -- Best Regards *Rama krishna Thelagathoti* ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Add delay to stream on twitch/youtube/restream.io, add chat and alerts
Have you looked at OBS[1]? [2]: https://obsproject.com/ On 15/06/2020, KoreanFanOfficial wrote: > Hello. I want to add delay, chat and alerts to my stream with ffmpeg. How i > can do it? > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] timeout error when reading RTSP/RTP incoming audio stream
Hello I am struggling to read a multicast audio RTP stream controlled by RTSP. As soon as I launch the ffplay or ffmpeg command, the RTP traffic starts (tcpdump) on port 5004/UDP (as advertised in the SDP file), so it should read the stream correctly but I finally get a time-out instead (and empty out file). The very same RTSP URL can be read without any issue with VLC or with rtpdump+sox. $ ffmpeg -y -rtsp_transport udp_multicast -i "rtsp:// 192.168.2.148:554/by-name/AES67-stream (on hasseb-AoE-F8-82)" -vn -f s24le -ar 48000 -c:a pcm_s24be out.raw ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1) configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutl s --enable-libdav1d --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab --enable-libtheora --en able-libwavpack --enable-libopenjpeg --enable-libgsm --enable-nvenc --enable-libzimg --enable-libaom libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat58. 29.100 / 58. 29.100 libavdevice58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc55. 5.100 / 55. 5.100 Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, rtsp, from 'rtsp://192.168.2.148:554/by-name/AES67-stream (on hasseb-AoE-F8-82)': Metadata: title : AES67-stream (on hasseb-AoE-F8-82) streamed by "hasseb" Duration: N/A, bitrate: 2304 kb/s Stream #0:0: Audio: pcm_s24be, 48000 Hz, stereo, s32 (24 bit), 2304 kb/s Stream mapping: Stream #0:0 -> #0:0 (pcm_s24be (native) -> pcm_s24be (native)) Press [q] to stop, [?] for help rtsp://192.168.2.148:554/by-name/AES67-stream (on hasseb-AoE-F8-82): Connection timed out Output #0, s24le, to 'out.raw': Metadata: title : AES67-stream (on hasseb-AoE-F8-82) streamed by "hasseb" encoder : Lavf58.29.100 Stream #0:0: Audio: pcm_s24be, 48000 Hz, stereo, s32 (24 bit), 2304 kb/s Metadata: encoder : Lavc58.54.100 pcm_s24be size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) The SDP file is : v=0 o=- 254522267104 0 IN IP4 192.168.2.148 s=AES67-stream (on hasseb-AoE-F8-82) streamed by "hasseb" t=0 0 a=clock-domain:PTPv2 0 a=recvonly m=audio 5004 RTP/AVP 98 c=IN IP4 239.123.123.123/255 a=rtpmap:98 L24/48000/2 a=sync-time:0 a=framecount:48 a=source-filter: incl IN IP4 239.123.123.123 192.168.2.148 a=ts-refclk:ptp=IEEE1588-2008:00-10-4b-ff-fe-2e-f8-82:domain-nmbr=0 a=mediaclk:direct=0 a=ptime:1 Comparing those files, we see that ffmpeg detects the correct audio settings (pcm_s24be, 48000 Hz, stereo, s32 (24 bit)) so I cannot figure out why it can't read the data stream? I have tried to increase the timeout but that did not help. Any help would be appreciated. Thank you. Yannick ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Loop filter producing off by one errors?
On Mon, Jun 15, 2020 at 4:25 PM Peter wrote: > > > On Mon, Jun 15, 2020 at 3:20 PM Gyan Doshi wrote: > >> >> >> On 15-06-2020 07:38 am, Peter wrote: >> > Hello, >> > >> > I'm trying to create a video from a series of PNG frames and then loop >> > specific frames using the loop filter. It is giving me a bit of trouble. >> > Ffmpeg is dropping a single frame somewhere and I'm not sure why that >> is. >> > Would appreciate it if someone could take a look. >> > >> > Essentially I have a concat demuxer input with 32 frames. I would like >> to >> > repeat frame #16 104 times. And repeat frame #34 14 times. 32 input >> frames >> > + 104 + 14 = 150 frames. At 30fps, my intention is to produce a 5 second >> > video with exactly 150 frames. But I can only manage to produce 149 >> frames. >> >> Can you identify which frame is missing? >> >> Gyan > > > I'm pretty sure that the last frame is being dropped. That is, the loop of > the last frame is missing. Meaning that this section of the filtergraph is > only producing 13 extra frames. > > [layer_1]loop=loop=14:start=32:size=1, > > just some extra confirmation: > >- changing "start=32" to "start=31" produces the exact same 149 frame >video. >- changing "loop=14" to "loop=15" produces a correct 150 frame video >(although this seems wrong to me as I would expect a 151 frame video given >these parameters) > > > > I am even MORE confident that there is some ffmpeg aspect that is affecting my results that I am not aware of as two different techniques have produced the exact same unexpected output. I tried it another way, using split with trim filter to extract specific frames, then looping them individually, then concat filter to merge the video streams. This alternative approach still produces a 149 frame file. The exact same binary file as the above (according to "diff -b"). [0]null[layer_0]; [1]null[layer_1]; [layer_1]split=4[s1][s2][s3][s4]; [s1]trim=start_frame=0:end_frame=15,setpts=expr=PTS-STARTPTS[l1]; [s2]trim=start_frame=15:end_frame=16,setpts=expr=PTS-STARTPTS,loop=loop=104:start=0:size=1[l2]; [s3]trim=start_frame=16:end_frame=31,setpts=expr=PTS-STARTPTS[l3]; [s4]trim=start_frame=31:end_frame=32,setpts=expr=PTS-STARTPTS,loop=loop=14:start=0:size=1[l4]; [l1][l2][l3][l4]concat=n=4,setpts=expr='N/(30*TB)'[layer_1_loopedFrames]; [layer_0]fps=fps=30.00[layer_0_fps]; [layer_1_loopedFrames]fps=fps=30.00[layer_1_loopedFrames_fps]; [layer_0_fps][layer_1_loopedFrames_fps]overlay=x=0.0:y=0.0:format=auto[overlay_all] And, as previously mentioned, if I repeat the last frame one more time than necessary, it produces a correct 150 frame output. [0]null[layer_0]; [1]null[layer_1]; [layer_1]split=4[s1][s2][s3][s4]; [s1]trim=start_frame=0:end_frame=15,setpts=expr=PTS-STARTPTS[l1]; [s2]trim=start_frame=15:end_frame=16,setpts=expr=PTS-STARTPTS,loop=loop=104:start=0:size=1[l2]; [s3]trim=start_frame=16:end_frame=31,setpts=expr=PTS-STARTPTS[l3]; [s4]trim=start_frame=31:end_frame=32,setpts=expr=PTS-STARTPTS,loop=loop=15:start=0:size=1[l4]; [l1][l2][l3][l4]concat=n=4,setpts=expr='N/(30*TB)'[layer_1_loopedFrames]; [layer_0]fps=fps=30.00[layer_0_fps]; [layer_1_loopedFrames]fps=fps=30.00[layer_1_loopedFrames_fps]; [layer_0_fps][layer_1_loopedFrames_fps]overlay=x=0.0:y=0.0:format=auto[overlay_all] Notice, the loop of 15 (should be 14) in the [s4]...[l4] filterchain Different approach, same unexpected/wrong output. Can anyone tell me what I'm missing here? ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".