Re: [FFmpeg-user] Audio captured via AVFoundation is unusable

2025-06-15 Thread Gabriel Balaich via ffmpeg-user
> Would whoever wrote that actually identify themselves in their email? > That would be quite helpful (as well as courteous). Apologies, I've updated the name attached to this email, and will sign all messages moving forward. I created a custom email with my domain for use with this mailing list

Re: [FFmpeg-user] Could not find codec parameters for stream for mp3 audio stream in HLS segment

2021-12-15 Thread Gabriel Balaich
0 On Sun, 21 Nov 2021 at 17:42, Gabriel Balaich wrote: > I'm attempting to concatenate some but not all segments in a m3u8 HLS > segment list, but when I use stream copy I get this error: > > Could not find codec parameters for stream 1 (Audio: mp3 (mp3float) > ([3][0

[FFmpeg-user] Could not find codec parameters for stream for mp3 audio stream in HLS segment

2021-11-21 Thread Gabriel Balaich
I'm attempting to concatenate some but not all segments in a m3u8 HLS segment list, but when I use stream copy I get this error: Could not find codec parameters for stream 1 (Audio: mp3 (mp3float) ([3][0][0][0] / 0x0003), 0 channels, fltp): unspecified frame size Consider increasing the value for

Re: [FFmpeg-user] FFmpeg / dshow Windows 11 bug

2021-07-01 Thread Gabriel Balaich
> > When I go to record any capture card using FFmpeg with dshow, whether I'm > encoding with Nvenc or h264, Windows Explorer crashes perpetually: > https://www.youtube.com/watch?v=BWqpUaMIFtc > I've further narrowed this down to encoding an *audio *source with dshow in FFmpeg, for example: ffmpeg

[FFmpeg-user] FFmpeg / dshow Windows 11 bug

2021-06-29 Thread Gabriel Balaich
Upgraded a few of my PCs to the Windows 11 Developer preview and they seem to be surprisingly stable, however, I'm having problems with specifically FFmpeg and dshow. When I go to record any capture card using FFmpeg with dshow, whether I'm encoding with Nvenc or h264, Windows Explorer crashes per

[FFmpeg-user] Segment muxer generates odd duration on first segment

2021-05-12 Thread Gabriel Balaich
*When using the segment muxer the first segment has a different duration than the others even when forcing keyframes:* ffmpeg ` -f lavfi -i color=color=red:size=640x360:rate=30 ` -c:v libx264 -force_key_frames 'expr:gte(t,n_forced*2)' -pix_fmt yuv420p -t 30 -f segment -segment_time 6 ` -segment_lis

[FFmpeg-user] Syncronizing live sources across multiple / separate FFmpeg commands

2021-05-07 Thread Gabriel Balaich
Hey there, I'm wondering if anybody would have any ideas in regards to synchronizing live sources across multiple / separate FFmpeg commands. Obviously the best case scenario would be handling all live sources in a single command, however I just can't seem to find the performance needed to do such

Re: [FFmpeg-user] Consistent RTMP stream crashing with high resolution and bit-rate video (av_interleaved_write_frame(): Unknown error)

2021-04-15 Thread Gabriel Balaich
On Thu, 15 Apr 2021 at 01:20, Gabriel Balaich wrote: > This seems to work great on the surface, however, if my scene ever shifts > from something high complexity to something low complexity or vice versa > the FFmpeg instance crashes with error "av_interleaved_write_frame(): &

[FFmpeg-user] Consistent RTMP stream crashing with high resolution and bit-rate video (av_interleaved_write_frame(): Unknown error)

2021-04-15 Thread Gabriel Balaich
I'm attempting to send a 4K60 50Mbps stream from FFmpeg to YouTube, and can't seem to get any system fully working. I started by trying to send the stream directly from FFmpeg to YouTube: ffmpeg ` -guess_layout_max 0 -thread_queue_size -indexmem -f dshow -rtbufsize 2147.48M -video_size 3

Re: [FFmpeg-user] FFmpeg single threaded bottleneck

