Re: [FFmpeg-user] It appears that FFmpeg is slipping into command mode

2025-07-28 Thread Ferdi Scholten
On 29-07-2025 01:40, Mark Filipak wrote: On 28/07/2025 17.52, Jim DeLaHunt wrote: Mark, I get the impression that you are not hearing what people in this thread are trying to tell you. On 2025-07-28 14:05, Mark Filipak wrote: FFmpeg is clearly entering a command mode even though I'm not submit

Re: [FFmpeg-user] Spontaneously slipping into command mode

2025-07-27 Thread Ferdi Scholten
On 28-07-2025 02:18, Jim DeLaHunt wrote: On 2025-07-27 15:45, Mark Filipak wrote: On 27/07/2025 16.51, Jim DeLaHunt wrote: ...I understand that FFmpeg routinely monitors stdin while running... Oh, yes, of course. But-- But-- But my understanding is that > redirects to stdout. I'm not sending

Re: [FFmpeg-user] It appears that FFmpeg is slipping into command mode

2025-07-27 Thread Ferdi Scholten
On 27-07-2025 01:36, Mark Filipak wrote: On 26/07/2025 19.17, Mark Filipak wrote: PREFACE: It appears that FFmpeg is slipping into command mode, taking the next couple letters from stdin, and interpreting them. That screws up the remaining script of course. Note: This is using Gyan's latest gi

Re: [FFmpeg-user] out_time_us wrong or strangely inaccurate

2025-07-04 Thread Ferdi Scholten
How do I get the exact duration of a video file? Best would be of course if every frame is marked with its correct timestamp. Why not use ffprobe? |ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 |./recordedVideo.webm webm containers also store the du

Re: [FFmpeg-user] Yes or No? About the processing pipeline.

2025-06-17 Thread Ferdi Scholten
On 17-06-2025 19:47, Mark Filipak wrote: On 17/06/2025 13.43, Paul B Mahol wrote: On Tue, Jun 17, 2025 at 5:41 PM Mark Filipak < markfilipak.imdb-at-gmail@ffmpeg.org> wrote: On 17/06/2025 13.37, Paul B Mahol wrote: On Tue, Jun 17, 2025 at 5:33 PM Mark Filipak < markfilipak.imdb-at-gmail

Re: [FFmpeg-user] FLAC experience so far

2025-06-09 Thread Ferdi Scholten
On 09-06-2025 01:30, Mark Filipak wrote: The source: c:\01.WAV 620,398,844 bytes ffmpeg^  -i c:\01.WAV^  -map 0^  -c flac^  "c:\Manual Goettsching [1992] E2-E4.flac.m4a" Provoked: "Could not find tag for codec flac in stream #0, codec not currently supported in container". ffmpeg^  -i c:\0

Re: [FFmpeg-user] MP4s (and M4As) for music

2025-06-08 Thread Ferdi Scholten
On 08-06-2025 18:59, Mark Filipak wrote: On 08/06/2025 04.47, Ferdi Scholten wrote: On 08-06-2025 04:21, Mark Filipak wrote: The script above provoked this: "Too many bits 15269.442177 > 12288 per frame requested, clamping to max". Of course, I have no idea what that's a

Re: [FFmpeg-user] MP4s (and M4As) for music

2025-06-08 Thread Ferdi Scholten
On 08-06-2025 04:21, Mark Filipak wrote: The script above provoked this: "Too many bits 15269.442177 > 12288 per frame requested, clamping to max". Of course, I have no idea what that's about. Do you? "Too many bits"? Simple, the fixed bitrate you specified is very much too high for the au

Re: [FFmpeg-user] Is libplacebo only for GPUs?

2025-05-16 Thread Ferdi Scholten
Can you share ffmpeg command where you use libplacebo over opengl? No, there is no such command because that is not how libplacebo is meant to work. Libplacebo uses the hardware abstractions that are available, it is not possible to specify which backend to use. It takes the best one availab

Re: [FFmpeg-user] Is libplacebo only for GPUs?

2025-05-15 Thread Ferdi Scholten
On 16-05-2025 01:33, Mark Filipak wrote: On 15/05/2025 18.48, Ferdi Scholten wrote: пт, 16 мая 2025 г., 00:12 Mark Filipak: On 15/05/2025 16.44, Carl Zwanzig wrote: On 5/15/2025 1:33 PM, Mark Filipak wrote: What if I don't have a GPU? Then you have a 25+ year old video card? L

Re: [FFmpeg-user] Is libplacebo only for GPUs?

2025-05-15 Thread Ferdi Scholten
пт, 16 мая 2025 г., 00:12 Mark Filipak: On 15/05/2025 16.44, Carl Zwanzig wrote: On 5/15/2025 1:33 PM, Mark Filipak wrote: What if I don't have a GPU? Then you have a 25+ year old video card? Laptop AFAIK all video chips for the last few decades have had some form of GPU, although it may n

Re: [FFmpeg-user] libplacebo in 7.1.1 and vaapi decode/encode on rx550

2025-04-27 Thread Ferdi Scholten
I am trying to explore new world of Vulkan. Just compiled vulkan-sdk 1.4.304 and thus ffmpeg 7.1.1 with libplacebo and vulkan filters/hwaccels/encode. Because Vulkan decode for some reason does not work on my AMD RX550 (polaris12) even with RADV_VIDEO_ENCODE=1 RADV_VIDEO_DECODE=1 I am trying to

Re: [FFmpeg-user] Subtitle track command consolidation

