Re: [FFmpeg-user] FFmpeg DASH Optional Adaptation Set
The version I am using is 4.3.1 De: ffmpeg-user en nombre de Dennis Mungai Enviado: jueves, 15 de julio de 2021 16:30:21 Para: FFmpeg user questions Asunto: Re: [FFmpeg-user] FFmpeg DASH Optional Adaptation Set On Thu, 15 Jul 2021 at 16:52, Mar Andrés López wrote: > Dear All, > > > I am using the following FFmpeg command for dash generation, > > > ffmpeg -i video.mpeg -preset superfast -r 30 -vcodec libx264 -acodec aac > -b:a 128k -ac 1 -ar 44100 -map v:0 -b:v:0 150 -s:v:0 768x432 -map v:0 > -b:v:1 75 -s:v:1 640x360 -map v:0 -b:v:2 50 -s:v:2 512x288 -map > 0:a? -f dash -adaptation_sets "id=0,streams=v id=1,streams=a" > -utc_timing_url manifest-mpd. > > > Currently the manifest is creating an empty adaptation set for videos > which do not contain audio: > > > segmentAlignment="true" bitstreamSwitching="true"> > > > I thougth that by using -map 0:a? i would make it optional but it is not > the case. As you see above the adaptation set is still created. > > > What version of FFmpeg are you using? > > ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://urldefense.com/v3/__https://ffmpeg.org/mailman/listinfo/ffmpeg-user__;!!MvyJQugb!RiVnkQ3dtufpj3btxYFvpM6ou83UkFmuhx1_Sf1pyk_aXYOOUSp5WQwOJjOe3Rk$ To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". P Please consider the environment before printing this e-mail. ___ 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 DASH Optional Adaptation Set
Then, is possible to make an audio adaptation set optional? De: Mar Andrés López Enviado: jueves, 15 de julio de 2021 15:51:49 Para: ffmpeg-user@ffmpeg.org Asunto: FFmpeg DASH Optional Adaptation Set Dear All, I am using the following FFmpeg command for dash generation, ffmpeg -i video.mpeg -preset superfast -r 30 -vcodec libx264 -acodec aac -b:a 128k -ac 1 -ar 44100 -map v:0 -b:v:0 150 -s:v:0 768x432 -map v:0 -b:v:1 75 -s:v:1 640x360 -map v:0 -b:v:2 50 -s:v:2 512x288 -map 0:a? -f dash -adaptation_sets "id=0,streams=v id=1,streams=a" -utc_timing_url manifest-mpd. Currently the manifest is creating an empty adaptation set for videos which do not contain audio: I thougth that by using -map 0:a? i would make it optional but it is not the case. As you see above the adaptation set is still created. A lot of thanks, Best regards. P Please consider the environment before printing this e-mail. ___ 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 DASH Optional Adaptation Set
Dear All, I am using the following FFmpeg command for dash generation, ffmpeg -i video.mpeg -preset superfast -r 30 -vcodec libx264 -acodec aac -b:a 128k -ac 1 -ar 44100 -map v:0 -b:v:0 150 -s:v:0 768x432 -map v:0 -b:v:1 75 -s:v:1 640x360 -map v:0 -b:v:2 50 -s:v:2 512x288 -map 0:a? -f dash -adaptation_sets "id=0,streams=v id=1,streams=a" -utc_timing_url manifest-mpd. Currently the manifest is creating an empty adaptation set for videos which do not contain audio: I thougth that by using -map 0:a? i would make it optional but it is not the case. As you see above the adaptation set is still created. A lot of thanks, Best regards. P Please consider the environment before printing this e-mail. ___ 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] -b:v option
Sorry I would have to specify a bit more. I want to do this in order to generate a DASH content, one of the profiles sould have the original bitrate, and the other ones fixed values. As an example: ffmpeg -i bunny.mp4 -preset superfast -r 25 -vcodec libx264 -acodec aac -b:a 128k -ac 1 -ar 44100 -map v:0 -b:v:0 source -map v:0 -b:v:1 72 -map v:0 -b:v:2 36 -map 0:a? -f dash -segment_time 5000 C:\ComponentsDeployment\CSD_DATA\VCS\DashStreams\9780081d-c864-4420-9669-8a9feb53f4a6\manifest.mpd. So I would have the fist profile with the original bitrate -b:v:0 source, the second one with 720kbps and the third one with 360kbps. On the other one if not posible, what happens if I set this command? ffmpeg -i bunny.mp4 -preset superfast -r 25 -vcodec libx264 -acodec aac -b:a 128k -ac 1 -ar 44100 -map v:0 -b:v:0 108 -map v:0 -b:v:1 72 -map v:0 -b:v:2 36 -map 0:a? -f dash -segment_time 5000 C:\ComponentsDeployment\CSD_DATA\VCS\DashStreams\9780081d-c864-4420-9669-8a9feb53f4a6\manifest.mpd And bunny.mp4 has a bitrate of 795kbps, which bitrate would be displayed in first profile 1080kbps, does make sense or is posible to increase bitrate?? De: ffmpeg-user en nombre de Carl Eugen Hoyos Enviado: jueves, 8 de abril de 2021 12:47:25 Para: FFmpeg user questions Asunto: Re: [FFmpeg-user] -b:v option > Am 08.04.2021 um 12:45 schrieb Mar Andrés López : > > Is posible to specify bitrate option -b:v as the bitrate from the input? > instead of doing -b:v 300k is posible for example -b:v source, which would > output the bitrate from original video? No, technically this would make very little sense. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://urldefense.com/v3/__https://ffmpeg.org/mailman/listinfo/ffmpeg-user__;!!MvyJQugb!XbuxwPc6eGm_qYVExild2vph8Jtgv6b8ZVgFgYxvIRrBs_DBmiNAHO93Ks70568$ To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". P Please consider the environment before printing this e-mail. ___ 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] -b:v option
Dear all, Is posible to specify bitrate option -b:v as the bitrate from the input? instead of doing -b:v 300k is posible for example -b:v source, which would output the bitrate from original video? Aa lot of thanks. P Please consider the environment before printing this e-mail. ___ 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 vsync option
Dear all, I have a video with two streams, a video stream and a metadata stream, I would like to set the vsync option to set the time stamps according to the video stream. In the documentation ffmpeg of vsync says that: -vsync parameter Video sync method. For compatibility reasons old values can be specified as numbers. Newly added values will have to be specified as strings always. With -map you can select from which stream the timestamps should be taken. You can leave either video or audio unchanged and sync the remaining stream(s) to the unchanged one. I would like to use the -map option to set the timestamps of the rest of the streams according with my video stream, but there is no example provided. How could I achieve this? A lot of thanks, Regards. P Please consider the environment before printing this e-mail. ___ 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] Timestamps are unset in a packet for stream 1. UDP Streaming
Dear all, My video which has KLV metadata on stream 1, is not timestamped properly, when streaming udp. ¿Is there anyway to recreate the timestamps? I am doing something wrong when streaming by udp. The command employed is the following: >>ffmpeg -re -i klv.mpeg -map 0 -codec copy -f mpegts >>udp://127.0.0.1:9000?pkt_size=1316 ffmpeg version N-101612-gda12d600ea Copyright (c) 2000-2021 the FFmpeg developers built with gcc 9.3-win32 (GCC) 20200320 configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --enable-shared --disable-static --disable-w32threads --enable-pthreads --enable-iconv --enable-zlib --enable-libxml2 --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-opencl --enable-libvmaf --enable-vulkan --enable-libvorbis --enable-amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-libdavs2 --enable-ffnvcodec --enable-cuda-llvm --enable-libglslang --enable-libgme --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-libs=-lgomp libavutil 56. 68.100 / 56. 68.100 libavcodec 58.133.100 / 58.133.100 libavformat58. 74.100 / 58. 74.100 libavdevice58. 12.100 / 58. 12.100 libavfilter 7.109.100 / 7.109.100 libswscale 5. 8.100 / 5. 8.100 libswresample 3. 8.100 / 3. 8.100 libpostproc55. 8.100 / 55. 8.100 [mpegts @ 02c852e57000] start time for stream 1 is not set in estimate_timings_from_pts Input #0, mpegts, from 'klv.mpeg': Duration: 00:01:30.80, start: 0.50, bitrate: 1347 kb/s Program 1 Stream #0:0[0x3e8]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bt470bg, progressive), 640x480 [SAR 1:1 DAR 4:3], 30 fps, 30 tbr, 90k tbn, 60 tbc Side data: cpb: bitrate max/min/avg: 100/0/0 buffer size: 1835008 vbv_delay: N/A Stream #0:1[0x90]: Data: klv (KLVA / 0x41564C4B) Output #0, mpegts, to 'udp://127.0.0.1:9000?pkt_size=1316': Metadata: encoder : Lavf58.74.100 Stream #0:0: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bt470bg, progressive), 640x480 [SAR 1:1 DAR 4:3], q=2-31, 30 fps, 30 tbr, 90k tbn, 90k tbc Side data: cpb: bitrate max/min/avg: 100/0/0 buffer size: 1835008 vbv_delay: N/A Stream #0:1: Data: klv (KLVA / 0x41564C4B) Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help [mpegts @ 02c854add100] Timestamps are unset in a packet for stream 1. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly frame= 31 fps= 30 q=-1.0 size= 66kB time=00:00:01.03 bitrate= 524.0kbits/s speed= 1x P Please consider the environment before printing this e-mail. ___ 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 process is not ending when streaming .mpeg through upd
Dear All, The issue I am facing is the following. When I perform this command to stream through udp an .mpeg file and also a determined duration of the video: ffmpeg -re -ss 00:00:00.000 -t 00:00:08.000 -i klv.mpeg -map 0 -vcodec h264 -pix_fmt yuv420p -f mpegts udp://127.0.0.1:9000?pkt_size=1316=1 [cid:706112dc-f237-48f7-970d-be0dca64d1b1] It gets stacked in that position, the bytes and the bitrate is still updating but I need this process to end and is not ending. for a .mp4 file is working. ¿I am doing anything wrong? Please I need help P Please consider the environment before printing this e-mail. ___ 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] DASH with Thumbnails
Dear All, I am building a DASH VideoPlayer and I need the functionality of viewing thumbnails when scrolling de time bar of the video player. ¿Does FFmpeg support this functionality of adding thumbnails to .mpd? My question is the same as this one retrieved from https://stackoverflow.com/questions/60429301/ffmpeg-dash-with-tiles-of-thumbnail-images: "As of DASH-IF IOP version 4.2, section 6.2.6 defines the notion of image-based tracks in DASH: https://dashif.org/docs/DASH-IF-IOP-v4.3.pdf. This is the ability to have an adaption set made up of mime type images that themselves are a strip of low resolution thumbnails. A player will use these thumbnails when the user hovers their mouse over the video timeline and get a preview of the the frame at that approximate timecode. Theo player website has a page dedicated to this function for playback: https://www.theoplayer.com/blog/in-stream-thumbnail-support-dvr-dash-streams I need to generate a dash stream (not live) using ffmpeg that also contains these thumbnails. I already have an ffmpeg command that will generate the film strip of jpgs which outputs a thumbnail every 5 seconds of input video and joins 5 of these together in a single jpg: ffmpeg -i INPUT -q:v 20 -vf "select=not(mod(n\,125)),scale=480:270,tile=5x1" -vsync vfr output%d.jpg and the mpeg dash itself: ffmpeg -i INPUT -y -map 0 -acodec aac -ac 2 -ar 48000 -s 960x540 -vcodec libx264 -f dash -preset veryfast -b:v:2 1500k -seg_duration 2 output.mpd" But I cannot find a way in ffmpeg to include the thumbnails in the dash mpd file. A lot of thanks, Regards P Please consider the environment before printing this e-mail. ___ 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] Convert to .MP4 using ffmpeg preserving KLV metadata
Dear All, I have the following video klv.mpeg, composed by two streams, a video stream and a klv data stream. As you can see: [mpegts @ 0146ceeaaec0] start time for stream 1 is not set in estimate_timings_from_pts Input #0, mpegts, from 'klv.mpeg': Duration: 00:01:30.80, start: 0.50, bitrate: 1347 kb/s Program 1 Stream #0:0[0x3e8]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bt470bg, progressive), 640x480 [SAR 1:1 DAR 4:3], 30 fps, 30 tbr, 90k tbn, 60 tbc Side data: cpb: bitrate max/min/avg: 100/0/0 buffer size: 1835008 vbv_delay: N/A Stream #0:1[0x90]: Data: klv (KLVA / 0x41564C4B) I am trying to preserve the klv data stream when converting it to mp4 but it seems imposible. 1. The first thing I am trying is to try to copy the data codec with the following command: ffmpeg -i klv.mpeg -map 0:v -vcodec h264 -map 0:a? -acodec aac -map 0:d? -codec copy output.mp4 But it results in the following error: [mp4 @ 01ff0d8c8fc0] Could not find tag for codec klv in stream #1, codec not currently supported in container Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument 2. The second thing that I am trying is to convert just the video and audio with the same command as above without the data stream. ffmpeg -i klv.mpeg -map 0:v -vcodec h264 -map 0:a? -acodec aac output.mp4 Then i extract just the klv with the following command: ffmpeg -i klv.mpeg -map 0:d -codec copy -f data output.klv After that I try to join the output.mp4 and the output.klv with: ffmpeg -i output.mp4 -i output.klv -map 0:v -map 0:a? -map 1:d? final.mp4 But the error is: [mov,mp4,m4a,3gp,3g2,mj2 @ 0288d7b2c040] Format mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1, misdetection possible! [mov,mp4,m4a,3gp,3g2,mj2 @ 0288d7b2c040] moov atom not found prueba.mp4: Invalid data found when processing input I tried to use the -movflags faststart as I have read also but with no successfull result. Is there anyway to do this? A lot of thanks in advance P Please consider the environment before printing this e-mail. ___ 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] Video recording date with ffprobe
Dear all, I would like to extract the date in which my video was recorded. Now I am using the following ffprobe command: ffmpeg -i video.mp4 -v quiet -select_streams v:0 -show_entries stream_tags=creation_time -of default=noprint_wrappers=1:nokey=1 Which prints the creation_time and I guess that it is the datetime in which the file was created. But I want the time in which the video was recorded, should it be in the video metadata? Is that possible to retrieve this value with ffmpeg? A lot of thanks. P Please consider the environment before printing this e-mail. ___ 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] Get bitrate from UDP source
Dear All, Is that possible to get the bitrate from an UDP source? My issue is the same that this one opened ticket?: https://trac.ffmpeg.org/ticket/6470 I stream a video over udp and i try to retrieve its bitrate with ffprobe: ffprobe -i udp://239.192.18.17:1234 but I am obtaining N/A as bitrate. A lot of thanks, Regards. P Please consider the environment before printing this e-mail. ___ 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] Histogram variance of an image
Dear All, I would like to extract the first frame of a video that contains some 'information', I do not want just one color frames (White,red, black…). In order to achieve that the histogram variance calculation of an image could be a Good starting point. I would like that the variance is low so I guess I would have an image from the video with low difference between its pixels. (Not al pixels White). Is that posible to achieve that with ffmpeg or ffprobe?, what I found at the moment is that i can print the histogram with: ffplay -i input -vf histogram A lot of thanks, P Please consider the environment before printing this e-mail. ___ 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] DASH content FROM UDP (same bitrate in dash manifest for all adaptation sets)
Dear all, ffmpeg –i udp://127.0.0.1:12007 –r 25 -c:v libx264 -c:a aac -b:a 128k -ac 1 -ar 44100 –b:d 2M -map v:0 -b:v:0 2M -map v:0 -b:v:1 145k -map v:0 -b:v:2 365k -map 0:a? -f dash dash.mpd 1. First I start streaming my video with UDP and ffmpeg. 2. Then I start to generate dash content with the command above, also with ffmpeg. for different bitrates 2Mbps, 145kbps, 365kbps. The result of my manifest is the following SAME BITRATE for the three adaptation sets: Why is the reason for that behaviour? A lot of thanks P Please consider the environment before printing this e-mail. ___ 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 DASH with KLV metadata
Dear all, I am trying to generate dash content with klv metadata, I tried several combinations for that, the last one it seems to have more sense to me is: ffmpeg -i videompeg -r 25 -c:v libx264 -c:a aac -b:a 128k -ac 1 -ar 44100 -b:d 2M -map v:0 -b:v:0 2M -map v:0 -b:v:1 145k -map v:0 -b:v:2 365k -map 0:a? -map 0:d? -b:d 2M -dcodec copy -f dash dash.mpd It seems that klv codec is not supported by ffmpeg that is why I am trying to do '-dcodec copy'. But for dash is not working. Here is the output: Input #0, mpegts, from 'video.mpeg': Duration: 00:01:30.80, start: 0.50, bitrate: 1347 kb/s Program 1 Stream #0:0[0x3e8]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bt470bg, progressive), 640x480 [SAR 1:1 DAR 4:3], 30 fps, 30 tbr, 90k tbn, 60 tbc Side data: cpb: bitrate max/min/avg: 100/0/0 buffer size: 1835008 vbv_delay: N/A Stream #0:1[0x90]: Data: klv (KLVA / 0x41564C4B) Stream mapping: Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264)) Stream #0:0 -> #0:1 (mpeg2video (native) -> h264 (libx264)) Stream #0:0 -> #0:2 (mpeg2video (native) -> h264 (libx264)) Stream #0:1 -> #0:3 (copy) Press [q] to stop, [?] for help [libx264 @ 0218065a6580] using SAR=1/1 [libx264 @ 0218065a6580] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 0218065a6580] profile High, level 3.0, 4:2:0, 8-bit [libx264 @ 0218065a6580] 264 - core 161 r3018 db0d417 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=2000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [libx264 @ 0218065a2c40] using SAR=1/1 [libx264 @ 0218065a2c40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 0218065a2c40] profile High, level 3.0, 4:2:0, 8-bit [libx264 @ 0218065a2c40] 264 - core 161 r3018 db0d417 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=145 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [libx264 @ 0218065a8380] using SAR=1/1 [libx264 @ 0218065a8380] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 0218065a8380] profile High, level 3.0, 4:2:0, 8-bit [libx264 @ 0218065a8380] 264 - core 161 r3018 db0d417 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=365 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [dash @ 0218065a9640] Opening 'init-stream0.m4s' for writing [dash @ 0218065a9640] Opening 'init-stream1.m4s' for writing [dash @ 0218065a9640] Opening 'init-stream2.m4s' for writing [dash @ 0218065a9640] Opening 'init-stream3.m4s' for writing [mp4 @ 021810ef1100] Could not find tag for codec klv in stream #0, codec not currently supported in container Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument Error initializing output stream 0:2 -- [libx264 @ 0218065a6580] final ratefactor: 17.61 [libx264 @ 0218065a2c40] final ratefactor: 40.32 [libx264 @ 0218065a8380] final ratefactor: 32.33 Conversion failed! ### For me it does not make that much sense because when I do this: ffmpeg -i video.mpg -map 0:d -codec copy -f data output.klv It works, but i need that my mpeg dash chunks to have the klv content. Is there any help? Thanks P Please consider the
[FFmpeg-user] Non-mandatory audio
Dear all, I am using the following command to generate dash content from a file: ffmpeg -i video.mp4 –r 25 -c:v libx264 -c:a aac -b:a 128k -ac 1 -ar 44100 -map v:0 -b:v:0 2M -map v:0 -b:v:1 145k -map v:0 -b:v:2 365k -map 0:a -f dash dash.mpd But sometimes I have streams with audio and sometimes not. Is there anyway to make this command to not break if the video file does not contains audio? A lot of thanks P Please consider the environment before printing this e-mail. ___ 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] Video is not reproduced in VLC when streaming in udp with ffmpeg
The problem is not related with multicast. Multicast is for deliver a stream to several devices, and I want test the streaming in my own computer, that is why I am using 127.0.0.1 because it references to my own computer (the localhost ip). It seemed that I needed a buffer in reception. I tried with ffplay -i udp://127.0.0.1:12003?buffer_size=1, it worked. Thanks :-) De: ffmpeg-user en nombre de andrei ka Enviado: jueves, 8 de octubre de 2020 10:19:18 Para: FFmpeg user questions Asunto: Re: [FFmpeg-user] Video is not reproduced in VLC when streaming in udp with ffmpeg first type 'multucast address' in google... :-) ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://urldefense.proofpoint.com/v2/url?u=https-3A__ffmpeg.org_mailman_listinfo_ffmpeg-2Duser=DwIGaQ=CIoxZ4z5BqFvKvSGFOTo726QZIiNTc_M9CmngT-Pla4=6hC3rvTBWUFDzy12mBL-ibcRFc1EHXzwjcFCetQx-fY=BcpYxqiJBF2iLD98AteQ5RDxaC5WCOYcP7zVyUsLVKk=R_nRwzK2t5Bode8YxNGs8LIa97oc-PNNOsgTQQ7xVJk= To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". P Please consider the environment before printing this e-mail. ___ 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] Video is not reproduced in VLC when streaming in udp with ffmpeg
Dear all, I am trying to stream a video using the following command ffmpeg -i video.mp4 -map 0 -codec copy -f mpegts udp://127.0.0.1:12000, then I place VLC listening and the video is not reproduced. ¿Is there any help? P Please consider the environment before printing this e-mail. ___ 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] Streaming DASH with ffmpeg
And do you know if it is posible to do something like this: ffmpeg -re -i http://localhost:5055/dash.mpd dashvideo.mp4 I have set up a webserver into IIS with a dash manifest and the segment chunks so I would like to know to do that? but it is not working. A lot of thanks in advance De: ffmpeg-user en nombre de andrei ka Enviado: martes, 6 de octubre de 2020 10:09:35 Para: FFmpeg user questions Asunto: Re: [FFmpeg-user] Streaming DASH with ffmpeg On Tue, Oct 6, 2020 at 8:25 AM Mar Andrés López wrote: > I need to stream the video with dash over UDP. Is posible to do that in > just one command afaik you can't, it sends chunks and updates manifests at the same time, you'd need rewrite ffmpeg to serialise it and encapsulate. and yet, if you udp looses packets and bad luck it looses manifest transfert you'd be screwed up. at most, you cand send you encoded live over srt (preferred protocol for udp in terms of reliability & bw usage) and on the receiving part repackage it to dash... ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://urldefense.proofpoint.com/v2/url?u=https-3A__ffmpeg.org_mailman_listinfo_ffmpeg-2Duser=DwIGaQ=CIoxZ4z5BqFvKvSGFOTo726QZIiNTc_M9CmngT-Pla4=6hC3rvTBWUFDzy12mBL-ibcRFc1EHXzwjcFCetQx-fY=tYiCJ9Ewc_QAlrB2nf_ghYd-EZmG6Ctqp-L70qyMaLM=AS4x3DVlixsXoM5fQwHMc0ohzt1nUr9omG7fIVzJxrw= To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". P Please consider the environment before printing this e-mail. ___ 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] Streaming DASH with ffmpeg
That seems really Good! A lot of thanks. De: ffmpeg-user en nombre de andrei ka Enviado: martes, 6 de octubre de 2020 10:03:53 Para: FFmpeg user questions Asunto: Re: [FFmpeg-user] Streaming DASH with ffmpeg :-) e.g. : https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_leandromoreira_live-2Dstream-2Dfrom-2Ddesktop=DwIGaQ=CIoxZ4z5BqFvKvSGFOTo726QZIiNTc_M9CmngT-Pla4=6hC3rvTBWUFDzy12mBL-ibcRFc1EHXzwjcFCetQx-fY=Id89CH79UYOFLOVFnmMSvXqs7r2CY_kj9Ky03292rLc=IiwxRWv6drFPLoYJXxc7dvh7XyrCEe0-mTfG0e6I2kY= On Tue, Oct 6, 2020 at 8:25 AM Mar Andrés López wrote: > Dear All, > > > I am new in ffmpeg, I was Reading the documentation that ffmpeg has > available for dash. The given command example is the following: > > > ffmpeg -re -i -map 0 -map 0 -c:a libfdk_aac -c:v libx264 \ > -b:v:0 800k -b:v:1 300k -s:v:1 320x170 -profile:v:1 baseline \ > -profile:v:0 main -bf 1 -keyint_min 120 -g 120 -sc_threshold 0 \ > -b_strategy 0 -ar:a:1 22050 -use_timeline 1 -use_template 1 \ > -window_size 5 -adaptation_sets "id=0,streams=v id=1,streams=a" \ > -f dash /path/to/out.mpd > > > In wich the output is the manifest .mpd, that produces the segments for a > video input with two encodings and qualities (two representations for the > video stream and two representations for the audio stream) but I need to > stream the video with dash over UDP. Is posible to do that in just one > command? with dash? > > > Do you have any guideline how to stream with dash? > > > A lot of thanks, > > Regards. > > P Please consider the environment before printing this e-mail. > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://urldefense.proofpoint.com/v2/url?u=https-3A__ffmpeg.org_mailman_listinfo_ffmpeg-2Duser=DwIGaQ=CIoxZ4z5BqFvKvSGFOTo726QZIiNTc_M9CmngT-Pla4=6hC3rvTBWUFDzy12mBL-ibcRFc1EHXzwjcFCetQx-fY=Id89CH79UYOFLOVFnmMSvXqs7r2CY_kj9Ky03292rLc=J27HbIFA4oSjbreWLLLcxHt0Pa4qR8OEYGUbP6OTsqI= > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://urldefense.proofpoint.com/v2/url?u=https-3A__ffmpeg.org_mailman_listinfo_ffmpeg-2Duser=DwIGaQ=CIoxZ4z5BqFvKvSGFOTo726QZIiNTc_M9CmngT-Pla4=6hC3rvTBWUFDzy12mBL-ibcRFc1EHXzwjcFCetQx-fY=Id89CH79UYOFLOVFnmMSvXqs7r2CY_kj9Ky03292rLc=J27HbIFA4oSjbreWLLLcxHt0Pa4qR8OEYGUbP6OTsqI= To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". P Please consider the environment before printing this e-mail. ___ 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] Streaming DASH with ffmpeg
Dear All, I am new in ffmpeg, I was Reading the documentation that ffmpeg has available for dash. The given command example is the following: ffmpeg -re -i -map 0 -map 0 -c:a libfdk_aac -c:v libx264 \ -b:v:0 800k -b:v:1 300k -s:v:1 320x170 -profile:v:1 baseline \ -profile:v:0 main -bf 1 -keyint_min 120 -g 120 -sc_threshold 0 \ -b_strategy 0 -ar:a:1 22050 -use_timeline 1 -use_template 1 \ -window_size 5 -adaptation_sets "id=0,streams=v id=1,streams=a" \ -f dash /path/to/out.mpd In wich the output is the manifest .mpd, that produces the segments for a video input with two encodings and qualities (two representations for the video stream and two representations for the audio stream) but I need to stream the video with dash over UDP. Is posible to do that in just one command? with dash? Do you have any guideline how to stream with dash? A lot of thanks, Regards. P Please consider the environment before printing this e-mail. ___ 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] av_interleaved_write_frame(): Invalid argument
Dear all, I want to set the same timestamps in my video.mpg which has a video stream and a klv data stream, when I perform this command: ffmpeg -vsync drop -i video.mpg -map 0 -codec copy -f mpegts output.mpg [mpegts @ 01ee5461df40] Timestamps are unset in a packet for stream 1. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly av_interleaved_write_frame(): Invalid argument frame=1 fps=0.0 q=-1.0 Lsize= 20kB time=00:00:00.00 bitrate=N/A speed= 0x video:58kB audio:0kB subtitle:0kB other streams:18kB global headers:0kB muxing overhead: unknown Conversion failed! How can I set the timestamps?? P Please consider the environment before printing this e-mail. ___ 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] MPEGTS changes the duration of my video
Dear all, When I process my video with ffmpeg and I set the format to mpegts, ¿why It changes the duration of my video from 00:00:04.56 to 00:00:04.00? ffmpeg -i video.mpg -map 0 -f mpegts out.mpg ffmpeg output for video.mpg: Duration: 00:00:04.56, start: 6916.00, bitrate: 4617 kb/s ffmpeg output for out.mpg = Duration: 00:00:04.00, start: 1.96, bitrate: 3357 kb/s A lot of thanks, Regards P Please consider the environment before printing this e-mail. ___ 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] KLV in ffmpeg
Dear all, I guess I found the problem why it was not working. My KLV stream is the stream 1 See the log, [mpegts @ 026b6a21c380] start time for stream 1 is not set in estimate_timings_from_pts How can I set the start time just for the stream 1?? >>ffmpeg -i testklv.mpg ffmpeg version 4.3 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 9.3.1 (GCC) 20200621 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf libavutil 56. 51.100 / 56. 51.100 libavcodec 58. 91.100 / 58. 91.100 libavformat58. 45.100 / 58. 45.100 libavdevice58. 10.100 / 58. 10.100 libavfilter 7. 85.100 / 7. 85.100 libswscale 5. 7.100 / 5. 7.100 libswresample 3. 7.100 / 3. 7.100 libpostproc55. 7.100 / 55. 7.100 [mpegts @ 026b6a21c380] start time for stream 1 is not set in estimate_timings_from_pts Input #0, mpegts, from 'testklv.mpg': Duration: 00:00:04.00, start: 1.96, bitrate: 4574 kb/s Program 1 Metadata: service_name: Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, progressive), 1024x768 [SAR 1:1 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50 tbc Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 1130496 vbv_delay: N/A Stream #0:1[0x101]: Data: klv (KLVA / 0x41564C4B) ____ De: Mar Andrés López Enviado: miércoles, 23 de septiembre de 2020 11:11:24 Para: ffmpeg-user@ffmpeg.org Asunto: KLV in ffmpeg Dear all, I am having so many issues trying to clip a video with KLV. When I edit a video with KLV I lose the KLV. I have read about -map 0 option, from my understading it copies all the streams of a video from the input 0. The command I have tried and it is not working is the following: ffmpeg -ss 00:01:00.000 -t 00:04:00.000 -re -i video.mpg -map 0 -c copy -f mpegts out.mpg When I use a video player that displays KLV the KLV is not displayed for out.mpg, ¿Do you have any help please? A lot of thanks. P Please consider the environment before printing this e-mail. ___ 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] KLV in ffmpeg
Dear all, I am having so many issues trying to clip a video with KLV. When I edit a video with KLV I lose the KLV. I have read about -map 0 option, from my understading it copies all the streams of a video from the input 0. The command I have tried and it is not working is the following: ffmpeg -ss 00:01:00.000 -t 00:04:00.000 -re -i video.mpg -map 0 -c copy -f mpegts out.mpg When I use a video player that displays KLV the KLV is not displayed for out.mpg, ¿Do you have any help please? A lot of thanks. P Please consider the environment before printing this e-mail. ___ 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".