2020-06-12 Thread Gabriel Balaich
Apologies for the late response, I was undergoing some major hardware changes in my setup and am now back to trying to figure this out. > There is no multi-threaded audio encoding. Yeah, I guess I understand why that makes sense programmatically, but my issue isn't really that my audio is bein

Re: [FFmpeg-user] FFmpeg single threaded bottleneck

2020-05-14 Thread Gabriel Balaich
So just read a question on stack exchange in-which someone was experiencing something similar to me, it looked like the issue may have been the audio codec being used was limited to one thread for processing, here is the question: https://video.stackexchange.com/questions/15996/ffmpeg-encoding-and-

Re: [FFmpeg-user] Multiple FFMpeg-Cuda-HLS-Transcoding Instances -> Deadlock Behavior

2020-05-14 Thread Gabriel Balaich
On Mon, 4 May 2020 at 02:22, Marco Kittel wrote: > Hello, > > i'm having a hard time rendering multiple hls instances with nvidia > gear. The details are in the forum post. Here is a little summary. > Everytime without any exception, when i'm running multiple instances of > ffmpeg with cuda suppo

Re: [FFmpeg-user] FFmpeg single threaded bottleneck

2020-05-14 Thread Gabriel Balaich
Thanks for the feedback. On Thu, 14 May 2020 at 01:52, Edward Park wrote: > Hi, > > Some values don't look right, try getting rid of them. > -thread_queue_size seems arbitrary, it is queue length, not bytes I was getting the error "Thread message queue blocking; consider raising the threa

Re: [FFmpeg-user] Unable To Transcode 8 sources simultaneously Real Time In One Instance

2019-05-13 Thread Gabriel Balaich
> > 2G seems like a very large buffer... > Even when in the context of attempting to transcode 9k worth of footage real-time? ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link

Re: [FFmpeg-user] Unable To Transcode 8 sources simultaneously Real Time In One Instance

2019-05-13 Thread Gabriel Balaich
> > -rtbufsize 2147.48M > 2GB? maybe it's just filling right up... > Unfortunately it doesn't seem I can raise it passed 2147.48M, when I dug into the code it seems the variable is being stored in an INT32 which doesn't allow for a larger value. I have suspected for a while now that this may be th

[FFmpeg-user] "DirectShow video devices (some may be both video and audio devices)"

2019-04-29 Thread Gabriel Balaich
Quick question regarding calling devices via dshow in FFmpeg, I'm trying to capture and Avermedia GC573, audio and video, but when I list devices there appears to be no audio device that would pair with the GC573. Here's me listing devices: PS C:\Users\Jordan> ffmpeg -list_devices true -f dshow -

Re: [FFmpeg-user] Unable To Transcode 8 sources simultaneously Real Time In One Instance

2019-01-14 Thread Gabriel Balaich
I've decided to post this same question on Superuser in an attempt to get more eyes on the issue: https://superuser.com/questions/1394234/unable-to-transcode-8-sources-in-one-instance-real-time If I receive any possible solutions from here or there I will update both parties. Any insight would be

[FFmpeg-user] Unable To Transcode 8 sources simultaneously Real Time In One Instance

2019-01-13 Thread Gabriel Balaich
I'm trying to record 8 sources (3 Video + 5 audio) simultaneously and synchronized, however I can't seem to get it to transcode real time in one instance. Sample command: ffmpeg -y ` -thread_queue_size -indexmem -f dshow -rtbufsize 2147.48M -video_size 3440x1440 -framerate 100 ` -pixel_f

Re: [FFmpeg-user] Max rtbufsize Via dshow

2019-01-10 Thread Gabriel Balaich
> > What happens at this point? > Do the messages stop or does the system continue to drop frames? > That's the end of the recording about a second after I hit q to quit, so everything subsides as the process has ended. What happens in-between? Do the drops stop at some point? > The sources are

Re: [FFmpeg-user] Max rtbufsize Via dshow

