Re: [FFmpeg-user] Failed to open codec in avformat_find_stream_info

2020-04-08 Thread Ted Park
Hi, > What am I doing wrong? > > I searched but could find no resolution to this error. Maybe my last reply didn’t go through. Try using the bluray scheme to access the file. >> Begin forwarded message: >> >> From: Ted Park >> Subject: Re: [FFmpeg-user] Failed to open codec in avformat_find_

Re: [FFmpeg-user] Could not find codec parameters for stream 1 (Audio: pcm_mulaw, 8000 Hz, mono, 64 kb/s): unspecified sample format

2020-04-08 Thread Mark Filipak
On 04/08/2020 06:47 PM, Ben Edwards wrote: Hi, ive been processing over 5TB of hickvivion CCTV footage (ffmpeg is great, ime basicaly rewriting the headers so I can import into video editng software).   Got about 4.8TB in and ime gettting an error. The command I am using is $ ffmpeg -loglevel

[FFmpeg-user] Failed to open codec in avformat_find_stream_info

2020-04-08 Thread Mark Filipak
What am I doing wrong? I searched but could find no resolution to this error. Regards, Mark. SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION SET TELECINE=telecine=pattern=5,split[A][B] SET BLOCK=[A]select='not(bitor(eq(mod(n+1\,10)\,3)\,eq(mod(n+1\,10)\,8)))'[C] SET PASS=[B]select='bitor(eq(

[FFmpeg-user] 'interleave' filter is not completing

2020-04-08 Thread Mark Filipak
What am I doing wrong? The 'interleave' filter is not completing. Does it not recognize end-of-frames for [C]? What do I need to do? Note: I've tried runs with 2 differing stream sources. Note: When I break out at the end (Ctrl-C), the target video plays, so the problem is not unsurmountable,

Re: [FFmpeg-user] AMD GPU + Vaapi encoding problem

2020-04-08 Thread Dennis Mungai
On Wed, 8 Apr 2020, 22:58 Colin Bitterfield, wrote: > I tried VAAPI with a RADEON 580 on Linux. It was intermittent at best. > > I wound up using Vulkan with success. > > This is the hwaccel command I was using for transcoding. > > time ffmpeg -hide_banner -stats -hwaccel vulkan -init_hw_device v

Re: [FFmpeg-user] AMD GPU + Vaapi encoding problem

2020-04-08 Thread Ted Park
> On Apr 8, 2020, at 15:56, Colin Bitterfield wrote: > > I tried VAAPI with a RADEON 580 on Linux. It was intermittent at best. Maybe it’s because it’s the last RX Polaris card they released before moving on, the video encoding/decoding hardware changed. But then again it is the exact same gpu

Re: [FFmpeg-user] Could not find codec parameters for stream 1 (Audio: pcm_mulaw, 8000 Hz, mono, 64 kb/s): unspecified sample format

2020-04-08 Thread Carl Eugen Hoyos
Am Do., 9. Apr. 2020 um 00:47 Uhr schrieb Ben Edwards : > $ ffmpeg -loglevel warning -i input.mp4 Please increase the loglevel and provide this command line together with the complete, uncut console output, not an excerpt, if you want help here. Consider providing a sample, Carl Eugen __

[FFmpeg-user] Could not find codec parameters for stream 1 (Audio: pcm_mulaw, 8000 Hz, mono, 64 kb/s): unspecified sample format

2020-04-08 Thread Ben Edwards
Hi, ive been processing over 5TB of hickvivion CCTV footage (ffmpeg is great, ime basicaly rewriting the headers so I can import into video editng software).   Got about 4.8TB in and ime gettting an error. The command I am using is $ ffmpeg -loglevel warning -i input.mp4 -flags +global_header

Re: [FFmpeg-user] AMD GPU + Vaapi encoding problem

2020-04-08 Thread Colin Bitterfield
I tried VAAPI with a RADEON 580 on Linux. It was intermittent at best. I wound up using Vulkan with success. This is the hwaccel command I was using for transcoding. time ffmpeg -hide_banner -stats -hwaccel vulkan -init_hw_device vulkan:0 -threads 16 -i input.mp4 -vf scale=854:480 -c:v  libopen

Re: [FFmpeg-user] AMD GPU + Vaapi encoding problem