2025-02-16 Thread Ferdi Scholten
On 16-02-2025 21:11, Robert Schwalbe wrote: Greetings! Have mercy ... I have one input file that contains a single video track and two audio tracks. I discard the unwanted audio track with the following command:     ffmpeg -i input.mp4 -map 0:v -map 0:a:1 -c copy tmp.mp4 From an input f

Re: [FFmpeg-user] How to cut a clip from video with subtitles?

2025-02-15 Thread Ferdi Scholten
On 15-02-2025 13:25, mb...@mbork.pl wrote: Hi all, I have a video with subtitles (as an srt file). I want to clip a fragment from it, scaling it down to a worse resolution, _and_ put the subtitles in the resulting clip. This is how I do it now: time ffmpeg -y -i some_film.mp4 -ss 121052ms -to

Re: [FFmpeg-user] convert mkv to mp4

2025-02-13 Thread Ferdi Scholten
On 13-02-2025 20:57, KoSza wrote: Hello, Great improvement, thank you. /volume1/@appstore/ffmpeg7/bin/ffmpeg -i /volume1/video/series/Dune.Prophecy.S01.2160p.MAX.WEB-DL.DDP5.1.Atmos.DV.HDR.H.265.HUN.ENG-PTHD/Dune.Prophecy.S01E02.2160p.MAX.WEB-DL.DDP5.1.Atmos.DV.HDR.H.265.HUN.ENG-PTHD.mkv -map 0

Re: [FFmpeg-user] convert mkv to mp4

2025-02-01 Thread Ferdi Scholten
On 02-02-2025 02:31, Moritz Barsnick via ffmpeg-user wrote: On Sat, Feb 01, 2025 at 23:11:49 +0100, Ferdi Scholten wrote: --disable-encoder=eac3 --disable-decoder=eac3 This is why the audio is not copied. This FFmpeg package from synology is severely crippled. Probably has to do with licensing

Re: [FFmpeg-user] convert mkv to mp4

2025-02-01 Thread Ferdi Scholten
On 31-01-2025 12:11, KoSza wrote: Hello, Thank you for your help. I did not disabled anything, only istalled the package to my Synology nas and tried to convert. You can undestand if I am searching for an out-of -the-box solution I did not start to cut the boxes to pieces :) So the solution m

Re: [FFmpeg-user] Licensing rules

2025-01-29 Thread Ferdi Scholten
On 29-01-2025 08:48, Avitrr Aparnesh via ffmpeg-user wrote: Hello, We are developing a video ingestion,live-stream, playback, and analytics service. We are planning to use FFmpeg as a core component of our video encoding pipeline. Our system will involve live streaming from various cameras, sto

Re: [FFmpeg-user] convert mkv to mp4

2025-01-10 Thread Ferdi Scholten
On 10-01-2025 15:17, KoSza wrote: [mp4 @ 0x55d40f14ab40] Could not find tag for codec subrip in stream #1, codec not currently supported in container MP4 containers do not support subrip subtitles. You can only use mov_text subtitles in mp4 containers so you will have to convert subrip to mov_t

Re: [FFmpeg-user] ffmpeg v7.1 h264 (libx264) stretching video on X-axis (take2 w/ smaller pix)