2019-01-10 Thread Gabriel Balaich
> > Could you provide command line including complete, uncut > console output (no -hide_banner please) to show how your > ffmpeg command initially drops frames and later catches up > so that encoding speed is clearly above real-time and no > further frames are dropped? > It doesn't appear to rewri

Re: [FFmpeg-user] Max rtbufsize Via dshow

2019-01-10 Thread Gabriel Balaich
So I kinda shelved this issue as I had others to resolve, but since then I've fixed all but 2 of my issues, this being one of them. I worry less about dropping frames when ending a recording, however it is fairly obtrusive in both the console and the resulting file to drop / duplicate 100 frames f

Re: [FFmpeg-user] FFmpeg Not Transcoding In Real Time

2018-12-05 Thread Gabriel Balaich
> > It's hard for me to understand your complete commandline, there are a lot > of options. It seems to me that some of your options are not optimum, but > they may be the settings that you want/need, which is fine that's up to you > to decide (I don't quite understand why you'd want to output in N

Re: [FFmpeg-user] FFmpeg Not Transcoding In Real Time

2018-12-02 Thread Gabriel Balaich
> > Furthermore when I try recording both streams in one 4K60 video via OBS > things work perfectly fine, as in real-time. So I don't understand how > transcoding two 1080p60 streams in FFmpeg would be anymore intensive than > one 4K60 stream in OBS... When looking at the GPUs encoding chip usage i

[FFmpeg-user] FFmpeg Not Transcoding In Real Time

2018-12-01 Thread Gabriel Balaich
Hello all, been setting up a recording build for a friend to resemble mine, but I can't seem to get things to work in real-time despite sufficient (as far as I can tell) hardware. System specs: 8600K, GTX 1050ti, 16Gb RAM, 1tb 860 EVO Test command: ffmpeg -y -hide_banner -thread_queue_size

Re: [FFmpeg-user] Make Output Files More Digestible / Increase Output Compatibility

2018-09-19 Thread Gabriel Balaich
> > You should try a no-GOP codec for editing, like Prores or DNxHD/HR. > MP4 is perfect for delivery, but not intended for editing. > Sorry for the late reply, but I thought I should get back to you after finally testing this. Re-encoding to DNxHR made a HUGE difference. I can hardly believe how

Re: [FFmpeg-user] Max rtbufsize Via dshow

2018-09-19 Thread Gabriel Balaich
> > I'm using a GeForce 1060 3GB and when I stop the process the GPU usage > spikes. Not sure why.. > > http://kdca.neocities.org/gpuspike.jpg Thank you for your corroboration! ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailma

Re: [FFmpeg-user] Max rtbufsize Via dshow

2018-09-19 Thread Gabriel Balaich
> > The limits "max signed INT" I believe (2B). > Anyway this message typically means your system isn't keeping up with > encoding. I'd think nvenc would be able to handle it but maybe not? That actually makes a lot of sense! So I assume when I put it 2147.48M it's being converted to 2,147,480,

Re: [FFmpeg-user] Max rtbufsize Via dshow

2018-09-17 Thread Gabriel Balaich
> > If I watch my encoding performance through task manager everything is > consistent / flat at about 60% usage, until I end the recording, then it > jumps up to 100% usage for a few seconds. VRAM, RAM, CPU, GPU (3D), and > DISK are well below 50% usage throughout the entire process. > > I don't r

Re: [FFmpeg-user] Max rtbufsize Via dshow

2018-09-14 Thread Gabriel Balaich
> > This indicates a performance issue... > > ... but it's easier to debug if you also provide the complete, > uncut console output. > Thank you for the reply. System specs: Asus X99-E Intel 6800K Nvidia GTX 1080 G.Skill Tridentz 32GB DDR4 1TB Samsung 860 Evo Magwell Pro Capture HDMI 4K Plus Aver

[FFmpeg-user] Max rtbufsize Via dshow

2018-09-14 Thread Gabriel Balaich
Up until a few days ago I had been running two capture cards, 1x4K card and 1x1080P card, I would encode both streams with a GTX 1080 no dropped frames no issues. But just recently I replaced the 1080P capture card with another 4K capture card to prep for a new camera and can't get things working g

Re: [FFmpeg-user] Anyone having success capturing hours of 4k video, reliably and with low loss, using ffmpeg?

2018-08-08 Thread Gabriel Balaich
> > Nice. What codec and/or command line? > > Also if anybody's desperate for a "software" solution I might be able > to provide a new video codec that "uses a lot of space but is > screaming fast" let me know if x264 ultrafast isn't fast enough. > Cheers! > Kind of a huge command: ffmpeg -logle

Re: [FFmpeg-user] Anyone having success capturing hours of 4k video, reliably and with low loss, using ffmpeg?

2018-08-07 Thread Gabriel Balaich
> > You are missing the question. > > I am not asking for help to diagnose that simple experiment. I am asking > if others have had experience with the top-level goal: capturing hours > of 4k video, reliably and with low loss, using ffmpeg. > > I can use whatever capture card, operating system, CPU

[FFmpeg-user] Make Output Files More Digestible / Increase Output Compatibility

2018-06-18 Thread Gabriel Balaich
Hey everyone, I've found that my video files captured with FFmpeg don't play nice with other programs. Many video players display incorrect duration, others allow no scrubbing, and some won't even open the files at all. But perhaps the most annoying incompatibility is with Adobe Premiere. Trying

Re: [FFmpeg-user] Frame dropping

2018-05-09 Thread Gabriel Balaich
> > PS: vsync is neither an input nor an output option, it is a > global option. Good to know. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-req

Re: [FFmpeg-user] Frame dropping

2018-05-09 Thread Gabriel Balaich
> > Unfortunately, I can not reach 25 fps while decoding, even with dropping > frames. > So I think that the option for "frame dropping" is not working !! > -vsync should be listed after the input, if you are looking for a constant 25fps try this: ffmpeg -threads 1 -framerate 25 -i -vsync 1 -f

Re: [FFmpeg-user] Frame dropping

2018-05-09 Thread Gabriel Balaich
> > Hello, > could you tell me how to enable "frame dropping" while decoding with ffmpeg > ? > *"-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.* *0, passthrough* *Each frame is

Re: [FFmpeg-user] Split video with ffmpeg

2018-04-30 Thread Gabriel Balaich
> > ffmpeg -i inputFile.mp4 -c copy -map 0 -f segment -segment_time 100 > outputFile.mp4 > May I ask what framerate the source is? ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit l

[FFmpeg-user] Any Actual Solution to "Past Duration Too Large"?

2018-04-16 Thread Gabriel Balaich
Hey all, I'm having an issue with the "Past duration too large" warning being spammed in my console. Suggestions range from silencing the console to applying the "fps=xxx" filter, but when I apply the fps filter it adds stutter to my video, and silencing my console isn't really an actual solution

Re: [FFmpeg-user] Audio Desynchronization When Utilizing Segmentation

2018-04-16 Thread Gabriel Balaich
I was able to mostly solve this issue by utilizing the reset_timestamps segment option and encoding .ts instead of .mp4. No matter what I did I could not get this option to work when encoding .mp4 for some reason: ffmpeg -y -thread_queue_size -indexmem -guess_layout_max 0 -f dshow -video

Re: [FFmpeg-user] Delay Only Video Stream Of Audio Linked dshow Input

2018-04-16 Thread Gabriel Balaich
egment -segment_time 600 -segment_wrap 9 -reset_timestamps 1 ^ C:\Users\djcim\Videos\PC\PC\PC%02d.ts I was informed of these options by a very nice user on stack exchange: https://stackoverflow.com/questions/49805691/ffmpeg-delay-only-video-stream-of-audio-linked-dshow-input On Thu, Apr 12, 2018 at 10:50 AM, G

[FFmpeg-user] Delay Only Video Stream Of Audio Linked dshow Input

2018-04-12 Thread Gabriel Balaich
Hello everyone, I'm have a slight issue trying to sync my audio and video up with an acceptable margin of error. Here is my command: ffmpeg -y -thread_queue_size -indexmem -guess_layout_max 0 -f dshow -video_size 3440x1440 -rtbufsize 2147.48M ^ -framerate 100 -pixel_format nv12 -i video

Re: [FFmpeg-user] Need Help For Splitting, Re-Encoding and Joining again

2018-03-29 Thread Gabriel Balaich
> And for MP4 if we change it to .ts then again we need to convert it to MP4 > i don't think this will fix the issue. I understand that it seems like an odd thing to do, but I've experienced the exact same thing you are, and using the .ts container during segmentation got rid of all audio jumps.

Re: [FFmpeg-user] Need Help For Splitting, Re-Encoding and Joining again

2018-03-29 Thread Gabriel Balaich
Try using .ts instead of mp4, they seem to segment better, end result can still be converted back to .mp4. 1) ffmpeg -i F:\video_data_set\4k_compressed.mp4 -f segment -segment_time 5 -segment_start_number 1 -codec copy F:\video_data_set\test\%d_4k_compressed.ts 2) ffmpeg -hide_banner -i F:\video_