2020-04-08 Thread Ostap Batug
I don't know about that, but i am more confused why this build from git reporting only vdpau as available hardware acceleration methods, My distribution packaged one reports: Hardware acceleration methods: vdpau cuda vaapi qsv drm qsv cuvid On Wed, 8 Apr 2020 at 22:39, Tobias Kilb wrote: > Uh, i

Re: [FFmpeg-user] AMD GPU + Vaapi encoding problem

2020-04-08 Thread Tobias Kilb
Uh, indeed. Good to know. I thought the development is going towards vaapi from amd/intel. Regards Tobias Ostap Batug schrieb am Mi., 8. Apr. 2020, 21:25: > https://wiki.archlinux.org/index.php/Hardware_video_acceleration#ATI/AMD > > On Wed, 8 Apr 2020 at 22:17, Tobias Kilb wrote: > > > Hi, >

Re: [FFmpeg-user] AMD GPU + Vaapi encoding problem

2020-04-08 Thread Ostap Batug
https://wiki.archlinux.org/index.php/Hardware_video_acceleration#ATI/AMD On Wed, 8 Apr 2020 at 22:17, Tobias Kilb wrote: > Hi, > > AI am wondering why it shows vdpau because you have an amd graphics > adapter. > > Regards > Tobias > > Ostap Batug schrieb am Mi., 8. Apr. 2020, 21:08: > > > Hello

Re: [FFmpeg-user] AMD GPU + Vaapi encoding problem

2020-04-08 Thread Tobias Kilb
Hi, AI am wondering why it shows vdpau because you have an amd graphics adapter. Regards Tobias Ostap Batug schrieb am Mi., 8. Apr. 2020, 21:08: > Hello, > Yes this is the same machine > i havent figured out a command to run with -init_hw_device , but -hwaccels > reports: > Hardware accelerati

Re: [FFmpeg-user] AMD GPU + Vaapi encoding problem

2020-04-08 Thread Ostap Batug
Hello, Yes this is the same machine i havent figured out a command to run with -init_hw_device , but -hwaccels reports: Hardware acceleration methods: vdpau so seems that i don't have vaapi? although i am not certain, yes my gpu is primarily supporting vdpau, but i have a sort of vaapi emulation wi

Re: [FFmpeg-user] AMD GPU + Vaapi encoding problem

2020-04-08 Thread Ted Park
Hello, > Okay, i've used latest static build from git of amd64 arch, it can't find > option -vaapi_device, > and this is the output (ran from the extracted archive path): > $ ./ffmpeg -vaapi_device /dev/dri/renderD128 -f x11grab -video_size > 1920x1080 -i :0 -vf 'format=nv12,hwupload' -c:v h264_va

Re: [FFmpeg-user] AMD GPU + Vaapi encoding problem

2020-04-08 Thread Ostap Batug
Okay, i've used latest static build from git of amd64 arch, it can't find option -vaapi_device, and this is the output (ran from the extracted archive path): $ ./ffmpeg -vaapi_device /dev/dri/renderD128 -f x11grab -video_size 1920x1080 -i :0 -vf 'format=nv12,hwupload' -c:v h264_vaapi -b:v 7M -profi

Re: [FFmpeg-user] AMD GPU + Vaapi encoding problem

2020-04-08 Thread Dennis Mungai
On Wed, 8 Apr 2020 at 19:58, Ostap Batug wrote: > tried the command that you provided, the output was following: > $ ffmpeg -vaapi_device /dev/dri/renderD128 -f x11grab -video_size 1920x1080 > -i :0 -vf 'format=nv12,hwupload' -c:v h264_vaapi -b:v 7M -profile 578 -bf 0 > output.mp4 > ffmpeg versio

Re: [FFmpeg-user] AMD GPU + Vaapi encoding problem

2020-04-08 Thread Ostap Batug
tried the command that you provided, the output was following: $ ffmpeg -vaapi_device /dev/dri/renderD128 -f x11grab -video_size 1920x1080 -i :0 -vf 'format=nv12,hwupload' -c:v h264_vaapi -b:v 7M -profile 578 -bf 0 output.mp4 ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers bui

Re: [FFmpeg-user] Issue with hwaccel cuvid