2025-01-03 Thread Ferdi Scholten
On 03-01-2025 00:59, Dat Head wrote: first time posting here, take it easy on me ;-) seems i slightly exceeded the size limit and posting was truncated ffmpeg version 7.1-essentials_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers built with gcc 14.2.0 (Rev1, Built by MSYS2 pr

Re: [FFmpeg-user] Trying to compile ffmpeg 7.1

2024-12-20 Thread Ferdi Scholten
On Fri, 20 Dec 2024 05:05:50 + Carl Zwanzig wrote: On 12/19/2024 6:18 PM, David Niklas via ffmpeg-user wrote: I don't know what to put into the arch argument to configure. I thought, znver2 would be sufficient. But I just get "warning unknown architecture znver2" Is znver2 not supported or

Re: [FFmpeg-user] Creating MP4 with G711 audio

2024-11-21 Thread Ferdi Scholten
On 21-11-2024 10:41, d.gorde...@ngslab.ru wrote: Hello. I'm trying to make a mp4 file from a video/audio stream. When audio is AAC it works fine. But I cannot pack G711U audio. |av_register_all(); avcodec_register_all(); av_log_set_callback(nullptr); av_format_context_ = avformat_alloc_cont

Re: [FFmpeg-user] Trying to understand ffmpeg cpu usage in this case of capturing rtsp streams

2024-11-09 Thread Ferdi Scholten
On Sat, Nov 09, 2024 at 13:11:56 -0500, Jim Ruxton wrote: "apt-list ffmpeg" shows the version 7 package is installed /jammy-apps-security,now 7:4.4.2-0ubuntu0.22.04.1+esm5 amd64 [installed] That is not version 7, that is version 4.4.2. The PPA you quoted would supply version 7.0.1. (Isn't "jamm

Re: [FFmpeg-user] Trying to understand ffmpeg cpu usage in this case of capturing rtsp streams

2024-11-09 Thread Ferdi Scholten
On 09-11-2024 19:31, Moritz Barsnick via ffmpeg-user wrote: On Sat, Nov 09, 2024 at 13:11:56 -0500, Jim Ruxton wrote: "apt-list ffmpeg" shows the version 7 package is installed /jammy-apps-security,now 7:4.4.2-0ubuntu0.22.04.1+esm5 amd64 [installed] That is not version 7, that is version 4.4

Re: [FFmpeg-user] Trying to understand ffmpeg cpu usage in this case of capturing rtsp streams

2024-11-09 Thread Ferdi Scholten
pyright (c) 2000-2021 the FFmpeg developers built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04) There is no 7 showing up in the version number, though maybe I already have the newest version installed? On Thu, Nov 7, 2024 at 6:37 PM Ferdi Scholten wrote: I'm using Ubuntu 22.04 and ffmpeg versi

Re: [FFmpeg-user] RETRIEVE FRAME RATE WITH DECIMAL VALUE

2024-11-07 Thread Ferdi Scholten
On 07-11-2024 21:16, Hervé ANSELME wrote: Hi, using ffprobe release 6.1, I can retrieve the frame rate of a film with the following command : ffprobe -v error -select_streams v:0 -show_entries stream=avg_frame_rate -of default=noprint_wrappers=1 "the video.mkv" which for example, retrieves

Re: [FFmpeg-user] Trying to understand ffmpeg cpu usage in this case of capturing rtsp streams

2024-11-07 Thread Ferdi Scholten
I'm using Ubuntu 22.04 and ffmpeg version 4.4.2-0 I'm capturing 3 rtsp streams as shown at the bottom . Stream A resolution is 1600x1200 Stream B and Stream C resolution is 384x192 . Stream A and B are coming from one device (ip address) and Stream C is coming from a second device (ip address) W

Re: [FFmpeg-user] Can this trigger VBR encoding for x264, x265, and libvvenc ?

2024-11-01 Thread Ferdi Scholten
coded simulataenously. So, even if I wish, I can't use 2 pass encoding. So, which option from the 2 should I stick to ? CVBR or ABR ? On Fri, 1 Nov, 2024, 3:35 pm Ferdi Scholten, wrote: Also, in general case, for gaming content, between CVBR and ABR, which provides better quality at same

Re: [FFmpeg-user] Building ffmpeg with vulkan support in docker container.

2024-11-01 Thread Ferdi Scholten
Hello, Attempting to build ffmpeg that has vulkan support enabled in a docker container. The container environment is ubuntu 24.04 with installed packages libvulkan-dev, (libvulkan1), vulkan-icd, vulkan-tools. As far as I understand vulkan is supposed to be autodetected by ffmpeg configure (bu

Re: [FFmpeg-user] Building ffmpeg with vulkan support in docker container.

2024-11-01 Thread Ferdi Scholten
Hello, Attempting to build ffmpeg that has vulkan support enabled in a docker container. The container environment is ubuntu 24.04 with installed packages libvulkan-dev, (libvulkan1), vulkan-icd, vulkan-tools. As far as I understand vulkan is supposed to be autodetected by ffmpeg configure (bu

Re: [FFmpeg-user] Can this trigger VBR encoding for x264, x265, and libvvenc ?

2024-11-01 Thread Ferdi Scholten
Also, in general case, for gaming content, between CVBR and ABR, which provides better quality at same filesizes ? On Wed, 30 Oct, 2024, 7:40 pm Ferdi Scholten, wrote: Okay, thank you sir. Should I keep the bufsize 5 times that of maxrate ? Will that help in effective allocation of bitrates

Re: [FFmpeg-user] Can this trigger VBR encoding for x264, x265, and libvvenc ?

2024-10-30 Thread Ferdi Scholten
and x265 for getting better quality at same filesizes btw). On Wed, 30 Oct, 2024, 6:25 pm Ferdi Scholten, wrote: If I set " -b:v 5000k -maxrate 6000k -minrate 4000k " for x264, x265 and vvenc, will this enable VBR encoding for these thre

Re: [FFmpeg-user] Can this trigger VBR encoding for x264, x265, and libvvenc ?

2024-10-30 Thread Ferdi Scholten
If I set " -b:v 5000k -maxrate 6000k -minrate 4000k " for x264, x265 and vvenc, will this enable VBR encoding for these three encoders ? ___ If "constrained VBR" is what you want then the answer is yes. It is not true VBR because it will never get be

Re: [FFmpeg-user] Overlapping frames issue with -seek_frames_individually set to false

2024-10-30 Thread Ferdi Scholten
Hello, I am struggling with ffmpeg to generate thumbnails for video files. We have to use `-seek_streams_individually false` because setting it to true takes far too long to retrieve frames near the end of longer content (> 30s runtime for content > 1h30m). Here is the command we currently have:

Re: [FFmpeg-user] Unable to accurately split vmaf calculation

2024-10-15 Thread Ferdi Scholten
Hi, I am trying to split vmaf calculation work across multiple threads by logically dividing the video ( not literally ) I tried following 2 commands to do vmaf on a 20.08 sec ( 477 frames ) video *For 1st 10 second: * *ffmpeg -i transcodedA.mp4 -i sourceA.mxf -filter_complex "[0:v][1:v]sca

Re: [FFmpeg-user] Unable to accurately split vmaf calculation

2024-10-14 Thread Ferdi Scholten
Hi, I am trying to split vmaf calculation work across multiple threads by logically dividing the video ( not literally ) I tried following 2 commands to do vmaf on a 20.08 sec ( 477 frames ) video *For 1st 10 second: * *ffmpeg -i transcodedA.mp4 -i sourceA.mxf -filter_complex "[0:v][1:v]scale2

Re: [FFmpeg-user] OpenVPL-cpu and ffmpeg's qsv encoder

2024-10-14 Thread Ferdi Scholten
On 14-10-2024 16:39, Andrew Randrianasulu wrote: On Mon, Oct 14, 2024 at 5:25 PM Ferdi Scholten wrote: Hello all! I was trying to debug my _qsv profiles for Cinelerra-GG (of course) and was hitting wall due to my machine being AMD CPU/Nvidia (nouveau) GPU. Then I foundhttps

Re: [FFmpeg-user] OpenVPL-cpu and ffmpeg's qsv encoder

2024-10-14 Thread Ferdi Scholten
Hello all! I was trying to debug my _qsv profiles for Cinelerra-GG (of course) and was hitting wall due to my machine being AMD CPU/Nvidia (nouveau) GPU. Then I foundhttps://github.com/oneapi-src/oneVPL-cpu/blob/master/INSTALL.md Deprecated by intel but still buildable after some fighting. bas

Re: [FFmpeg-user] Fixing Lag in FFplay After Kept in Background

2024-10-02 Thread Ferdi Scholten
found the same behvaior (no improvment). Let me know if you need any specific details. Thanks On Wednesday 2 October, 2024 at 12:38:57 am IST, Ferdi Scholten wrote: On my old intel hardware (Westmere based) the 6.6 kernel made the difference, where the CFS scheduler was replaced by the EEVDF

Re: [FFmpeg-user] Fixing Lag in FFplay After Kept in Background

2024-10-01 Thread Ferdi Scholten
On 01-10-2024 18:25, Ravi Joshi via ffmpeg-user wrote: Hello everyone, Good day. I'm using FFplay on Ubuntu 20.04 (CPU-only) to watch a livestream. When the FFplay window is put in the background, the stream lags, and the delay persists even after bringing the window to the foreground. On th

Re: [FFmpeg-user] How to download and transcode video stream to mp4 and save the TS stream to file at the same time?

2024-09-30 Thread Ferdi Scholten
On 30-09-2024 18:03, Bo Berglund wrote: On Mon, 30 Sep 2024 20:36:04 +0530, Gyan Doshi wrote: On 2024-09-30 05:46 pm, Bo Berglund wrote: On Mon, 30 Sep 2024 13:40:44 +0530, Gyan Doshi wrote: On 2024-09-30 01:34 pm, Bo Berglund wrote: I checked with CharGPT and got the following: [quo

Re: [FFmpeg-user] How to download and transcode video stream to mp4 and save the TS stream to file at the same time?

2024-09-29 Thread Ferdi Scholten
On 30-09-2024 07:55, Bo Berglund wrote: On Mon, 30 Sep 2024 09:49:34 +0530, Gyan Doshi wrote: On 2024-09-30 01:29 am, Bo Berglund wrote: I have created a script that downloads Internet video streams (basically news programs) and transcodes to mp4 format with a fixed windows size. As soon

Re: [FFmpeg-user] How to reduce console output while downloading video stream?

2024-09-26 Thread Ferdi Scholten
On Thu, 26 Sep 2024 10:06:11 +0200, Bo Berglund wrote: On Thu, 26 Sep 2024 08:50:01 +0200, Ferdi Scholten wrote: How can I reduce this to only show some progress messages without all this noise? Is there a verbocity setting I can use? My download script reformats the video output on the go

Re: [FFmpeg-user] How to reduce console output while downloading video stream?

2024-09-25 Thread Ferdi Scholten
When downloading a live stream on Linux using ffmpeg I get a lot of noise on the screen like: [hls @ 0x17859d0] Skip ('#EXT-X-VERSION:3') [https @ 0x1a03eb0] Opening 'https://somesite.com/stream/bc-1727330916096.ts' for reading frame= 628 fps= 41 q=32.0 size=1280kB time=00:00:20.99 bitrate=

Re: [FFmpeg-user] How to reassemble raw packet data back into a new MP4 file?

2024-09-22 Thread Ferdi Scholten
Hi, Vincent, Thank you for your suggestion. Let me explain the real case: I have many MP4 files which lost some data in the tail, which make them not playable. I analyze these files manually and find the ftyp and moov boxes and their child boxes are all OK. But part of the data in mdat box are l

Re: [FFmpeg-user] How to reassemble raw packet data back into a new MP4 file?

2024-09-21 Thread Ferdi Scholten
On 21-09-2024 12:32, Alan Chen via ffmpeg-user wrote: What I remove is the last video and audio packet in each stream. All the meta data are still there, together with all remaining packet data as separate files. But I don't know how to utilize them in the commandline to reassemble the packets

Re: [FFmpeg-user] How to reassemble raw packet data back into a new MP4 file?

2024-09-21 Thread Ferdi Scholten
On 21-09-2024 10:57, Alan Chen via ffmpeg-user wrote: I try on another MP4 file with H264 codec video, but still get the same result. ___ Your file needs to conform to te specifications in either part 12 and/or 14 of the standard in which the .MP4

Re: [FFmpeg-user] How to reassemble raw packet data back into a new MP4 file?

2024-09-21 Thread Ferdi Scholten
On 21-09-2024 04:39, Alan Chen via ffmpeg-user wrote: I am using ffmpeg. I use the following command to get all packet info: ffprobe -print_format json -show_packets -show_streams -show_entries packet=pts,duration,size,codec_type,pos test.mp4 > test.mp4.info Then based on each packet info, suc

Re: [FFmpeg-user] Using FFMpeg with Nvidia CUDA to crop and scale videos

2024-09-10 Thread Ferdi Scholten
My NVIDIA and FFMPEG configuration is as follows: Linux TestBox1 6.8.0-41-generic #41-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 2 20:41:06 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux NVIDIA-Linux-x86_64-560.31.02 ffmpeg version git-2024-08-19-507c2a577 encoders: VD av1_nvencNVIDIA NVENC

Re: [FFmpeg-user] It is not possible to complete 2 passes/dash

2024-09-05 Thread Ferdi Scholten
ffmpeg -i {file} -cpu-used 8 -movflags +faststart -map_metadata -1 -c:v libaom-av1 -pix_fmt yuv420p -an -map 0:v:0 -filter:v:0 {crop},scale=-2:144,fps={min(30, fps)},setdar=16/9 -map 0:v:0 -filter:v:1 {crop},scale=-2:240,fps={min(30, fps)},setdar=16/9 -pass 1 -f null /dev/null && ffmpeg -i {file

Re: [FFmpeg-user] Send unix socket data without encoding

2024-07-09 Thread Ferdi Scholten
Hi Team, I am trying to send h264 video data to mediasoup using ffmpeg. When I run this command ffmpeg -re -i unix:/tmp/media -map 0:v:0 -pix_fmt yuv420p -c:v libvpx -b:v 1000k -deadline realtime -cpu-used 4 -f tee "[select=v:f=rtp:ssrc=:payload_type=102]rtp:// 127.0.0.1:2064?rtcpport=20

Re: [FFmpeg-user] Rotate metadata flag not applied on mp4 ?

2024-07-06 Thread Ferdi Scholten
Hi, I have a few videos that have been shot upside down but lack the rotate flag so they play upside down in e.g. VLC. Here is an example : https://www.swisstransfer.com/d/48602faa-73aa-4c6d-b3bf-d2db6b2ffe9c I'd like to add the rotation information without reencoding. Many pages indicate it can

Re: [FFmpeg-user] SD Compress to h.265

2024-06-13 Thread Ferdi Scholten
On 13-06-2024 20:24, Richard Bartczak via ffmpeg-user wrote: Hello, SD e.g.:   Duration: 01:23:37.68, start: 90008.907967, bitrate: 4243 kb/s   Program 17501   Stream #0:0[0x21](deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006), 492x250   Stream #0:1[0x1ff]: Video: mpeg2video (Main) ([2][0

Re: [FFmpeg-user] WebM & Opus Question

2024-06-12 Thread Ferdi Scholten
On 12-06-2024 20:15, Vlad Negru via ffmpeg-user wrote: Hello! I have a question, I'm trying something pretty simple, I have a WebM file/container downloaded from YouTube containing only 16-Bit Opus audio. I want to copy and retain just the audio part since this container only has audio anyway

Re: [FFmpeg-user] Convert iPhone MOV to Android MP4

2024-06-10 Thread Ferdi Scholten
On 10-06-2024 19:55, Reindl Harald wrote: this subject makes no sense because there is nothing like a "iPhone MOV" or "Android MP4" - a proper baseline h264 plays on both ___ There are however some differences between the .MOV container and the .MP4

Re: [FFmpeg-user] Query related to FFMpeg-kit Android

2024-06-05 Thread Ferdi Scholten
Hi, I am developing a feature in my Android application where I want to generate the video thumbnail of HLS video. I tried to generate the thumbnail using Android native MediaMetadataRetriever but it failed for HLS video so that is the reason I have decided to use FFMpeg and the only feature I wa

Re: [FFmpeg-user] Problems concatenating mp4 files: Non-monotonic DTS; previous: 824975, current: 140284; changing to 824976.

2024-05-25 Thread Ferdi Scholten
I need to concatenate several mp4 files that were taken with a cell phone, where some of them are landscape and others portrait. By simply concatenate them, the ones that are portrait end up rotated by 90 degrees in the final output. To solve this problem, I decided to rotate the portrait ones o

Re: [FFmpeg-user] ffmpeg wav lossless to youtube mov?

2024-05-23 Thread Ferdi Scholten
Hi, what is this supposed to be? 16 Bit with 44,1 kHz (CD) are sufficient. So, we have PCM_S16BE and PCM_S16LE. Whats the exact command to get it done? Thx Youtube simply does not accept lossless audio in a video (at all). You have to encode according to their specifications. They explicit

Re: [FFmpeg-user] ffmepg mipi csi video cpature

2024-05-22 Thread Ferdi Scholten
On 23-05-2024 06:16, Nikhil via ffmpeg-user wrote: This is the command i used ffmpeg -f v4l2 -i /dev/video0 -c:v libx264 -crf 23 -preset medium output.mp4 Also i used command suggested by ferdi, no progress ffmpeg -pix_fmt bayer_bggr8 -f v4l2 -s 1280x960 -i /dev/video0 -c:v libx264 -prese

Re: [FFmpeg-user] ffmepg mipi csi video cpature

2024-05-22 Thread Ferdi Scholten
On 22-05-2024 08:46, Nikhil via ffmpeg-user wrote: I need to test video record using ov5640 camera with mipi-csi interface, video record is working fine with usb wbcam with the same ffmpeg version but not with mipi camera On 22/05/24 12:22 pm, Paul B Mahol wrote: Not sure what you trying to s

Re: [FFmpeg-user] Concatenating mp4 files rotates the video

2024-05-22 Thread Ferdi Scholten
Anyways, what do I need to do to avoid these unrequested rotations? Remove the rotation metadata of the original files if they have the same rotation, Then concatenate the original video's using codec copy without loss of quality. (Converting to MPEG-2 does reduce quality (a lot) while creating

Re: [FFmpeg-user] Configure error with fontconfig

2024-04-30 Thread Ferdi Scholten
On Apr 30, 2024, at 13:53, Jim Worrall wrote: On Apr 30, 2024, at 11:29, Jim Worrall wrote: On Apr 30, 2024, at 09:41, Jim Worrall wrote: On Apr 29, 2024, at 23:00, Ferdi Scholten wrote: This may not be due to ffmpeg itself, but I would appreciate some help. Configure says that

Re: [FFmpeg-user] Configure error with fontconfig

2024-04-29 Thread Ferdi Scholten
This may not be due to ffmpeg itself, but I would appreciate some help. Configure says that pkg-config can’t find fontconfig.pc, but it seems to be in the PKG_CONFIG_PATH. # ./configure --cc=/usr/bin/gcc \ --prefix=$TARGET \ --pkg-config-flags="--static" \ --extra-cflags="-I/usr/local/include" \

Re: [FFmpeg-user] VBR encoding not supported ???

2024-04-28 Thread Ferdi Scholten
On 28-04-2024 12:44, Aditya Dandavate wrote: I was converting flac audio to aac_lc with libfdk_aac with VBR encoding. But I saw a message about VBR encoding. The command and output of the command is as follows : Command : ffmpeg.exe -i input.flac -c:a libfdk_aac -afterburner 1 -frame_length 10

Re: [FFmpeg-user] How to create error log file ffmpeg Loudnorm?

2024-04-25 Thread Ferdi Scholten
On 25-04-2024 09:10, CMG DiGiTaL wrote: OK, but how to make the names of the log files, which will be generated in the Normalizando_lufs folder, match the names of the mp3 audios, e.g.: Blalala.log Cracrcra.log Dedede.log Rename them after they have been created, but before starting the next co

Re: [FFmpeg-user] How to create error log file ffmpeg Loudnorm?

2024-04-23 Thread Ferdi Scholten
On 24-04-2024 00:57, CMG DiGiTaL wrote: Em sáb., 24 de fev. de 2024 às 17:25, Carl Zwanzig escreveu: Always start by posting the complete ffmpeg command and unedited output, that way we don't have to guess about what the script is doing. z! ___ M

Re: [FFmpeg-user] Initialising hardware device fails with error -17

2024-04-22 Thread Ferdi Scholten
On 21-04-2024 22:53, Martin Stenzel via ffmpeg-user wrote: Error setting child device handle: -17 device=/dev/dri/renderD128 Did you test that this device does actually exist on your system? Can you specify what GPU you have? Does the error also occur if you leave out the explicit child devi

Re: [FFmpeg-user] amr wideband

2024-04-09 Thread Ferdi Scholten
Hey ffmpeg Team, I am trying to convert a wav file to an amr wideband format. I tried using different encoders: ffmpeg -i test/calibre.wav -f awb -c:a libvo_amrwbenc calibre.awb or: ffmpeg -i test/calibre.wav -f awb -c:a libfdk_aac calibre.awb I also tried without the "-f awb" option. Whe

Re: [FFmpeg-user] QUESTION ABOUT VIDEO CODECS : LIBX264 vs LIBX265

2024-03-31 Thread Ferdi Scholten
Hi all, I have a question about re-encoding a source video having libx264 video codec. Is there any advantage(s) to re-encode with the libx265, which is supposed to give better result than libx264 ? In other words, re-encoding with the x265 codec for the final video : can it improve the final

Re: [FFmpeg-user] RE-ENCODING "SIMULATION"

2024-03-02 Thread Ferdi Scholten
Hello all, By providing to ffmpeg (release 6.1) or ffprobe (release 6.1) : -> the path of a audio-video source file ; -> the parameters envisaged for re-encoding (audio+video codecs, audio+video bitrates, scale criterias) ; is it possible to know an assessment of the size of the final file (the

Re: [FFmpeg-user] ISSUE ABOUT EXTRACTING

2024-02-29 Thread Ferdi Scholten
Hi, Ferdi, Thank you for the tip. I checked it against what I'm doing. The 'pts_time's that it returns do not correlate with the exact times that are computed from frame counts. For example, pts_time=760.607200 should be exactly 760.3[364635..] (based on PTS=2854113 in a 24/1.001fps video

Re: [FFmpeg-user] ISSUE ABOUT libmp3lame AUDIO CODEC

2024-02-29 Thread Ferdi Scholten
Here are the technical infos about the source movie (the file that will be processed), infos provided by VLC MEDIA PLAYER : audio stream :   Codec: A52 Audio (aka AC3) (a52 )   Language: French   Description: AC3-5.1-VFQ   Sample rate: 48000 Hz and here is the command line I us

Re: [FFmpeg-user] ISSUE ABOUT EXTRACTING

2024-02-29 Thread Ferdi Scholten
Hi, thanks for these infos ; so now, it brings another question : how is it possible to know the locations of the keyframes ? Thanks for your advices. Regards, HA No top posting please!! The following command will show all key frames and they're time in the video. ffprobe -loglevel error -

Re: [FFmpeg-user] ISSUE ABOUT EXTRACTING

2024-02-29 Thread Ferdi Scholten
Hello all, using release 6.1 of ffmpeg, I have an issue about extracting a part from a mkv video, into another mkv video. If it can help, there are a few infos about the source video (the video from which I extract) ; infos provided by the VLC MEDIA PLAYER software :   [cid:e9bf5d83-4a7e-

Re: [FFmpeg-user] ISSUE WITH LIBX265 CODEC

2024-02-27 Thread Ferdi Scholten
Here is the command line I used : ffmpeg.exe -loglevel error -sn -i "D:\temp\source_movie.mp4" -map 0:v:0 -map 0:a:0 -acodec libmp3lame -ar 48k -b:a 128k -q:a 3 -vcodec libx265 -vf scale=768:432 -sws_flags lanczos+accurate_rnd -b:v 1008k -minrate 1008k -maxrate 1008k -r 2997/100 -qscale:v 2 -x2

Re: [FFmpeg-user] Segmentation fault for two-pass libx264, but not two-pass libx265

2024-02-27 Thread Ferdi Scholten
I believe this should be a viable routine for two-pass encoding using libx264, but it fails, as shown. A similar command to encode the same video source file using libx265 with Matroska output is successful, so I don’t think the source file is the culprit. Both the x264 and x265 encoding report

Re: [FFmpeg-user] amr_nb in mp4 container?

2024-02-15 Thread Ferdi Scholten
чт, 15 февр. 2024 г., 11:00 Andrew Randrianasulu : чт, 15 февр. 2024 г., 10:39 Ferdi Scholten: The AMR audio format is not specified as a valid audio format for the mp4 container (see *ISO < https://en.wikipedia.org/wiki/International_Organization_for_Standardization>/IEC

Re: [FFmpeg-user] amr_nb in mp4 container?

2024-02-14 Thread Ferdi Scholten
The AMR audio format is not specified as a valid audio format for the mp4 container (see *ISO /IEC 14496-14:2003)*. So managing to get it in do

Re: [FFmpeg-user] amr_nb in mp4 container?

2024-02-14 Thread Ferdi Scholten
I managed to make video with amr_nb codec in openCamera (android 11) mediainfo /dev/shm/VID_20240215_064913.mp4 General Complete name: /dev/shm/VID_20240215_064913.mp4 Format : MPEG-4 Format profile : Bas

Re: [FFmpeg-user] Having a hard time getting good results with mpeg2video

2024-01-08 Thread Ferdi Scholten
Hi, I'm trying to make a DVD with a still image (1:1 aspect ratio) and audio, the only issue is that the video is a bit blocky even after setting the highest bitrate available. The command used: `ffmpeg -i image.jpg -i audiofile.wav -f dvd -muxrate 10080k -packetsize 2048 -pix_fmt yuv420p

Re: [FFmpeg-user] Video in video not from start

2024-01-04 Thread Ferdi Scholten
I want to play a video in a video from a certain point. I understood I could do something like: ffmpeg \ -i input1.mp4 \ -i input2.mp4 \ -filter_complex " [0:v][1:v] overlay=25:25: enable='between(t,8,20)' " \

Re: [FFmpeg-user] Libx265 halves the quality when psy-rd is enabled for 444 input.

2024-01-01 Thread Ferdi Scholten
On 31-12-2023 04:32, Aditya Dandavate wrote: rd=3 psy-rd=2.00 Those (default) values are probably too high for your purpose, creating artifarcts, ringing and blurring. Reduce them (1 is the recommended start setting). Read the documentation for it: https://x265.readthedocs.io/en/master/cli.html

Re: [FFmpeg-user] Libx265 halves the quality when psy-rd is enabled for 444 input.

2023-12-31 Thread Ferdi Scholten
On 31-12-2023 04:32, Aditya Dandavate wrote: rd=3 psy-rd=2.00 Those (default) values are probably too high for your purpose, creating artifarcts, ringing and blurring. Reduce them (1 is the recommended start setting). Read the documentation for it: https://x265.readthedocs.io/en/master/cl

Re: [FFmpeg-user] Calculating VMAF of two mkv format videos.

2023-12-20 Thread Ferdi Scholten
I was trying to calculate VMAF of two mkv videos. One is lossless and second is lossy. I tried to gave this command : ffmpeg -i outputvideo.mkv -i lossless.mkv -lavfi libvmaf=log_path=output.xml -f null - But it didn't work. So, how can I calculate the VMAF scores of two mkv videos ? Can anyon

Re: [FFmpeg-user] kmsgrab and audio problem

2023-12-11 Thread Ferdi Scholten
e, drm_prime, 1920x1080, 29.92 tbr, 1000k tbn default: No such process вс, 10 дек. 2023 г. в 04:20, Ferdi Scholten: Cant record desktop video and audio with kmsgrab and pulseaudio/alsa on debian/arch system with xorg. I got video without audio or ffmpeg fail to record. If record only video wit

Re: [FFmpeg-user] kmsgrab and audio problem

2023-12-10 Thread Ferdi Scholten
Cant record desktop video and audio with kmsgrab and pulseaudio/alsa on debian/arch system with xorg. I got video without audio or ffmpeg fail to record. If record only video with kmsgrab all works. How i can record video and audio with kmsgrab and alsa/pulseaudio? ___

Re: [FFmpeg-user] Question about libopus encoding.

2023-12-04 Thread Ferdi Scholten
On 04-12-2023 18:04, Aditya Dandavate wrote: On Mon, 4 Dec, 2023, 10:27 pm Ferdi Scholten, wrote: *cap_soundcommand* "ffmpeg -f s16le -ar %s -ac 2 -i - -c:a libopus -vbr on -compression_level 0 -application lowdelay -b:a 128k -y temp_a.nut" Is this VBR encoding, is `-b:a

Re: [FFmpeg-user] Question about libopus encoding.

2023-12-04 Thread Ferdi Scholten
*cap_soundcommand* "ffmpeg -f s16le -ar %s -ac 2 -i - -c:a libopus -vbr on -compression_level 0 -application lowdelay -b:a 128k -y temp_a.nut" Is this VBR encoding, is `-b:a 128k` the average bitrate or maximum/minimum allowed bitrate ? ___ It is vbr

Re: [FFmpeg-user] VBR encoding for libsvtav1.

2023-11-27 Thread Ferdi Scholten
On Mon, 27 Nov, 2023, 7:32 am Aditya Dandavate, wrote: On Mon, 27 Nov, 2023, 4:16 am Ferdi Scholten, wrote: What is the quality rate control when encoding in VBR mode ? I get message : Svt[warn]: The input q value is ignored in vbr mode 20 when I set the -crf to 20 when enabling the

Re: [FFmpeg-user] VBR encoding for libsvtav1.

2023-11-26 Thread Ferdi Scholten
What is the quality rate control when encoding in VBR mode ? I get message : Svt[warn]: The input q value is ignored in vbr mode 20 when I set the -crf to 20 when enabling the -svtav1-params rc=1. When I set -qp 20, the conversion fails. Which mode to set quality when encoding in VBR mode ? vb

Re: [FFmpeg-user] VBR encoding for libsvtav1.

2023-11-26 Thread Ferdi Scholten
I was trying and searching the web to 'how to encode videos with libsvtav1 with help of VBR rate control mode and I found on this page that setting -rc 1 will enable Variable Bitrate mode. https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/master/Docs/svt-av1_encoder_user_guide.md I tried to set

Re: [FFmpeg-user] [External] Re: Need to reduce size of ffmpeg.exe

2023-11-21 Thread Ferdi Scholten
Any idea how can we add 'libx264' in my ffmpeg.exe ? compile with --enable-libx264 ___ 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...@ffmp

Re: [FFmpeg-user] MP4-Video does not play audio on Android 8; audio stream size tagged wrong

2023-10-24 Thread Ferdi Scholten
Hi, Vorbis audio is officially not supported by the mp4 container specifications. Matroska does not have this problem as it supports almost all known codecs. These are the audio codecs that are in the mp4 specifications: AAC, ALS, SLS, MP3, MP2, MP1, CELP, HVXC, TTSI, SAOL, Apple Lossless,

Re: [FFmpeg-user] MP4-Video does not play audio on Android 8; audio stream size tagged wrong

2023-10-23 Thread Ferdi Scholten
Hi, I have a Matroska video with libx264 video and libvorbis audio. when I copy it to MP4 container, the resulting video does not play audio on Android 8 phone -> "Audio-Codec not supported" Matroska: http://jugkoeln.de/Projects/ffmpeg/K%C3%B6nig_de_3.mkv MP4:   http://jugkoeln.de/Projects/ff

Re: [FFmpeg-user] Difference between i-frames and key frames

2023-10-07 Thread Ferdi Scholten
On 07-10-2023 17:20, Ulf Zibis wrote: Hi, what is the difference between i-frames and key frames? And how many other frames are between i-frames or key frames in mp4 files, created with ffmpeg and with default settings? -Ulf In mp4 containers I-frames are key frames. The amount of inter-f

Re: [FFmpeg-user] ffmpeg is oom-killed when converting an image to AVIF

2023-10-05 Thread Ferdi Scholten
On 06-10-2023 02:28, Dmitry Katsubo via ffmpeg-user wrote: Dear community, Re-posting the issue concerning too extensive memory usage by ffmpeg when converting the image to AV1. Any ideas how to overcome the issue (except of plugging more memory)? Does the issue also arise when using aomenc

Re: [FFmpeg-user] Unexpected additional frames while stream copy

2023-10-01 Thread Ferdi Scholten
On 01-10-2023 19:28, Ulf Zibis wrote: Hi, I have a video, grabbed from screen with "-c:v libx264rgb -crf 0 -preset ultrafast". When I re-encode a small scene out of it, it counts 576 frames. (Same number of images, when I extract all frames as JPEG.) But when I just do a stream copy, I g

Re: [FFmpeg-user] MP4 with 9 subtitle streams

2023-09-23 Thread Ferdi Scholten
On Sat, Sep 23, 2023 at 1:29 PM Paul B Mahol wrote: You have handbrake produced files with SRTs in mp4/mov? Can you show them? Stream #0:2[0x3](eng): Subtitle: mov_text (tx3g / 0x67337874), 1920x162, 0 kb/s (default) That is not an srt subtitle, it has been transcoded by handbrake to an m

Re: [FFmpeg-user] MP4 with 9 subtitle streams

2023-09-23 Thread Ferdi Scholten
Le sam. 23 sept. 2023 à 17:38, Mark Filipak a écrit : On Sat, Sep 23, 2023 at 2:29 AM Paul B Mahol wrote: On 9/23/23, Mark Filipak wrote: Why doesn't this work? I made an MP4 with 9 subtitle streams via HandBrake. I think ffmpeg and HandBrake use the same libraries. -snip- "codec not curr

Re: [FFmpeg-user] Make conversion go faster

2023-09-15 Thread Ferdi Scholten
B time=00:00:13.10 bitrate= 24.4kbits/s speed= 16x video:0kB audio:39kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.112613% On Wed, Sep 13, 2023 at 7:08 PM Ferdi Scholten wrote: Hi! I'm using this command to convert wav audio to mp3: -i "\\.\pipe\FFMpegCore_d11107

  1   2   >