Re: [FFmpeg-user] Need Help For Splitting, Re-Encoding and Joining again

2018-03-29 Thread Gabriel Balaich
On Thu, Mar 29, 2018 at 10:56 AM, Gabriel Balaich wrote: > Try using .ts instead of mp4, they seem to segment better, end result can > still > be converted back to .mp4. > > 1) ffmpeg -i F:\video_data_set\4k_compressed.mp4 -f segment > -segment_time 5 -segment_start_number

Re: [FFmpeg-user] Audio Desynchronization When Utilizing Segmentation

2018-03-26 Thread Gabriel Balaich
> -rtbufsize 2147.48M -i audio="SPDIF/ADAT (1+2) (RME Fireface UC)" -map > 0:0,1:0 -map 1:0 -c:v h264_nvenc -preset: llhp ^ > > I believe only options from 19.0 - 19.1 in the ffmpeg documentation can be > applied on a per segment basis, correct me if I'm > wrong. > Sorry I don't mean to spam but a

Re: [FFmpeg-user] Audio Desynchronization When Utilizing Segmentation

2018-03-26 Thread Gabriel Balaich
On Mon, Mar 26, 2018 at 7:27 AM, Jim Shupert wrote: > On 3/25/2018 9:30 PM, Gabriel Balaich wrote: > >> >> -i video="Video (00 Pro Capture HDMI 4K+)" >>> >>> a question - what is your capture card? > __