2020-04-08 Thread Dennis Mungai
On Wed, 8 Apr 2020 at 19:46, Andy Sheimo wrote: > Dennis, Thank you. Lesson learned, check latest builds before submitting > questions. Using the latest static build has resolved the issue. > > Cheers, -Andy > > On Wed, Apr 8, 2020 at 12:14 PM Dennis Mungai wrote: > > > On Wed, 8 Apr 2020 at 19:

Re: [FFmpeg-user] Issue with hwaccel cuvid

2020-04-08 Thread Andy Sheimo
Dennis, Thank you. Lesson learned, check latest builds before submitting questions. Using the latest static build has resolved the issue. Cheers, -Andy On Wed, Apr 8, 2020 at 12:14 PM Dennis Mungai wrote: > On Wed, 8 Apr 2020 at 19:04, Andy Sheimo wrote: > > > This still produces the same erro

Re: [FFmpeg-user] AMD GPU + Vaapi encoding problem

2020-04-08 Thread Dennis Mungai
On Wed, 8 Apr 2020 at 19:25, Ostap Batug wrote: > First of all sorry if this is a duplicate question, but during my search > online i haven't found a solution. > Hello, i have a problem, my CPU is pretty slow so i wanted to try use VAAPI > encoding for rtmp streaming. (On the side note, using vaa

[FFmpeg-user] AMD GPU + Vaapi encoding problem

2020-04-08 Thread Ostap Batug
First of all sorry if this is a duplicate question, but during my search online i haven't found a solution. Hello, i have a problem, my CPU is pretty slow so i wanted to try use VAAPI encoding for rtmp streaming. (On the side note, using vaapi is kind of counter intuitive, but that can be ju me bei

Re: [FFmpeg-user] Issue with hwaccel cuvid

2020-04-08 Thread Dennis Mungai
On Wed, 8 Apr 2020 at 19:13, Dennis Mungai wrote: > On Wed, 8 Apr 2020 at 19:04, Andy Sheimo wrote: > >> This still produces the same error; >> >> ffmpeg -threads 1 -loglevel verbose -hwaccel cuvid >> -hwaccel_output_format cuda -c:v mpeg2_cuvid -extra_hw_frames 3 -i >> "l:\welter_originals\game

Re: [FFmpeg-user] Issue with hwaccel cuvid

2020-04-08 Thread Dennis Mungai
On Wed, 8 Apr 2020 at 19:04, Andy Sheimo wrote: > This still produces the same error; > > ffmpeg -threads 1 -loglevel verbose -hwaccel cuvid > -hwaccel_output_format cuda -c:v mpeg2_cuvid -extra_hw_frames 3 -i > "l:\welter_originals\gamera the brave\Latatude Zero-trailer.mkv" -c:a copy > -c:v h26

Re: [FFmpeg-user] Issue with hwaccel cuvid

2020-04-08 Thread Andy Sheimo
This still produces the same error; ffmpeg -threads 1 -loglevel verbose -hwaccel cuvid -hwaccel_output_format cuda -c:v mpeg2_cuvid -extra_hw_frames 3 -i "l:\welter_originals\gamera the brave\Latatude Zero-trailer.mkv" -c:a copy -c:v h264_nvenc test.mkv But this works to complete the job; ffmpeg

Re: [FFmpeg-user] Issue with hwaccel cuvid

2020-04-08 Thread Dennis Mungai
On Wed, 8 Apr 2020 at 17:57, Andy Sheimo wrote: > I keep getting an error on some files and it appears to be due to a > scaler being inserted but I don't know how to fix it. Any help would be > appreciated. logging below: > > K:\Video\GAMERA THE BRAVE>ffmpeg -loglevel verbose -hwaccel cuvid > -hw

Re: [FFmpeg-user] High CPU usage during scale_npp to low resolutions with multiple instances

2020-04-08 Thread Dennis Mungai
On Wed, 8 Apr 2020, 15:23 Valentin Schweitzer, wrote: > > > Set this environment variable: CUDA_DEVICE_MAX_CONNECTIONS=2 > > Then retest and report back. > > > > > > One more thing: Could you show us the output of: > > numactl --hardware > > Thanks for your reply. We should have clarified that w

[FFmpeg-user] Issue with hwaccel cuvid

2020-04-08 Thread Andy Sheimo
I keep getting an error on some files and it appears to be due to a scaler being inserted but I don't know how to fix it. Any help would be appreciated. logging below: K:\Video\GAMERA THE BRAVE>ffmpeg -loglevel verbose -hwaccel cuvid -hwaccel_output_format yuv420p -c:v mpeg2_cuvid -i "l:\welter_or

[FFmpeg-user] Make ffmpeg use of VDPAU

2020-04-08 Thread Tobias Kilb
Hi, I struggled a little bit about hw accelerated decoding of a raw h264 stream from an raspberry pi. I now have the solution, if someone is interested in building a network webcam: ffmpeg -f h264 -hwaccel vdpau -i tcp://goldeneye:5000 -f v4l2 -pix_fmt yuv420p /dev/video0 It reads a raw h264 str

Re: [FFmpeg-user] 'image trails'

2020-04-08 Thread Nicolas George
Mark Filipak (12020-04-08): > Well, I'm not trying to be rude, George. :-) I don't know if you are trying, I observe you are. Don't expect help from me. This is probably the last time I interact with you. Good bye. -- Nicolas George signature.asc Description: PGP signature _

Re: [FFmpeg-user] High CPU usage during scale_npp to low resolutions with multiple instances

2020-04-08 Thread Valentin Schweitzer
Set this environment variable: CUDA_DEVICE_MAX_CONNECTIONS=2 Then retest and report back. One more thing: Could you show us the output of: numactl --hardware Thanks for your reply. We should have clarified that we are on Windows. Unfortunately, setting the environment variable CUDA_DEVIC

Re: [FFmpeg-user] 'image trails'

2020-04-08 Thread Mark Filipak
On 04/08/2020 08:13 AM, Nicolas George wrote: Bouke / VideoToolShed (12020-04-08): you certainly smell like Custom Sift, (a troll on another list.) It's a strange thing to me that the rudest people are the ones who get the most help on technical mailing-lists. Regards, Well, I'm not trying

Re: [FFmpeg-user] 'image trails'

2020-04-08 Thread Mark Filipak
On 04/08/2020 08:13 AM, Nicolas George wrote: Bouke / VideoToolShed (12020-04-08): you certainly smell like Custom Sift, (a troll on another list.) It's a strange thing to me that the rudest people are the ones who get the most help on technical mailing-lists. Regards, Well, I'm not trying

Re: [FFmpeg-user] 'image trails'

2020-04-08 Thread Nicolas George
Bouke / VideoToolShed (12020-04-08): > you certainly smell like Custom Sift, > (a troll on another list.) It's a strange thing to me that the rudest people are the ones who get the most help on technical mailing-lists. Regards, -- Nicolas George signature.asc Description: PGP signature

Re: [FFmpeg-user] 'image trails'