Re: [FFmpeg-user] Audio Desynchronization When Utilizing Segmentation

2018-03-25 Thread Gabriel Balaich
On Sat, Mar 24, 2018 at 4:05 PM, Gabriel Balaich wrote: > Hey all, I was hoping I could a get a bit of help on a problem I'm having. > > Here is my code: > ffmpeg -y -thread_queue_size 5096 -f dshow -video_size 3440x1440 > -rtbufsize 2147.48M -framerate 100 -pixel_format nv

[FFmpeg-user] Audio Desynchronization When Utilizing Segmentation

2018-03-24 Thread Gabriel Balaich
Hey all, I was hoping I could a get a bit of help on a problem I'm having. Here is my code: ffmpeg -y -thread_queue_size 5096 -f dshow -video_size 3440x1440 -rtbufsize 2147.48M -framerate 100 -pixel_format nv12 ^ -itsoffset 00:00:00.015 -i video="Video (00 Pro Capture HDMI 4K+)" -thread_queue_si

[FFmpeg-user] Syncing Multiple Audio Sources To One Video Source

2018-01-03 Thread Gabriel Balaich
Hello all, I'd like to start by saying thank you for your time and any help you can send my way, I really appreciate it. I'm trying to keep three outputs in-sync, 3 audio and 1 video. I'll start with my block of code and then I'll try to explain exactly what I'm trying to do. Here is my curre