2020-04-08 Thread Mark Filipak
On 04/08/2020 08:07 AM, Bouke / VideoToolShed wrote: On 08 Apr 2020, at 14:00, Mark Filipak wrote: On 04/08/2020 07:48 AM, Bouke / VideoToolShed wrote: On 08 Apr 2020, at 13:43, Mark Filipak wrote: Paul, do you really think I have bad intent? you certainly smell like Custom Sift, (a tr

Re: [FFmpeg-user] 'image trails'

2020-04-08 Thread Bouke / VideoToolShed
> On 08 Apr 2020, at 14:00, Mark Filipak > wrote: > > On 04/08/2020 07:48 AM, Bouke / VideoToolShed wrote: >>> On 08 Apr 2020, at 13:43, Mark Filipak >>> wrote: >>> >>> Paul, do you really think I have bad intent? >> you certainly smell like Custom Sift, >> (a troll on another list.) >> Bou

Re: [FFmpeg-user] 'image trails'

2020-04-08 Thread Mark Filipak
On 04/08/2020 07:48 AM, Bouke / VideoToolShed wrote: On 08 Apr 2020, at 13:43, Mark Filipak wrote: Paul, do you really think I have bad intent? you certainly smell like Custom Sift, (a troll on another list.) Bouke What I'm attempting to do, Bouke, is perfect the transcode of p24 to judde

Re: [FFmpeg-user] 'image trails'

2020-04-08 Thread Bouke / VideoToolShed
> On 08 Apr 2020, at 13:43, Mark Filipak > wrote: > > Paul, do you really think I have bad intent? you certainly smell like Custom Sift, (a troll on another list.) Bouke ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mail

Re: [FFmpeg-user] 'image trails'

2020-04-08 Thread Mark Filipak
On 04/08/2020 07:37 AM, Paul B Mahol wrote: On 4/8/20, Mark Filipak wrote: Command employing 'interleave' filter in lieu of 'mix' filter: fmpeg -i "M:\Test Videos\23.976p.mkv" -filter_complex "split=3[B][C][D],[B]select='bitand(not(eq(mod(n+1\,10)\,3))\,not(eq(mod(n+1\,10)\,8)))'[E],[C]select=

Re: [FFmpeg-user] 'image trails'

2020-04-08 Thread Mark Filipak
On 04/08/2020 07:19 AM, Mark Filipak wrote: Command employing 'interleave' filter in lieu of 'mix' filter: fmpeg -i "M:\Test Videos\23.976p.mkv" -filter_complex "split=3[B][C][D],[B]select='bitand(not(eq(mod(n+1\,10)\,3))\,not(eq(mod(n+1\,10)\,8)))'[E],[C]select='eq(mod(n+1\,10)\,3)'[G],[D]sele

[FFmpeg-user] trim and pad audio without reencode

2020-04-08 Thread Alexander Machev
I want to align the audio stream in the input to has the exact same duration as the video stream. So, if audio length is lower than video, fill the gap with silence. If audio stream is over length than video, cut the audio to fit the video length. It seems apad and atrim filters can do the job, bu

Re: [FFmpeg-user] 'image trails'

2020-04-08 Thread Paul B Mahol
On 4/8/20, Mark Filipak wrote: > Command employing 'interleave' filter in lieu of 'mix' filter: > > fmpeg -i "M:\Test Videos\23.976p.mkv" -filter_complex > "split=3[B][C][D],[B]select='bitand(not(eq(mod(n+1\,10)\,3))\,not(eq(mod(n+1\,10)\,8)))'[E],[C]select='eq(mod(n+1\,10)\,3)'[G],[D]select='eq(m

Re: [FFmpeg-user] 'image trails'

2020-04-08 Thread Mark Filipak
Command employing 'interleave' filter in lieu of 'mix' filter: fmpeg -i "M:\Test Videos\23.976p.mkv" -filter_complex "split=3[B][C][D],[B]select='bitand(not(eq(mod(n+1\,10)\,3))\,not(eq(mod(n+1\,10)\,8)))'[E],[C]select='eq(mod(n+1\,10)\,3)'[G],[D]select='eq(mod(n+1\,10)\,8)'[H],[E][G][H]interlea

[FFmpeg-user] Implicit Transcoding of Video/Audio Content in an TS MUX MPEG Container to HLS

2020-04-08 Thread Marco Kittel
Hello, right now i have an Multicast Stream with an TS MUX Mpeg Container in. Before i transcode i have to use ffprobe to check on which Index my Video/Audio Content contains. Then i have to say ffmpeg explicitly where the indexes are, so that i can map the content to the codec and compression opt

Re: [FFmpeg-user] 'image trails'

2020-04-08 Thread Mark Filipak
On 04/08/2020 02:23 AM, Michael Koch wrote: Am 08.04.2020 um 08:09 schrieb Michael Koch: Am 08.04.2020 um 04:48 schrieb Mark Filipak: Start again after a good sleep. Re: https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20200407/4556ce6a/attachment.mpv Kindly play 'attachment'. Got any id

Re: [FFmpeg-user] 'image trails'

2020-04-08 Thread Mark Filipak
Hi, Michael (Love your book!), On 04/08/2020 02:23 AM, Michael Koch wrote: Am 08.04.2020 um 08:09 schrieb Michael Koch: Am 08.04.2020 um 04:48 schrieb Mark Filipak: Start again after a good sleep. Re: https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20200407/4556ce6a/attachment.mpv Kind

Re: [FFmpeg-user] ffmpeg low bitrate with with qulaity

2020-04-08 Thread Ted Park
Hi, > So, as a first step, just try reducing your 5 Mb/s to 2 Mb/s and see > what happens. > > Secondly, encoding is basically a trade-off between encoding speed, > resulting size (file size or bit rate), and quality. Up to certain > limits, you can sacrifice one for the other. E.g. you can get a