[FFmpeg-user] Error with FFmpeg and Node Canvas for SubtitleO

2023-09-02 Thread Suraj Kadam
We have a subtitles automation tool, made on ReactJS on FE. and NestJS on
BE.

So the flow is that on the frontend first we show the user a preview of the
subtitles, and give him options to modify the styling, the position of the
subtitles or the subtitle container, and on the preview everything is done
using CSS and JS.

We are looking for a sync up between the values from the frontend to apply
accurately on the backend.

Our current approach is by generating PNG images using node-canvas and then
streaming them out on the video at particular timestamps using
overlay_filter.

The first concern is of the scaling or the dimensions, as on the frontend
we are using VideoJS, and of course for better view we are resizing the
container as per devices etc, so the video's width & height on the frontend
is less (mostly) than the actual dimensions of the video.

While using that dimensions, the subtitles are too short to be rendered on
the video (smaller) as the width and height of the canvas gets shorter.

And also for the position, we are using react-draggble library for making
the subtitles draggable and place them on video In the preview, still we
lack on syncing up both the positions on the backend.

We are just looking for a proper roadmap or solution for these blockers.

Would appreciate your help on this.

Thanks.

Here's the current implementation of the code:

wrapText(context, text, x, y, maxWidth, lineHeight) {
const words = text.split(' ');
let line = '';

for (let n = 0; n < words.length; n++) {
  const testLine = line + words[n] + ' ';
  const metrics = context.measureText(testLine);
  const testWidth = metrics.width;
  if (testWidth > maxWidth && n > 0) {
context.fillText(line, x, y);
line = words[n] + ' ';
y += lineHeight;
  } else {
line = testLine;
  }
}
context.fillText(line, x, y);
  }
  generateSubtitlePNG(transcription: any, outputPath: string, w, h) {
const canvas = createCanvas(720, 200);
const ctx = canvas.getContext('2d');

ctx.fillStyle = 'rgba(0, 0, 0, 0)';
ctx.fillRect(0, 0, canvas.width, canvas.height);

const fontSize = 41;
ctx.font = `bold ${fontSize}px Arial`;
ctx.fillStyle = 'white';
ctx.textAlign = 'center';

const maxWidth = canvas.width; // 20 pixels padding on each side
const lineHeight = fontSize * 1.4; // Adjust as needed
const x = canvas.width / 2;
const y = (canvas.height - lineHeight) / 2 + fontSize / 2; // Adjusted
for font height

this.wrapText(ctx, transcription.text, x, y, maxWidth, lineHeight);

const buffer = canvas.toBuffer('image/png');
fs.writeFileSync(outputPath, buffer);
  }
  async applySubtitlesNew(
addSubtitlesDto: AddSubtitlestDto,
userId: number,
project: any,
  ) {
if (userId !== project.user.id) {
  throw new UnauthorizedException();
}

const videoPath = `uploads/${project.originalVideoFile}`;

const transcriptions = JSON.parse(addSubtitlesDto.transcriptions);
const pngPaths = [];
const dimensions = await this.getVideoDimensions(videoPath);
console.log(dimensions);
// Generate PNGs for each transcription
for (let i = 0; i < transcriptions.length; i++) {
  const outputPath =
`subtitles/${project.originalVideoFile}-subtitle-${i}.png`;
  this.generateSubtitlePNG(
transcriptions[i],
outputPath,
dimensions?.width,
dimensions?.height,
  );
  pngPaths.push(outputPath);
}
let filterComplex = '[0:v]';
for (let i = 0; i < pngPaths.length; i++) {
  const start = transcriptions[i].start.toFixed(2);
  const end = transcriptions[i].end.toFixed(2);
  const overlayX = '(W-w)/2';
  const overlayY = `H-h-10`;
  filterComplex += `[${
i + 1
  }:v]
overlay=${overlayX}:${overlayY}:enable='between(t,${start},${end})'`;
  if (i < pngPaths.length - 1) {
filterComplex += '[vout];[vout]';
  }
}

console.log(filterComplex);
// Run FFmpeg
return new Promise((resolve, reject) => {
  const ffmpegCommand = ffmpeg();

  // Add video input
  ffmpegCommand.input(videoPath);

  // Add PNG inputs
  for (const pngPath of pngPaths) {
ffmpegCommand.input(pngPath);
  }

  ffmpegCommand
.complexFilter(filterComplex)
.outputOptions('-c:v', 'libx264')
.output('output.mp4')
.on('end', () => {
  // Handle completion
  // Clean up PNG files
  for (const pngPath of pngPaths) {
fs.unlinkSync(pngPath);
  }
  resolve('done');
})
.on('error', (error, stdout, stderr) => {
  console.log(stderr);
  // Handle error
  reject(error);
})
.run();
});
  }
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, 

Re: [FFmpeg-user] Error while compiling cuda enabled ffmpeg in Ubuntu 22.04

2023-03-13 Thread Dennis Mungai
On Mon, 13 Mar 2023, 15:22 Ravi Joshi via ffmpeg-user, <
ffmpeg-user@ffmpeg.org> wrote:

> Thanks a lot.
>
> It worked like a charm!
>
> -
> Thanks
>
>
> On Monday, 13 March, 2023 at 12:38:42 am GMT+9, Dennis Mungai <
> dmng...@gmail.com> wrote:
>
>
>
>
>
> On Sun, 12 Mar 2023 at 17:58, Ravi Joshi via ffmpeg-user <
> ffmpeg-user@ffmpeg.org> wrote:
>
> > Hello everyone,
> >
> > Thank you for allowing me to join this mailing list and post here. I am
> > compiling cuda support for ffmpeg in Ubuntu 22.04 OS. Unfortunately, it
> > throws the following error:
> >
> > ravi@asus:~/tools/ffmpeg$ ./configure --enable-nonfree
> --enable-cuda-nvcc
> > --enable-libnpp --extra-cflags=-I/usr/local/cuda/include
> > --extra-ldflags=-L/usr/local/cuda/lib64 --disable-static --enable-shared
> > ERROR: failed checking for nvcc.
> >
> >
> > I am following the documetional provided by Nvidia at
> >
> https://docs.nvidia.com/video-technologies/video-codec-sdk/ffmpeg-with-nvidia-gpu/index.html
> >
> >
> > Below is the necessary information:
> > OS: Ubuntu 22.04.2 LTS
> > CUDA Version: 11.7
> > GCC Version: 11.3.0
> > Kernel Version: 5.19.0-35-generic
> >
> > In the log file "ffbuild/config.log", I found following doubtful entry:
> >
> > g++ -D_ISOC99_SOURCE -I/usr/local/cuda/include -D__STDC_CONSTANT_MACROS
> > -std=c++11 -c -o /tmp/ffconf.z2qxBKmX/test.o
> /tmp/ffconf.z2qxBKmX/test.cpp
> > test_cflags_cc -std=c11 ctype.h __STDC_VERSION__ >= 201112L
> > test_cc -std=c11
> > BEGIN /tmp/ffconf.z2qxBKmX/test.c
> >1#include 
> >2#if !(__STDC_VERSION__ >= 201112L)
> >3#error "unsatisfied condition: __STDC_VERSION__ >= 201112L"
> >4#endif
> > END /tmp/ffconf.z2qxBKmX/test.c
> >
> >
> > Please see the attached log file for better understanding the issue. I am
> > also sharing it via Pastbin (https://pastebin.com/9Z6Puzxp). There is a
> > total of 17836 lines in the log file. Unfortunately, Pastebin marked the
> > log file as "Pending Moderation" while composing this email. I apologize
> > for the inconvenience.
> >
> >
> > How to enable cuda support for ffmpeg in Ubuntu 22.04?
> >
> > -
> > Thanks
> > Ravi
> >
>
>
> Hey there,
>
> nvcc isn't in your system's path.
> If you run which nvcc , yiu'll get a blank output.
> How was CUDA installed on your system?
>
> Fix that and you'll be able to build with CUDA
>


You're welcome

>
___
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] Error while compiling cuda enabled ffmpeg in Ubuntu 22.04

2023-03-13 Thread Ravi Joshi via ffmpeg-user
Thanks a lot.

It worked like a charm!

-
Thanks


On Monday, 13 March, 2023 at 12:38:42 am GMT+9, Dennis Mungai 
 wrote: 





On Sun, 12 Mar 2023 at 17:58, Ravi Joshi via ffmpeg-user <
ffmpeg-user@ffmpeg.org> wrote:

> Hello everyone,
>
> Thank you for allowing me to join this mailing list and post here. I am
> compiling cuda support for ffmpeg in Ubuntu 22.04 OS. Unfortunately, it
> throws the following error:
>
> ravi@asus:~/tools/ffmpeg$ ./configure --enable-nonfree --enable-cuda-nvcc
> --enable-libnpp --extra-cflags=-I/usr/local/cuda/include
> --extra-ldflags=-L/usr/local/cuda/lib64 --disable-static --enable-shared
> ERROR: failed checking for nvcc.
>
>
> I am following the documetional provided by Nvidia at
> https://docs.nvidia.com/video-technologies/video-codec-sdk/ffmpeg-with-nvidia-gpu/index.html
>
>
> Below is the necessary information:
> OS: Ubuntu 22.04.2 LTS
> CUDA Version: 11.7
> GCC Version: 11.3.0
> Kernel Version: 5.19.0-35-generic
>
> In the log file "ffbuild/config.log", I found following doubtful entry:
>
> g++ -D_ISOC99_SOURCE -I/usr/local/cuda/include -D__STDC_CONSTANT_MACROS
> -std=c++11 -c -o /tmp/ffconf.z2qxBKmX/test.o /tmp/ffconf.z2qxBKmX/test.cpp
> test_cflags_cc -std=c11 ctype.h __STDC_VERSION__ >= 201112L
> test_cc -std=c11
> BEGIN /tmp/ffconf.z2qxBKmX/test.c
>    1    #include 
>    2    #if !(__STDC_VERSION__ >= 201112L)
>    3    #error "unsatisfied condition: __STDC_VERSION__ >= 201112L"
>    4    #endif
> END /tmp/ffconf.z2qxBKmX/test.c
>
>
> Please see the attached log file for better understanding the issue. I am
> also sharing it via Pastbin (https://pastebin.com/9Z6Puzxp). There is a
> total of 17836 lines in the log file. Unfortunately, Pastebin marked the
> log file as "Pending Moderation" while composing this email. I apologize
> for the inconvenience.
>
>
> How to enable cuda support for ffmpeg in Ubuntu 22.04?
>
> -
> Thanks
> Ravi
>


Hey there,

nvcc isn't in your system's path.
If you run which nvcc , yiu'll get a blank output.
How was CUDA installed on your system?

Fix that and you'll be able to build with CUDA support.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Error while compiling cuda enabled ffmpeg in Ubuntu 22.04

2023-03-12 Thread Dennis Mungai
On Sun, 12 Mar 2023 at 17:58, Ravi Joshi via ffmpeg-user <
ffmpeg-user@ffmpeg.org> wrote:

> Hello everyone,
>
> Thank you for allowing me to join this mailing list and post here. I am
> compiling cuda support for ffmpeg in Ubuntu 22.04 OS. Unfortunately, it
> throws the following error:
>
> ravi@asus:~/tools/ffmpeg$ ./configure --enable-nonfree --enable-cuda-nvcc
> --enable-libnpp --extra-cflags=-I/usr/local/cuda/include
> --extra-ldflags=-L/usr/local/cuda/lib64 --disable-static --enable-shared
> ERROR: failed checking for nvcc.
>
>
> I am following the documetional provided by Nvidia at
> https://docs.nvidia.com/video-technologies/video-codec-sdk/ffmpeg-with-nvidia-gpu/index.html
>
>
> Below is the necessary information:
> OS: Ubuntu 22.04.2 LTS
> CUDA Version: 11.7
> GCC Version: 11.3.0
> Kernel Version: 5.19.0-35-generic
>
> In the log file "ffbuild/config.log", I found following doubtful entry:
>
> g++ -D_ISOC99_SOURCE -I/usr/local/cuda/include -D__STDC_CONSTANT_MACROS
> -std=c++11 -c -o /tmp/ffconf.z2qxBKmX/test.o /tmp/ffconf.z2qxBKmX/test.cpp
> test_cflags_cc -std=c11 ctype.h __STDC_VERSION__ >= 201112L
> test_cc -std=c11
> BEGIN /tmp/ffconf.z2qxBKmX/test.c
> 1#include 
> 2#if !(__STDC_VERSION__ >= 201112L)
> 3#error "unsatisfied condition: __STDC_VERSION__ >= 201112L"
> 4#endif
> END /tmp/ffconf.z2qxBKmX/test.c
>
>
> Please see the attached log file for better understanding the issue. I am
> also sharing it via Pastbin (https://pastebin.com/9Z6Puzxp). There is a
> total of 17836 lines in the log file. Unfortunately, Pastebin marked the
> log file as "Pending Moderation" while composing this email. I apologize
> for the inconvenience.
>
>
> How to enable cuda support for ffmpeg in Ubuntu 22.04?
>
> -
> Thanks
> Ravi
>


Hey there,

nvcc isn't in your system's path.
If you run which nvcc , yiu'll get a blank output.
How was CUDA installed on your system?

Fix that and you'll be able to build with CUDA support.
___
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] Error: Impossible to convert between the formats...(Nvidia codecs)

2023-02-26 Thread Dennis Mungai
On Mon, 27 Feb 2023 at 03:48, Dennis Mungai  wrote:

> On Sun, 10 Jul 2022 at 10:28, Ben Parham  wrote:
>
>> Hi Dennis,
>> Now I am streaming with two cameras but I have a small problem, the audio
>> stream is not synced with the video stream, and there is a small delay of
>> around 0.2 seconds.
>> How can I fix it? I would appreciate your help.
>> Regards,
>> Ben.
>>
>
> This somehow slipped through my email filters, seeing this now.
>
> Try this variant and report back:
>
> ffmpeg -y -fps_mode passthrough -hwaccel cuda -hwaccel_output_format cuda
> -extra_hw_frames 3
> rtsp_transport tcp -i "rtsp://admin:Pass1@192.168.1.1" -flags
> +genpts -vf scale_cuda=1920:1080  -vcodec hevc_nvenc -delay 0  -preset p2
> -bf:v 0 -tune hq -rc vbr -vb 700k -maxrate  800k -minrate
> 200k -bufsize 800k -g 25 -acodec copy -strict -2 -flags +global_header
> -f rtsp "rtsp://localhost:8000/stream"
>
> See the changes I made:
>
> 1. Completely disabled B-frames. B-frames add to encoder latency.
> 2. See the new option -fps_mode, which replaces the now-deprecated -vsync
> parameter.
> 3. I also removed the +low_delay flag, as its' known to be very broken on
> any input with B-frames.
> 4. To nvenc, I added the -delay parameter, set to 0.
>
> The latency is propagated by the “delay” parameter (internally referred to
> as async_depth) passed to FFmpeg for nvenc. The code in FFmpeg’s nvenc.c waits
> until this number of extra frames have been buffered
> 
> before emitting any frames and is intended to support parallel and 1:N
> encoding scenarios.
>
> The assigned default value is INT_MAX which later gets reduced down to the
> number of NVENC surfaces initialized minus one, which itself has an initial
> value of 4 when unset/by default.
>
> This can be overriden by setting -delay:v 0 to fix the output latency.
>
>
> Retest and report back.
>
>
>

You can also add

-max_interleave_delta 0

To the output options, like this to the command line above:

ffmpeg -y -fps_mode passthrough -hwaccel cuda -hwaccel_output_format cuda
-extra_hw_frames 3
rtsp_transport tcp -i "rtsp://admin:Pass1@192.168.1.1" -flags
+genpts -vf scale_cuda=1920:1080  -vcodec hevc_nvenc -delay 0  -preset p2
-bf:v 0 -tune hq -rc vbr -vb 700k -maxrate  800k -minrate
200k -bufsize 800k -g 25 -acodec copy -strict -2 -flags +global_header
-max_interleave_delta 0 -f rtsp "rtsp://localhost:8000/stream"

And report back on the results.
___
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] Error: Impossible to convert between the formats...(Nvidia codecs)

2023-02-26 Thread Dennis Mungai
On Sun, 10 Jul 2022 at 10:28, Ben Parham  wrote:

> Hi Dennis,
> Now I am streaming with two cameras but I have a small problem, the audio
> stream is not synced with the video stream, and there is a small delay of
> around 0.2 seconds.
> How can I fix it? I would appreciate your help.
> Regards,
> Ben.
>

This somehow slipped through my email filters, seeing this now.

Try this variant and report back:

ffmpeg -y -fps_mode passthrough -hwaccel cuda -hwaccel_output_format cuda
-extra_hw_frames 3
rtsp_transport tcp -i "rtsp://admin:Pass1@192.168.1.1" -flags
+genpts -vf scale_cuda=1920:1080  -vcodec hevc_nvenc -delay 0  -preset p2
-bf:v 0 -tune hq -rc vbr -vb 700k -maxrate  800k -minrate
200k -bufsize 800k -g 25 -acodec copy -strict -2 -flags +global_header
-f rtsp "rtsp://localhost:8000/stream"

See the changes I made:

1. Completely disabled B-frames. B-frames add to encoder latency.
2. See the new option -fps_mode, which replaces the now-deprecated -vsync
parameter.
3. I also removed the +low_delay flag, as its' known to be very broken on
any input with B-frames.
4. To nvenc, I added the -delay parameter, set to 0.

The latency is propagated by the “delay” parameter (internally referred to
as async_depth) passed to FFmpeg for nvenc. The code in FFmpeg’s nvenc.c waits
until this number of extra frames have been buffered

before emitting any frames and is intended to support parallel and 1:N
encoding scenarios.

The assigned default value is INT_MAX which later gets reduced down to the
number of NVENC surfaces initialized minus one, which itself has an initial
value of 4 when unset/by default.

This can be overriden by setting -delay:v 0 to fix the output latency.


Retest and report back.
___
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] Error initializing filter 'channelsplit' with args 'channel_layout=stereo:channels=FL|FR'

2023-01-04 Thread adam smith via ffmpeg-user



> On 4 Jan 2023, at 17:23, Paul B Mahol  wrote:
> 
> If itt worked previously it was by pure luck. 

Lucky me. Thanks, I appreciate your help.
___
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] Error initializing filter 'channelsplit' with args 'channel_layout=stereo:channels=FL|FR'

2023-01-04 Thread Paul B Mahol
On Wed, Jan 4, 2023 at 6:16 PM adam smith  wrote:

>
>
> On 4 Jan 2023, at 16:30, Paul B Mahol  wrote:
>
> Correct syntax is FL+FR and not using '|’
>
>
> Thanks very much Paul, I will give it a whirl. Do you know if I was just
> being lucky it worked at all previously or is this a change?
>

If itt worked previously it was by pure luck.
___
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] Error initializing filter 'channelsplit' with args 'channel_layout=stereo:channels=FL|FR'

2023-01-04 Thread adam smith via ffmpeg-user


> On 4 Jan 2023, at 16:30, Paul B Mahol  wrote:
> 
> Correct syntax is FL+FR and not using '|’ 

Thanks very much Paul, I will give it a whirl. Do you know if I was just being 
lucky it worked at all previously or is this a change?






___
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] Error initializing filter 'channelsplit' with args 'channel_layout=stereo:channels=FL|FR'

2023-01-04 Thread Paul B Mahol
On Wed, Jan 4, 2023 at 5:17 PM adam smith via ffmpeg-user <
ffmpeg-user@ffmpeg.org> wrote:

> Hi Everyone,
>
> I have been running this command no problem using FFmpeg 5.0;  but after
> updating to 5.1.2 it is complaining about the arguments used in the channel
> split.
> Error initializing filter 'channelsplit' with args
> 'channel_layout=stereo:channels=FL|FR’
>

Correct syntax is FL+FR and not using '|'



>
> Command line
> ffmpeg -i
> /data/disposable/419255_20230104-7-gnim60/5d5c058e-e2ca-4a7d-8622-0a529322bfb3_1672828076604.mp4
> -filter_complex
> "[0:0]minterpolate=mi_mode=dup:fps=29.97[0frame_conversion];[0:1]channelsplit=channel_layout=stereo:channels=FL|FR[001_channelsplit][002_channelsplit];[001_channelsplit]asplit=8[001_asplit][003_asplit][005_asplit][007_asplit][009_asplit][011_asplit][013_asplit][015_asplit];[002_channelsplit]asplit=8[002_asplit][004_asplit][006_asplit][008_asplit][010_asplit][012_asplit][014_asplit][016_asplit]"
> -map "[0frame_conversion]" -map "[001_asplit]" -map "[002_asplit]" -map
> "[003_asplit]" -map "[004_asplit]" -map "[005_asplit]" -map "[006_asplit]"
> -map "[007_asplit]" -map "[008_asplit]" -map "[009_asplit]" -map
> "[010_asplit]" -map "[011_asplit]" -map "[012_asplit]" -map "[013_asplit]"
> -map "[014_asplit]" -map "[015_asplit]" -map "[016_asplit]" -c:v dnxhd
> -pix_fmt yuv422p -s 1920x1080 -b:v 145M -flags +ildct+ilme -r 3/1001
> -c:a pcm_s24le -ar 48000 -f tee
> "/data/disposable/419255_20230104-7-gnim60/5d5c058e-e2ca-4a7d-8622-0a529322bfb3_1672828076604.mxf”
>
> Output
> ffmpeg version 5.1.1 Copyright (c) 2000-2022 the FFmpeg developers
>   built with gcc 12.2.1 (Alpine 12.2.1_git20220924-r4) 20220924
>   configuration: --prefix=/opt/ffmpeg --disable-debug --disable-doc
> --disable-ffplay --enable-shared --enable-libopencore-amrnb
> --enable-libopencore-amrwb --enable-gpl --enable-libass --enable-fontconfig
> --enable-libfreetype --enable-libfontconfig --enable-libfribidi
> --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora
> --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb
> --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree
> --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small
> --enable-version3 --enable-libbluray --disable-libzmq --enable-libopenjpeg
> --enable-libkvazaar --enable-libaom --enable-libsrt --enable-libaribb24
> --extra-libs=-ldl --extra-libs=-lpthread
> --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
>   libavutil  57. 28.100 / 57. 28.100
>   libavcodec 59. 37.100 / 59. 37.100
>   libavformat59. 27.100 / 59. 27.100
>   libavdevice59.  7.100 / 59.  7.100
>   libavfilter 8. 44.100 /  8. 44.100
>   libswscale  6.  7.100 /  6.  7.100
>   libswresample   4.  7.100 /  4.  7.100
>   libpostproc56.  6.100 / 56.  6.100
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
> '/data/disposable/419255_20230104-7-gnim60/5d5c058e-e2ca-4a7d-8622-0a529322bfb3_1672828076604.mp4':
>   Metadata:
> major_brand : isom
> minor_version   : 512
> compatible_brands: isomiso2avc1mp41
>   Duration: 00:00:58.21, start: 0.00, bitrate: 15153 kb/s
>   Stream #0:0[0x1](und): Video: h264 (avc1 / 0x31637661),
> yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 14957 kb/s, 25 fps, 25
> tbr, 12800 tbn (default)
> Metadata:
>   handler_name: VideoHandler
>   vendor_id   : [0][0][0][0]
>   Stream #0:1[0x2](und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo,
> fltp, 192 kb/s (default)
> Metadata:
>   handler_name: SoundHandler
>   vendor_id   : [0][0][0][0]
>   Stream #0:2[0x3](und): Subtitle: mov_text (tx3g / 0x67337874),
> 1920x1080, 0 kb/s (default)
> Metadata:
>   handler_name: SubtitleHandler
> [AVFilterGraph @ 0x7f673f65e180] Error initializing filter 'channelsplit'
> with args 'channel_layout=stereo:channels=FL|FR'
> Error initializing complex filters.
> Invalid argument
>
>
> I realise that in this example the channel layout is not really required
> as it would default to ‘all’ which for this would be fine, but sometimes
> the source will be 5.1 and I only need FL & FR so I try and keep the
> command consistent.
>
> Do you know if the syntax has changed between versions?
>
> Thanks for your help as always
> Adam
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-user] Error initializing filter 'channelsplit' with args 'channel_layout=stereo:channels=FL|FR'

2023-01-04 Thread adam smith via ffmpeg-user
Hi Everyone,

I have been running this command no problem using FFmpeg 5.0;  but after 
updating to 5.1.2 it is complaining about the arguments used in the channel 
split.
Error initializing filter 'channelsplit' with args 
'channel_layout=stereo:channels=FL|FR’


Command line
ffmpeg -i 
/data/disposable/419255_20230104-7-gnim60/5d5c058e-e2ca-4a7d-8622-0a529322bfb3_1672828076604.mp4
 -filter_complex 
"[0:0]minterpolate=mi_mode=dup:fps=29.97[0frame_conversion];[0:1]channelsplit=channel_layout=stereo:channels=FL|FR[001_channelsplit][002_channelsplit];[001_channelsplit]asplit=8[001_asplit][003_asplit][005_asplit][007_asplit][009_asplit][011_asplit][013_asplit][015_asplit];[002_channelsplit]asplit=8[002_asplit][004_asplit][006_asplit][008_asplit][010_asplit][012_asplit][014_asplit][016_asplit]"
  -map "[0frame_conversion]" -map "[001_asplit]" -map "[002_asplit]" -map 
"[003_asplit]" -map "[004_asplit]" -map "[005_asplit]" -map "[006_asplit]" -map 
"[007_asplit]" -map "[008_asplit]" -map "[009_asplit]" -map "[010_asplit]" -map 
"[011_asplit]" -map "[012_asplit]" -map "[013_asplit]" -map "[014_asplit]" -map 
"[015_asplit]" -map "[016_asplit]" -c:v dnxhd -pix_fmt yuv422p -s 1920x1080 
-b:v 145M -flags +ildct+ilme -r 3/1001 -c:a pcm_s24le -ar 48000 -f tee 
"/data/disposable/419255_20230104-7-gnim60/5d5c058e-e2ca-4a7d-8622-0a529322bfb3_1672828076604.mxf”

Output
ffmpeg version 5.1.1 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 12.2.1 (Alpine 12.2.1_git20220924-r4) 20220924
  configuration: --prefix=/opt/ffmpeg --disable-debug --disable-doc 
--disable-ffplay --enable-shared --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-gpl --enable-libass --enable-fontconfig 
--enable-libfreetype --enable-libfontconfig --enable-libfribidi 
--enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora 
--enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb 
--enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree 
--enable-openssl --enable-libfdk_aac --enable-postproc --enable-small 
--enable-version3 --enable-libbluray --disable-libzmq --enable-libopenjpeg 
--enable-libkvazaar --enable-libaom --enable-libsrt --enable-libaribb24 
--extra-libs=-ldl --extra-libs=-lpthread --extra-cflags=-I/opt/ffmpeg/include 
--extra-ldflags=-L/opt/ffmpeg/lib
  libavutil  57. 28.100 / 57. 28.100
  libavcodec 59. 37.100 / 59. 37.100
  libavformat59. 27.100 / 59. 27.100
  libavdevice59.  7.100 / 59.  7.100
  libavfilter 8. 44.100 /  8. 44.100
  libswscale  6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc56.  6.100 / 56.  6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 
'/data/disposable/419255_20230104-7-gnim60/5d5c058e-e2ca-4a7d-8622-0a529322bfb3_1672828076604.mp4':
  Metadata:
major_brand : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
  Duration: 00:00:58.21, start: 0.00, bitrate: 15153 kb/s
  Stream #0:0[0x1](und): Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 
1920x1080 [SAR 1:1 DAR 16:9], 14957 kb/s, 25 fps, 25 tbr, 12800 tbn (default)
Metadata:
  handler_name: VideoHandler
  vendor_id   : [0][0][0][0]
  Stream #0:1[0x2](und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, 
fltp, 192 kb/s (default)
Metadata:
  handler_name: SoundHandler
  vendor_id   : [0][0][0][0]
  Stream #0:2[0x3](und): Subtitle: mov_text (tx3g / 0x67337874), 1920x1080, 0 
kb/s (default)
Metadata:
  handler_name: SubtitleHandler
[AVFilterGraph @ 0x7f673f65e180] Error initializing filter 'channelsplit' with 
args 'channel_layout=stereo:channels=FL|FR'
Error initializing complex filters.
Invalid argument


I realise that in this example the channel layout is not really required as it 
would default to ‘all’ which for this would be fine, but sometimes the source 
will be 5.1 and I only need FL & FR so I try and keep the command consistent.

Do you know if the syntax has changed between versions?

Thanks for your help as always
Adam

___
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] Error in aeval?

2022-10-29 Thread Michael Koch

Am 29.10.2022 um 12:02 schrieb Paul B Mahol:

On 10/29/22, Michael Koch  wrote:

This command line works as expected:

ffmpeg -f lavfi -i sine,aeval="val(0)|val(0)*sin(2)*sin(2)" -ac 2 -t 5
-y out.wav


Why does it no longer work when I replace sin(2)*sin(2)  by pow(sin(2),2)  ?

ffmpeg -f lavfi -i sine,aeval="val(0)|val(0)*pow(sin(2),2)" -ac 2 -t 5
-y out.wav

Is this a bug? The console output is below.

PEBKAC

Escape ','


now it works, thank you

Michael

___
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] Error in aeval?

2022-10-29 Thread Paul B Mahol
On 10/29/22, Michael Koch  wrote:
> This command line works as expected:
>
> ffmpeg -f lavfi -i sine,aeval="val(0)|val(0)*sin(2)*sin(2)" -ac 2 -t 5
> -y out.wav
>
>
> Why does it no longer work when I replace sin(2)*sin(2)  by pow(sin(2),2)  ?
>
> ffmpeg -f lavfi -i sine,aeval="val(0)|val(0)*pow(sin(2),2)" -ac 2 -t 5
> -y out.wav
>
> Is this a bug? The console output is below.

PEBKAC

Escape ','

>
> Michael
>
>
> C:\Users\astro\Desktop\Mosquito>ffmpeg -f lavfi -i
> sine,aeval="val(0)|val(0)*pow(sin(2),2)" -ac 2 -t 5 -y out.wav
> ffmpeg version 2022-10-24-git-d79c240196-full_build-www.gyan.dev
> Copyright (c) 2000-2022 the FFmpeg developers
>built with gcc 12.1.0 (Rev2, Built by MSYS2 project)
>configuration: --enable-gpl --enable-version3 --enable-static
> --disable-w32threads --disable-autodetect --enable-fontconfig
> --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp
> --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib
> --enable-librist --enable-libsrt --enable-libssh --enable-libzmq
> --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2
> --enable-libaribb24 --enable-libdav1d --enable-libdavs2
> --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1
> --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2
> --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg
> --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r
> --enable-libfreetype --enable-libfribidi --enable-liblensfun
> --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf
> --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec
> --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl
> --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl
> --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt
> --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine
> --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc
> --enable-libilbc --enable-libgsm --enable-libopencore-amrnb
> --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa
> --enable-libbs2b --enable-libflite --enable-libmysofa
> --enable-librubberband --enable-libsoxr --enable-chromaprint
>libavutil  57. 39.101 / 57. 39.101
>libavcodec 59. 51.100 / 59. 51.100
>libavformat59. 34.101 / 59. 34.101
>libavdevice59.  8.101 / 59.  8.101
>libavfilter 8. 49.101 /  8. 49.101
>libswscale  6.  8.112 /  6.  8.112
>libswresample   4.  9.100 /  4.  9.100
>libpostproc56.  7.100 / 56.  7.100
> [Parsed_aeval_1 @ 02d8c2939000] [Eval @ 00f7499fe440] Missing
> ')' or too many args in 'pow(sin(2)'
> [lavfi @ 02d8c29261c0] Error initializing filter 'aeval' with args
> 'val(0)|val(0)*pow(sin(2)'
> sine,aeval=val(0)|val(0)*pow(sin(2),2): Invalid argument
>
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-user] Error in aeval?

2022-10-29 Thread Michael Koch

This command line works as expected:

ffmpeg -f lavfi -i sine,aeval="val(0)|val(0)*sin(2)*sin(2)" -ac 2 -t 5 
-y out.wav



Why does it no longer work when I replace sin(2)*sin(2)  by pow(sin(2),2)  ?

ffmpeg -f lavfi -i sine,aeval="val(0)|val(0)*pow(sin(2),2)" -ac 2 -t 5 
-y out.wav


Is this a bug? The console output is below.

Michael


C:\Users\astro\Desktop\Mosquito>ffmpeg -f lavfi -i 
sine,aeval="val(0)|val(0)*pow(sin(2),2)" -ac 2 -t 5 -y out.wav
ffmpeg version 2022-10-24-git-d79c240196-full_build-www.gyan.dev 
Copyright (c) 2000-2022 the FFmpeg developers

  built with gcc 12.1.0 (Rev2, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static 
--disable-w32threads --disable-autodetect --enable-fontconfig 
--enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp 
--enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib 
--enable-librist --enable-libsrt --enable-libssh --enable-libzmq 
--enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 
--enable-libaribb24 --enable-libdav1d --enable-libdavs2 
--enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 
--enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg 
--enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r 
--enable-libfreetype --enable-libfribidi --enable-liblensfun 
--enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf 
--enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec 
--enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl 
--enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl 
--enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt 
--enable-libopencore-amrwb --enable-libmp3lame --enable-libshine 
--enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc 
--enable-libilbc --enable-libgsm --enable-libopencore-amrnb 
--enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa 
--enable-libbs2b --enable-libflite --enable-libmysofa 
--enable-librubberband --enable-libsoxr --enable-chromaprint

  libavutil  57. 39.101 / 57. 39.101
  libavcodec 59. 51.100 / 59. 51.100
  libavformat    59. 34.101 / 59. 34.101
  libavdevice    59.  8.101 / 59.  8.101
  libavfilter 8. 49.101 /  8. 49.101
  libswscale  6.  8.112 /  6.  8.112
  libswresample   4.  9.100 /  4.  9.100
  libpostproc    56.  7.100 / 56.  7.100
[Parsed_aeval_1 @ 02d8c2939000] [Eval @ 00f7499fe440] Missing 
')' or too many args in 'pow(sin(2)'
[lavfi @ 02d8c29261c0] Error initializing filter 'aeval' with args 
'val(0)|val(0)*pow(sin(2)'

sine,aeval=val(0)|val(0)*pow(sin(2),2): Invalid argument


___
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] Error decoding DTS-HD MA audio files

2022-08-26 Thread rfischer56
I have now ripped the whole Vol 1 of the first BluRay (87 tracks) with the 
'direct stream demux' method and then converted to flac with ffmpeg using your 
command parameters. The resulting flac files play ok. Most transitions are 
perfectly gapless, but there are a few that have a slight click at the track 
change (amongst others between 5 and 6).

Next, I tested playback with my Oppo BDP93 via HDMI to an Onkyo AVR. 
Interesting result. Playback is @192kHz and gapless. However when I skip to 
tracks 5 and 6 (who both showed issues when converting to flac), the Oppo 
counter increments (showing playback in progress), but output stays silent. If 
I play tracks 4, 5 and 6 in one go without skipping forward, playback is ok and 
gapless. So there definitely seems to be a production issue on DG's side.

Your workaround is priceless, thank you. I will now get back to Deutsche 
Grammophon to see if I can get the 192kHz files as a download from them
Best regards
Rudi





-Original Message-
From: ffmpeg-user  On Behalf Of Paul B Mahol
Sent: Friday, 26. August 2022 22:37
To: FFmpeg user questions 
Subject: Re: [FFmpeg-user] Error decoding DTS-HD MA audio files

On Fri, Aug 26, 2022 at 10:23 PM  wrote:

> Thanks, Paul
> You are a genius. Your command worked with the two files I had sent 
> you. I am now getting playback on the dCS Rossini from the beginning 
> and (as far as I can hear) gapless playback between 4 and 5.
> However, I still have an inkling that not all is well I have attached 
> the log of the two conversions that I did. Chapter 4 seems to convert 
> ok with some messages but (as I see it) nothing serious. However 
> Chapter 5 (the one that previously converted to 48kHz) has some 
> serious error messages. Playback of the flac file seems ok.
> The dts file was extracted from the BluRay using DVDAE and the 'direct 
> stream demux' option.  Ffmpeg has more issues with some extracted "dts 
> files than with others. Could it be that the issue is already at the 
> stage of the 'direct stream demux' option?
> As I am getting exactly the same results (same files extract @48kHz) 
> using MakeMKV / MMH, there could be a problem at the ripping stage of 
> the BluRay and not primarily with ffmpeg? What do you think?
> Best regards
> Rudi
>
>
I do not think it is ripping stage. It is how content was originally produced.
I also noticed some strange error at end of chapter 5. So to be 100% sure it is 
still ok, check for gapless between chapter 5 and 6 (if there is 6 chapter or 
whatever comes next).
There is very slight chance that there is no delay in any of dts files but I 
doubt that because decoder follows specification 100% AFAIK.


>
>
>
> -Original Message-
> From: ffmpeg-user  On Behalf Of Paul B 
> Mahol
> Sent: Friday, 26. August 2022 21:57
> To: FFmpeg user questions 
> Subject: Re: [FFmpeg-user] Error decoding DTS-HD MA audio files
>
> On Fri, Aug 26, 2022 at 4:12 PM  wrote:
>
> > Hello
> >
> > Am trying to extract DTS-HD MA audio files from the following 
> > Blu-Ray (which I physically purchased)
> >
> > KARL RICHTER - J.S. Bach: Cantatas - Pure Audio Recordings < 
> > https://pureaudiorecordings.com/en/product/karl-richter-j-s-bach-can
> > ta
> > tas/
> > >
> >
> >
> > I am getting the same result both with DVDAE and with MakeMKV / MMH 
> > which I believe both use ffmpeg to extract DTS-HD MA. About 80% of 
> > the tracks are correctly extracted to 24/192kHz files and around 20% 
> > of the tracks are extracted to 24/48kHz files which play back at ¼ speed.
> > I then corrected the speed using
> >
> >
> >
> > ffmpeg -i 1.flac -af asetrate=192000 2.flac
> >
> >
> >
> > This now works on some of my playback equipment. However when I 
> > launch playback of a converted file, it shows 0/192kHz for around 5 
> > seconds and only then locks to the 24/192kHz stream and plays back. 
> > This happens with files that were correctly extracted to 192kHz and 
> > to those that I had to speed up after the fact. So there seems to be 
> > something fundamentally wrong with the ffmpeg extraction of this 
> > BluRay
> >
> >
> >
> > I have prepared some sample files on one drive
> >
> > https://1drv.ms/u/s!AmpEbEYrlrk5lWGskTYvPp0iv4L3?e=U7kCRC
> >
> > Chapter 4 extracts correctly to 192kHz
> >
> > Chapter 5 extracts to 48kHz
> >
>
> The Chapter 5 file dts-hd-ma have certain delay. Thus you get with 
> ffmpeg first few frames in only dts core at 48kHz 16bit and later full 
> dts-hd-ma kicks in with 192kHz and 32bit, but because filtering is not 
> supporting changing of sample rate and/or sample format at runtime all 
>

Re: [FFmpeg-user] Error decoding DTS-HD MA audio files

2022-08-26 Thread Paul B Mahol
On Fri, Aug 26, 2022 at 10:23 PM  wrote:

> Thanks, Paul
> You are a genius. Your command worked with the two files I had sent you. I
> am now getting playback on the dCS Rossini from the beginning and (as far
> as I can hear) gapless playback between 4 and 5.
> However, I still have an inkling that not all is well
> I have attached the log of the two conversions that I did. Chapter 4 seems
> to convert ok with some messages but (as I see it) nothing serious. However
> Chapter 5 (the one that previously converted to 48kHz) has some serious
> error messages. Playback of the flac file seems ok.
> The dts file was extracted from the BluRay using DVDAE and the 'direct
> stream demux' option.  Ffmpeg has more issues with some extracted "dts
> files than with others. Could it be that the issue is already at the stage
> of the 'direct stream demux' option?
> As I am getting exactly the same results (same files extract @48kHz) using
> MakeMKV / MMH, there could be a problem at the ripping stage of the BluRay
> and not primarily with ffmpeg? What do you think?
> Best regards
> Rudi
>
>
I do not think it is ripping stage. It is how content was originally
produced.
I also noticed some strange error at end of chapter 5. So to be 100% sure
it is still ok, check for gapless between chapter 5 and 6 (if there is 6
chapter or whatever comes next).
There is very slight chance that there is no delay in any of dts files but
I doubt that because decoder follows specification 100% AFAIK.


>
>
>
> -Original Message-
> From: ffmpeg-user  On Behalf Of Paul B
> Mahol
> Sent: Friday, 26. August 2022 21:57
> To: FFmpeg user questions 
> Subject: Re: [FFmpeg-user] Error decoding DTS-HD MA audio files
>
> On Fri, Aug 26, 2022 at 4:12 PM  wrote:
>
> > Hello
> >
> > Am trying to extract DTS-HD MA audio files from the following Blu-Ray
> > (which I physically purchased)
> >
> > KARL RICHTER - J.S. Bach: Cantatas - Pure Audio Recordings <
> > https://pureaudiorecordings.com/en/product/karl-richter-j-s-bach-canta
> > tas/
> > >
> >
> >
> > I am getting the same result both with DVDAE and with MakeMKV / MMH
> > which I believe both use ffmpeg to extract DTS-HD MA. About 80% of the
> > tracks are correctly extracted to 24/192kHz files and around 20% of
> > the tracks are extracted to 24/48kHz files which play back at ¼ speed.
> > I then corrected the speed using
> >
> >
> >
> > ffmpeg -i 1.flac -af asetrate=192000 2.flac
> >
> >
> >
> > This now works on some of my playback equipment. However when I launch
> > playback of a converted file, it shows 0/192kHz for around 5 seconds
> > and only then locks to the 24/192kHz stream and plays back. This
> > happens with files that were correctly extracted to 192kHz and to
> > those that I had to speed up after the fact. So there seems to be
> > something fundamentally wrong with the ffmpeg extraction of this
> > BluRay
> >
> >
> >
> > I have prepared some sample files on one drive
> >
> > https://1drv.ms/u/s!AmpEbEYrlrk5lWGskTYvPp0iv4L3?e=U7kCRC
> >
> > Chapter 4 extracts correctly to 192kHz
> >
> > Chapter 5 extracts to 48kHz
> >
>
> The Chapter 5 file dts-hd-ma have certain delay. Thus you get with ffmpeg
> first few frames in only dts core at 48kHz 16bit and later full dts-hd-ma
> kicks in with 192kHz and 32bit, but because filtering is not supporting
> changing of sample rate and/or sample format at runtime all remaining
> frames are filtered back to 48kHz and 16bit. This is evident if you run
> ffmpeg with '-v debug'
> flag.
>
> Workaround is to force filtering at 192kHz and 32bit right at start with
> this command:
>
> ffmpeg -i Title1\ -\ Chapter\ 05.dts -af aformat=f=s32p:r=192000:cl=stereo
> out.flac
>
>
>
>
> >
> > Both flac extract to not play back correctly on dCS Rossini
> >
>
> Hardware playback of 24bit flac at 192000 Hz is not widely supported AFAIK.
>
>
> >
> >
> >
> > Could you please take a look at this? Thanks a lot
> >
> > Rudi
> >
> >
> >
> > ___
> > ffmpeg-user mailing list
> > ffmpeg-user@ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
> >
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org
> with subject "unsubscribe".
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Error decoding DTS-HD MA audio files

2022-08-26 Thread rfischer56
Thanks, Paul
You are a genius. Your command worked with the two files I had sent you. I am 
now getting playback on the dCS Rossini from the beginning and (as far as I can 
hear) gapless playback between 4 and 5.
However, I still have an inkling that not all is well
I have attached the log of the two conversions that I did. Chapter 4 seems to 
convert ok with some messages but (as I see it) nothing serious. However 
Chapter 5 (the one that previously converted to 48kHz) has some serious error 
messages. Playback of the flac file seems ok.
The dts file was extracted from the BluRay using DVDAE and the 'direct stream 
demux' option.  Ffmpeg has more issues with some extracted "dts files than with 
others. Could it be that the issue is already at the stage of the 'direct 
stream demux' option?
As I am getting exactly the same results (same files extract @48kHz) using 
MakeMKV / MMH, there could be a problem at the ripping stage of the BluRay and 
not primarily with ffmpeg? What do you think?
Best regards
Rudi




-Original Message-
From: ffmpeg-user  On Behalf Of Paul B Mahol
Sent: Friday, 26. August 2022 21:57
To: FFmpeg user questions 
Subject: Re: [FFmpeg-user] Error decoding DTS-HD MA audio files

On Fri, Aug 26, 2022 at 4:12 PM  wrote:

> Hello
>
> Am trying to extract DTS-HD MA audio files from the following Blu-Ray 
> (which I physically purchased)
>
> KARL RICHTER - J.S. Bach: Cantatas - Pure Audio Recordings < 
> https://pureaudiorecordings.com/en/product/karl-richter-j-s-bach-canta
> tas/
> >
>
>
> I am getting the same result both with DVDAE and with MakeMKV / MMH 
> which I believe both use ffmpeg to extract DTS-HD MA. About 80% of the 
> tracks are correctly extracted to 24/192kHz files and around 20% of 
> the tracks are extracted to 24/48kHz files which play back at ¼ speed. 
> I then corrected the speed using
>
>
>
> ffmpeg -i 1.flac -af asetrate=192000 2.flac
>
>
>
> This now works on some of my playback equipment. However when I launch 
> playback of a converted file, it shows 0/192kHz for around 5 seconds 
> and only then locks to the 24/192kHz stream and plays back. This 
> happens with files that were correctly extracted to 192kHz and to 
> those that I had to speed up after the fact. So there seems to be 
> something fundamentally wrong with the ffmpeg extraction of this 
> BluRay
>
>
>
> I have prepared some sample files on one drive
>
> https://1drv.ms/u/s!AmpEbEYrlrk5lWGskTYvPp0iv4L3?e=U7kCRC
>
> Chapter 4 extracts correctly to 192kHz
>
> Chapter 5 extracts to 48kHz
>

The Chapter 5 file dts-hd-ma have certain delay. Thus you get with ffmpeg first 
few frames in only dts core at 48kHz 16bit and later full dts-hd-ma kicks in 
with 192kHz and 32bit, but because filtering is not supporting changing of 
sample rate and/or sample format at runtime all remaining frames are filtered 
back to 48kHz and 16bit. This is evident if you run ffmpeg with '-v debug'
flag.

Workaround is to force filtering at 192kHz and 32bit right at start with this 
command:

ffmpeg -i Title1\ -\ Chapter\ 05.dts -af aformat=f=s32p:r=192000:cl=stereo 
out.flac




>
> Both flac extract to not play back correctly on dCS Rossini
>

Hardware playback of 24bit flac at 192000 Hz is not widely supported AFAIK.


>
>
>
> Could you please take a look at this? Thanks a lot
>
> Rudi
>
>
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email 
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with 
subject "unsubscribe".

D:\RF My Videos\ffmpeg Convert>rem this batch processes all files in folder 
'input' and puts the result in folder 'output'

D:\RF My Videos\ffmpeg Convert>FOR /F "tokens=*" %G IN ('dir /b /s *.dts') DO 
ffmpeg -i "%G" -af aformat=f=s32p:r=192000:cl=stereo "D:\RF My Videos\ffmpeg 
Convert\output\%~nG.flac"

D:\RF My Videos\ffmpeg Convert>ffmpeg -i "D:\RF My Videos\ffmpeg 
Convert\input\4.dts" -af aformat=f=s32p:r=192000:cl=stereo "D:\RF My 
Videos\ffmpeg Convert\output\4.flac"
ffmpeg version 2022-08-22-git-f23e3ce858-essentials_build-www.gyan.dev 
Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 12.1.0 (Rev2, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static 
--disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv 
--enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-

Re: [FFmpeg-user] Error decoding DTS-HD MA audio files

2022-08-26 Thread Paul B Mahol
On Fri, Aug 26, 2022 at 4:12 PM  wrote:

> Hello
>
> Am trying to extract DTS-HD MA audio files from the following Blu-Ray
> (which
> I physically purchased)
>
> KARL RICHTER - J.S. Bach: Cantatas - Pure Audio Recordings
> <
> https://pureaudiorecordings.com/en/product/karl-richter-j-s-bach-cantatas/
> >
>
>
> I am getting the same result both with DVDAE and with MakeMKV / MMH which I
> believe both use ffmpeg to extract DTS-HD MA. About 80% of the tracks are
> correctly extracted to 24/192kHz files and around 20% of the tracks are
> extracted to 24/48kHz files which play back at ¼ speed. I then corrected
> the
> speed using
>
>
>
> ffmpeg -i 1.flac -af asetrate=192000 2.flac
>
>
>
> This now works on some of my playback equipment. However when I launch
> playback of a converted file, it shows 0/192kHz for around 5 seconds and
> only then locks to the 24/192kHz stream and plays back. This happens with
> files that were correctly extracted to 192kHz and to those that I had to
> speed up after the fact. So there seems to be something fundamentally wrong
> with the ffmpeg extraction of this BluRay
>
>
>
> I have prepared some sample files on one drive
>
> https://1drv.ms/u/s!AmpEbEYrlrk5lWGskTYvPp0iv4L3?e=U7kCRC
>
> Chapter 4 extracts correctly to 192kHz
>
> Chapter 5 extracts to 48kHz
>

The Chapter 5 file dts-hd-ma have certain delay. Thus you get with ffmpeg
first few frames in only dts core at 48kHz 16bit and later full dts-hd-ma
kicks in
with 192kHz and 32bit, but because filtering is not supporting changing of
sample rate and/or sample format at runtime all remaining frames are
filtered
back to 48kHz and 16bit. This is evident if you run ffmpeg with '-v debug'
flag.

Workaround is to force filtering at 192kHz and 32bit right at start with
this command:

ffmpeg -i Title1\ -\ Chapter\ 05.dts -af aformat=f=s32p:r=192000:cl=stereo
out.flac




>
> Both flac extract to not play back correctly on dCS Rossini
>

Hardware playback of 24bit flac at 192000 Hz is not widely supported AFAIK.


>
>
>
> Could you please take a look at this? Thanks a lot
>
> Rudi
>
>
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Error decoding DTS-HD MA audio files

2022-08-26 Thread rfischer56
Password is 'homer'
Sorry

-Original Message-
From: ffmpeg-user  On Behalf Of Paul B Mahol
Sent: Friday, 26. August 2022 17:21
To: FFmpeg user questions 
Subject: Re: [FFmpeg-user] Error decoding DTS-HD MA audio files

On Fri, Aug 26, 2022 at 4:12 PM  wrote:

> Hello
>
> Am trying to extract DTS-HD MA audio files from the following Blu-Ray 
> (which I physically purchased)
>
> KARL RICHTER - J.S. Bach: Cantatas - Pure Audio Recordings < 
> https://pureaudiorecordings.com/en/product/karl-richter-j-s-bach-canta
> tas/
> >
>
>
> I am getting the same result both with DVDAE and with MakeMKV / MMH 
> which I believe both use ffmpeg to extract DTS-HD MA. About 80% of the 
> tracks are correctly extracted to 24/192kHz files and around 20% of 
> the tracks are extracted to 24/48kHz files which play back at ¼ speed. 
> I then corrected the speed using
>
>
>
> ffmpeg -i 1.flac -af asetrate=192000 2.flac
>
>
>
> This now works on some of my playback equipment. However when I launch 
> playback of a converted file, it shows 0/192kHz for around 5 seconds 
> and only then locks to the 24/192kHz stream and plays back. This 
> happens with files that were correctly extracted to 192kHz and to 
> those that I had to speed up after the fact. So there seems to be 
> something fundamentally wrong with the ffmpeg extraction of this 
> BluRay
>
>
>
> I have prepared some sample files on one drive
>
> https://1drv.ms/u/s!AmpEbEYrlrk5lWGskTYvPp0iv4L3?e=U7kCRC
>
> Chapter 4 extracts correctly to 192kHz
>
> Chapter 5 extracts to 48kHz
>
> Both flac extract to not play back correctly on dCS Rossini
>
>
>
> Could you please take a look at this? Thanks a lot
>
>
File is password protected.


> Rudi
>
>
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email 
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with 
subject "unsubscribe".

___
ffmpeg-user 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] Error decoding DTS-HD MA audio files

2022-08-26 Thread Paul B Mahol
On Fri, Aug 26, 2022 at 4:12 PM  wrote:

> Hello
>
> Am trying to extract DTS-HD MA audio files from the following Blu-Ray
> (which
> I physically purchased)
>
> KARL RICHTER - J.S. Bach: Cantatas - Pure Audio Recordings
> <
> https://pureaudiorecordings.com/en/product/karl-richter-j-s-bach-cantatas/
> >
>
>
> I am getting the same result both with DVDAE and with MakeMKV / MMH which I
> believe both use ffmpeg to extract DTS-HD MA. About 80% of the tracks are
> correctly extracted to 24/192kHz files and around 20% of the tracks are
> extracted to 24/48kHz files which play back at ¼ speed. I then corrected
> the
> speed using
>
>
>
> ffmpeg -i 1.flac -af asetrate=192000 2.flac
>
>
>
> This now works on some of my playback equipment. However when I launch
> playback of a converted file, it shows 0/192kHz for around 5 seconds and
> only then locks to the 24/192kHz stream and plays back. This happens with
> files that were correctly extracted to 192kHz and to those that I had to
> speed up after the fact. So there seems to be something fundamentally wrong
> with the ffmpeg extraction of this BluRay
>
>
>
> I have prepared some sample files on one drive
>
> https://1drv.ms/u/s!AmpEbEYrlrk5lWGskTYvPp0iv4L3?e=U7kCRC
>
> Chapter 4 extracts correctly to 192kHz
>
> Chapter 5 extracts to 48kHz
>
> Both flac extract to not play back correctly on dCS Rossini
>
>
>
> Could you please take a look at this? Thanks a lot
>
>
File is password protected.


> Rudi
>
>
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-user] Error decoding DTS-HD MA audio files

2022-08-26 Thread rfischer56
Hello

Am trying to extract DTS-HD MA audio files from the following Blu-Ray (which
I physically purchased)

KARL RICHTER - J.S. Bach: Cantatas - Pure Audio Recordings



I am getting the same result both with DVDAE and with MakeMKV / MMH which I
believe both use ffmpeg to extract DTS-HD MA. About 80% of the tracks are
correctly extracted to 24/192kHz files and around 20% of the tracks are
extracted to 24/48kHz files which play back at ¼ speed. I then corrected the
speed using 

 

ffmpeg -i 1.flac -af asetrate=192000 2.flac

 

This now works on some of my playback equipment. However when I launch
playback of a converted file, it shows 0/192kHz for around 5 seconds and
only then locks to the 24/192kHz stream and plays back. This happens with
files that were correctly extracted to 192kHz and to those that I had to
speed up after the fact. So there seems to be something fundamentally wrong
with the ffmpeg extraction of this BluRay

 

I have prepared some sample files on one drive

https://1drv.ms/u/s!AmpEbEYrlrk5lWGskTYvPp0iv4L3?e=U7kCRC

Chapter 4 extracts correctly to 192kHz

Chapter 5 extracts to 48kHz

Both flac extract to not play back correctly on dCS Rossini

 

Could you please take a look at this? Thanks a lot

Rudi

 

___
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] Error: Impossible to convert between the formats...(Nvidia codecs)

2022-07-10 Thread Ben Parham
Hi Dennis,
Now I am streaming with two cameras but I have a small problem, the audio
stream is not synced with the video stream, and there is a small delay of
around 0.2 seconds.
How can I fix it? I would appreciate your help.
Regards,
Ben.

On Sat, Jul 9, 2022 at 9:52 PM Dennis Mungai  wrote:

> On Sat, 9 Jul 2022, 15:05 Ben Parham,  wrote:
>
> > Hi again,
> > Sure, I will do it based on that. Thank you for your help. If I face an
> > issue I'll contact you again.
> > I appreciate it.
> >
> > On Sat, Jul 9, 2022 at 7:55 PM Dennis Mungai  wrote:
> >
> > > On Sat, 9 Jul 2022 at 14:40, Ben Parham  wrote:
> > >
> > > > Thank you, Dennis. It works with 6 in-preset p4. Now I am running one
> > > > stream, but I will run 5 streams in RTX A2000. Does it support this
> > > number
> > > > in all streams?
> > > >
> > >
> > > Hello there,
> > > That GPU has no limitations on the simultaneous number of NVENC
> sessions
> > it
> > > can handle.
> > > However, throughput will be significantly impacted by its' low power
> > > profile limit (70W?) as you add more transcode jobs.
> > > This is an issue I've observed in production with a similar GPU
> profile,
> > > the Tesla T4.
> > > You may consider tuning these encoder presets to compensate for
> > throughput
> > > drops with multiple simultaneous transcode sessions, if real time
> > encoding
> > > is a priority to you.
> > > And on NVDEC: VRAM usage can also be quite steep with multiple
> sessions.
> > > Monitor that carefully via nvidia-smi as you add more transcode jobs.
> >
>
>
> Sure thing, no worries.
>
> >
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Error: Impossible to convert between the formats...(Nvidia codecs)

2022-07-09 Thread Dennis Mungai
On Sat, 9 Jul 2022, 15:05 Ben Parham,  wrote:

> Hi again,
> Sure, I will do it based on that. Thank you for your help. If I face an
> issue I'll contact you again.
> I appreciate it.
>
> On Sat, Jul 9, 2022 at 7:55 PM Dennis Mungai  wrote:
>
> > On Sat, 9 Jul 2022 at 14:40, Ben Parham  wrote:
> >
> > > Thank you, Dennis. It works with 6 in-preset p4. Now I am running one
> > > stream, but I will run 5 streams in RTX A2000. Does it support this
> > number
> > > in all streams?
> > >
> >
> > Hello there,
> > That GPU has no limitations on the simultaneous number of NVENC sessions
> it
> > can handle.
> > However, throughput will be significantly impacted by its' low power
> > profile limit (70W?) as you add more transcode jobs.
> > This is an issue I've observed in production with a similar GPU profile,
> > the Tesla T4.
> > You may consider tuning these encoder presets to compensate for
> throughput
> > drops with multiple simultaneous transcode sessions, if real time
> encoding
> > is a priority to you.
> > And on NVDEC: VRAM usage can also be quite steep with multiple sessions.
> > Monitor that carefully via nvidia-smi as you add more transcode jobs.
>


Sure thing, no worries.

>
___
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] Error: Impossible to convert between the formats...(Nvidia codecs)

2022-07-09 Thread Ben Parham
Hi again,
Sure, I will do it based on that. Thank you for your help. If I face an
issue I'll contact you again.
I appreciate it.

On Sat, Jul 9, 2022 at 7:55 PM Dennis Mungai  wrote:

> On Sat, 9 Jul 2022 at 14:40, Ben Parham  wrote:
>
> > Thank you, Dennis. It works with 6 in-preset p4. Now I am running one
> > stream, but I will run 5 streams in RTX A2000. Does it support this
> number
> > in all streams?
> >
>
> Hello there,
> That GPU has no limitations on the simultaneous number of NVENC sessions it
> can handle.
> However, throughput will be significantly impacted by its' low power
> profile limit (70W?) as you add more transcode jobs.
> This is an issue I've observed in production with a similar GPU profile,
> the Tesla T4.
> You may consider tuning these encoder presets to compensate for throughput
> drops with multiple simultaneous transcode sessions, if real time encoding
> is a priority to you.
> And on NVDEC: VRAM usage can also be quite steep with multiple sessions.
> Monitor that carefully via nvidia-smi as you add more transcode jobs.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Error: Impossible to convert between the formats...(Nvidia codecs)

2022-07-09 Thread Dennis Mungai
On Sat, 9 Jul 2022 at 14:40, Ben Parham  wrote:

> Thank you, Dennis. It works with 6 in-preset p4. Now I am running one
> stream, but I will run 5 streams in RTX A2000. Does it support this number
> in all streams?
>

Hello there,
That GPU has no limitations on the simultaneous number of NVENC sessions it
can handle.
However, throughput will be significantly impacted by its' low power
profile limit (70W?) as you add more transcode jobs.
This is an issue I've observed in production with a similar GPU profile,
the Tesla T4.
You may consider tuning these encoder presets to compensate for throughput
drops with multiple simultaneous transcode sessions, if real time encoding
is a priority to you.
And on NVDEC: VRAM usage can also be quite steep with multiple sessions.
Monitor that carefully via nvidia-smi as you add more transcode jobs.
___
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] Error: Impossible to convert between the formats...(Nvidia codecs)

2022-07-09 Thread Ben Parham
Thank you, Dennis. It works with 6 in-preset p4. Now I am running one
stream, but I will run 5 streams in RTX A2000. Does it support this number
in all streams?

On Sat, Jul 9, 2022 at 7:29 PM Dennis Mungai  wrote:

> On Sat, 9 Jul 2022 at 14:25, Ben Parham  wrote:
>
> > Thanks, Dennis. I added it in -preset p4 and the same error appeared:
> >
> > hevc @ 01ac32f034c0] hardware accelerator failed to decode picture
> > Error while decoding stream #0:0: Generic error in an external library
> > [hevc @ 01ac41cd1180] Could not find ref with POC 5
> > [hevc @ 01ac41d82640] No decoder surfaces left38 bitrate=N/A
> > speed=2.09x
> > [hevc @ 01ac41d82640]
> > decoder->cvdl->cuvidDecodePicture(decoder->decoder, >pic_params)
> > failed -> CUDA_ERROR_INVALID_VALUE: invalid argument
> >
> >
> >
> How many encoder sessions are you running simultaneously?
> Try bumping up the number of extra_hw_frames, say 6 to 10, and retest.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Error: Impossible to convert between the formats...(Nvidia codecs)

2022-07-09 Thread Dennis Mungai
On Sat, 9 Jul 2022 at 14:25, Ben Parham  wrote:

> Thanks, Dennis. I added it in -preset p4 and the same error appeared:
>
> hevc @ 01ac32f034c0] hardware accelerator failed to decode picture
> Error while decoding stream #0:0: Generic error in an external library
> [hevc @ 01ac41cd1180] Could not find ref with POC 5
> [hevc @ 01ac41d82640] No decoder surfaces left38 bitrate=N/A
> speed=2.09x
> [hevc @ 01ac41d82640]
> decoder->cvdl->cuvidDecodePicture(decoder->decoder, >pic_params)
> failed -> CUDA_ERROR_INVALID_VALUE: invalid argument
>
>
>
How many encoder sessions are you running simultaneously?
Try bumping up the number of extra_hw_frames, say 6 to 10, and retest.
___
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] Error: Impossible to convert between the formats...(Nvidia codecs)

2022-07-09 Thread Ben Parham
Thanks, Dennis. I added it in -preset p4 and the same error appeared:

hevc @ 01ac32f034c0] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Generic error in an external library
[hevc @ 01ac41cd1180] Could not find ref with POC 5
[hevc @ 01ac41d82640] No decoder surfaces left38 bitrate=N/A speed=2.09x
[hevc @ 01ac41d82640]
decoder->cvdl->cuvidDecodePicture(decoder->decoder, >pic_params)
failed -> CUDA_ERROR_INVALID_VALUE: invalid argument

On Sat, Jul 9, 2022 at 7:11 PM Dennis Mungai  wrote:

> On Sat, 9 Jul 2022 at 14:01, Ben Parham  wrote:
>
> > Thank you, Dennis. By removing _pix_fmt the issue was solved.
> > But when I change the preset from p2 to p3 or p4, I face this error:
> >
> > [hevc @ 01ebb41bdc40] hardware accelerator failed to decode picture
> > [hevc @ 01ebb41bb440] Could not find ref with POC 24
> > [rtsp @ 01ebb42500c0] Invalid DTS: 126000 PTS: 118800 in output
> stream
> > 0:0, replacing by guess
> > Error while decoding stream #0:0: Generic error in an external library
> > [hevc @ 01ebb41bbc40] No decoder surfaces left
> > [hevc @ 01ebb41bbc40]
> > decoder->cvdl->cuvidDecodePicture(decoder->decoder, >pic_params)
> > failed -> CUDA_ERROR_INVALID_VALUE: invalid argument
> >
> > Could you help me to fix this error please?
> >
>
> Sure, I can.
>
> By design, ffmpeg's NVDEC implementation is required to allocate surfaces
> to handle bitstreams with advanced features such as B-frames, interlaced
> content, etc.
> However, the pre-allocated surfaces may not be enough in some cases, and
> that can be fixed by setting the -extra_hw_frames {n} option, with n > 2.
> See this ticket for more details: https://trac.ffmpeg.org/ticket/7562
>
> Try this out:
>
> ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda
> -extra_hw_frames 3
> rtsp_transport tcp -i "rtsp://admin:Pass1@192.168.1.1" -flags
> +low_delay -vcodec hevc_nvenc -vf scale_cuda=1920:1080 -preset p2
> -pix_fmt yuv420p -tune hq -rc vbr -vb 700k -maxrate  800k -minrate
> 200k -bufsize 800k -g 25 -acodec copy -strict -2 -flags +global_header
> -f rtsp "rtsp://localhost:8000/stream"
>
> And report back.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Error: Impossible to convert between the formats...(Nvidia codecs)

2022-07-09 Thread Dennis Mungai
On Sat, 9 Jul 2022 at 14:01, Ben Parham  wrote:

> Thank you, Dennis. By removing _pix_fmt the issue was solved.
> But when I change the preset from p2 to p3 or p4, I face this error:
>
> [hevc @ 01ebb41bdc40] hardware accelerator failed to decode picture
> [hevc @ 01ebb41bb440] Could not find ref with POC 24
> [rtsp @ 01ebb42500c0] Invalid DTS: 126000 PTS: 118800 in output stream
> 0:0, replacing by guess
> Error while decoding stream #0:0: Generic error in an external library
> [hevc @ 01ebb41bbc40] No decoder surfaces left
> [hevc @ 01ebb41bbc40]
> decoder->cvdl->cuvidDecodePicture(decoder->decoder, >pic_params)
> failed -> CUDA_ERROR_INVALID_VALUE: invalid argument
>
> Could you help me to fix this error please?
>

Sure, I can.

By design, ffmpeg's NVDEC implementation is required to allocate surfaces
to handle bitstreams with advanced features such as B-frames, interlaced
content, etc.
However, the pre-allocated surfaces may not be enough in some cases, and
that can be fixed by setting the -extra_hw_frames {n} option, with n > 2.
See this ticket for more details: https://trac.ffmpeg.org/ticket/7562

Try this out:

ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda
-extra_hw_frames 3
rtsp_transport tcp -i "rtsp://admin:Pass1@192.168.1.1" -flags
+low_delay -vcodec hevc_nvenc -vf scale_cuda=1920:1080 -preset p2
-pix_fmt yuv420p -tune hq -rc vbr -vb 700k -maxrate  800k -minrate
200k -bufsize 800k -g 25 -acodec copy -strict -2 -flags +global_header
-f rtsp "rtsp://localhost:8000/stream"

And report back.
___
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] Error: Impossible to convert between the formats...(Nvidia codecs)

2022-07-09 Thread Ben Parham
Thank you DEF. The problem was solved by removing pix_fmt based on Dennis's
recommendation.

On Sat, Jul 9, 2022 at 5:45 PM DEF  wrote:

> On Sat, 9 Jul 2022 at 08:25, Ben Parham  wrote:
> >
> > Hello,
> >
> > I try to use Nvidia codecs in live transcoding. The input stream is from
> an
> > IP camera (Hikvision) and its color format is "*yuvj420p*". My command
> is:
> >
> > ffmpeg.exe -y -hwaccel cuda -hwaccel_output_format cuda -rtsp_transport
> tcp
> > -i "rtsp://admin:Pass1@192.168.1.1" -flags +low_delay -vcodec hevc_nvenc
> > -s 1920x1080 -preset p2 -pix_fmt yuv420p -tune hq -rc vbr -vb 700k
> -maxrate
> > 800k -minrate 200k -bufsize 800k -g 25 -acodec copy -strict -2 -flags
> > +global_header -f rtsp "rtsp://localhost:8000/stream"
>
> Check out documenation at
>
> https://docs.nvidia.com/video-technologies/video-codec-sdk/ffmpeg-with-nvidia-gpu/
>
> Use -vsync 0 option with decode to prevent FFmpeg from creating output
> YUV with duplicate and extra frames.
> This seems to be the commonest runtime issue.
>
> Try
> ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda
> rtsp_transport tcp -i "rtsp://admin:Pass1@192.168.1.1" -flags
> +low_delay -vcodec hevc_nvenc -vf scale_cuda=1920:1080 -preset p2
> -pix_fmt yuv420p -tune hq -rc vbr -vb 700k -maxrate  800k -minrate
> 200k -bufsize 800k -g 25 -acodec copy -strict -2 -flags +global_header
> -f rtsp "rtsp://localhost:8000/stream"
>
>
> Def
>
>
> >
> > but I am faced with this error:
> > Impossible to convert between the formats supported by the filter
> > 'Parsed_null_0' and the filter 'auto_scale_0'
> > Error reinitializing filters!
> > Failed to inject frame into filter network: Function not implemented
> > Error while processing the decoded data for stream #0:0
> > Conversion failed!
> >
> > if I remove  "-hwaccel_output_format cuda", the transcoding starts, but
> the
> > decoded stream is sent to system memory. I prefer to keep it in GPU
> > memory to decrease the latency.
> > What should I do to fix this?
> > I would appreciate any help.
> >
> > Regards,
> > Ben.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Error: Impossible to convert between the formats...(Nvidia codecs)

2022-07-09 Thread Ben Parham
Thank you, Dennis. By removing _pix_fmt the issue was solved.
But when I change the preset from p2 to p3 or p4, I face this error:

[hevc @ 01ebb41bdc40] hardware accelerator failed to decode picture
[hevc @ 01ebb41bb440] Could not find ref with POC 24
[rtsp @ 01ebb42500c0] Invalid DTS: 126000 PTS: 118800 in output stream
0:0, replacing by guess
Error while decoding stream #0:0: Generic error in an external library
[hevc @ 01ebb41bbc40] No decoder surfaces left
[hevc @ 01ebb41bbc40]
decoder->cvdl->cuvidDecodePicture(decoder->decoder, >pic_params)
failed -> CUDA_ERROR_INVALID_VALUE: invalid argument

Could you help me to fix this error please?


On Sat, Jul 9, 2022 at 6:11 PM Dennis Mungai  wrote:

> On Sat, 9 Jul 2022 at 12:45, DEF  wrote:
>
> > On Sat, 9 Jul 2022 at 08:25, Ben Parham  wrote:
> > >
> > > Hello,
> > >
> > > I try to use Nvidia codecs in live transcoding. The input stream is
> from
> > an
> > > IP camera (Hikvision) and its color format is "*yuvj420p*". My command
> > is:
> > >
> > > ffmpeg.exe -y -hwaccel cuda -hwaccel_output_format cuda -rtsp_transport
> > tcp
> > > -i "rtsp://admin:Pass1@192.168.1.1" -flags +low_delay -vcodec
> hevc_nvenc
> > > -s 1920x1080 -preset p2 -pix_fmt yuv420p -tune hq -rc vbr -vb 700k
> > -maxrate
> > > 800k -minrate 200k -bufsize 800k -g 25 -acodec copy -strict -2 -flags
> > > +global_header -f rtsp "rtsp://localhost:8000/stream"
> >
> > Check out documenation at
> >
> >
> https://docs.nvidia.com/video-technologies/video-codec-sdk/ffmpeg-with-nvidia-gpu/
> >
> > Use -vsync 0 option with decode to prevent FFmpeg from creating output
> > YUV with duplicate and extra frames.
> > This seems to be the commonest runtime issue.
> >
> > Try
> > ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda
> > rtsp_transport tcp -i "rtsp://admin:Pass1@192.168.1.1" -flags
> > +low_delay -vcodec hevc_nvenc -vf scale_cuda=1920:1080 -preset p2
> > -pix_fmt yuv420p -tune hq -rc vbr -vb 700k -maxrate  800k -minrate
> > 200k -bufsize 800k -g 25 -acodec copy -strict -2 -flags +global_header
> > -f rtsp "rtsp://localhost:8000/stream"
> >
> >
> > Def
> >
>
> The error may have to do with the specified pixel format filter in the
> command line, specifically  " -pix_fmt yuv420p".
> Remove that and retest with a command such as this one:
>
> ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda
> rtsp_transport tcp -i "rtsp://admin:Pass1@192.168.1.1" -flags
> +low_delay -vcodec hevc_nvenc -vf scale_cuda=1920:1080 -preset p2
> -tune hq -rc vbr -vb 700k -maxrate  800k -minrate
> 200k -bufsize 800k -g 25 -acodec copy -strict -2 -flags +global_header
> -f rtsp "rtsp://localhost:8000/stream"
>
> With CUDA/NVDEC hwaccel, the default pixel format will be CUDA. Inserting a
> request for another format via "-pix_fmt yuv420p" as is would fail, as it
> introduces the need for hwdownload and format conversion which isn't
> automatic.
> Please retest and report back.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Error: Impossible to convert between the formats...(Nvidia codecs)

2022-07-09 Thread Dennis Mungai
On Sat, 9 Jul 2022 at 12:45, DEF  wrote:

> On Sat, 9 Jul 2022 at 08:25, Ben Parham  wrote:
> >
> > Hello,
> >
> > I try to use Nvidia codecs in live transcoding. The input stream is from
> an
> > IP camera (Hikvision) and its color format is "*yuvj420p*". My command
> is:
> >
> > ffmpeg.exe -y -hwaccel cuda -hwaccel_output_format cuda -rtsp_transport
> tcp
> > -i "rtsp://admin:Pass1@192.168.1.1" -flags +low_delay -vcodec hevc_nvenc
> > -s 1920x1080 -preset p2 -pix_fmt yuv420p -tune hq -rc vbr -vb 700k
> -maxrate
> > 800k -minrate 200k -bufsize 800k -g 25 -acodec copy -strict -2 -flags
> > +global_header -f rtsp "rtsp://localhost:8000/stream"
>
> Check out documenation at
>
> https://docs.nvidia.com/video-technologies/video-codec-sdk/ffmpeg-with-nvidia-gpu/
>
> Use -vsync 0 option with decode to prevent FFmpeg from creating output
> YUV with duplicate and extra frames.
> This seems to be the commonest runtime issue.
>
> Try
> ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda
> rtsp_transport tcp -i "rtsp://admin:Pass1@192.168.1.1" -flags
> +low_delay -vcodec hevc_nvenc -vf scale_cuda=1920:1080 -preset p2
> -pix_fmt yuv420p -tune hq -rc vbr -vb 700k -maxrate  800k -minrate
> 200k -bufsize 800k -g 25 -acodec copy -strict -2 -flags +global_header
> -f rtsp "rtsp://localhost:8000/stream"
>
>
> Def
>

The error may have to do with the specified pixel format filter in the
command line, specifically  " -pix_fmt yuv420p".
Remove that and retest with a command such as this one:

ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda
rtsp_transport tcp -i "rtsp://admin:Pass1@192.168.1.1" -flags
+low_delay -vcodec hevc_nvenc -vf scale_cuda=1920:1080 -preset p2
-tune hq -rc vbr -vb 700k -maxrate  800k -minrate
200k -bufsize 800k -g 25 -acodec copy -strict -2 -flags +global_header
-f rtsp "rtsp://localhost:8000/stream"

With CUDA/NVDEC hwaccel, the default pixel format will be CUDA. Inserting a
request for another format via "-pix_fmt yuv420p" as is would fail, as it
introduces the need for hwdownload and format conversion which isn't
automatic.
Please retest and report back.
___
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] Error: Impossible to convert between the formats...(Nvidia codecs)

2022-07-09 Thread DEF
On Sat, 9 Jul 2022 at 08:25, Ben Parham  wrote:
>
> Hello,
>
> I try to use Nvidia codecs in live transcoding. The input stream is from an
> IP camera (Hikvision) and its color format is "*yuvj420p*". My command is:
>
> ffmpeg.exe -y -hwaccel cuda -hwaccel_output_format cuda -rtsp_transport tcp
> -i "rtsp://admin:Pass1@192.168.1.1" -flags +low_delay -vcodec hevc_nvenc
> -s 1920x1080 -preset p2 -pix_fmt yuv420p -tune hq -rc vbr -vb 700k -maxrate
> 800k -minrate 200k -bufsize 800k -g 25 -acodec copy -strict -2 -flags
> +global_header -f rtsp "rtsp://localhost:8000/stream"

Check out documenation at
https://docs.nvidia.com/video-technologies/video-codec-sdk/ffmpeg-with-nvidia-gpu/

Use -vsync 0 option with decode to prevent FFmpeg from creating output
YUV with duplicate and extra frames.
This seems to be the commonest runtime issue.

Try
ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda
rtsp_transport tcp -i "rtsp://admin:Pass1@192.168.1.1" -flags
+low_delay -vcodec hevc_nvenc -vf scale_cuda=1920:1080 -preset p2
-pix_fmt yuv420p -tune hq -rc vbr -vb 700k -maxrate  800k -minrate
200k -bufsize 800k -g 25 -acodec copy -strict -2 -flags +global_header
-f rtsp "rtsp://localhost:8000/stream"


Def


>
> but I am faced with this error:
> Impossible to convert between the formats supported by the filter
> 'Parsed_null_0' and the filter 'auto_scale_0'
> Error reinitializing filters!
> Failed to inject frame into filter network: Function not implemented
> Error while processing the decoded data for stream #0:0
> Conversion failed!
>
> if I remove  "-hwaccel_output_format cuda", the transcoding starts, but the
> decoded stream is sent to system memory. I prefer to keep it in GPU
> memory to decrease the latency.
> What should I do to fix this?
> I would appreciate any help.
>
> Regards,
> Ben.
___
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] Error: Impossible to convert between the formats...(Nvidia codecs)

2022-07-09 Thread Ben Parham
Thanks for the recommendation. I removed it, but the same error exists.
The input stream size is 1920x1080

Impossible to convert between the formats supported by the filter
'Parsed_null_0' and the filter 'auto_scale_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0
Conversion failed!

On Sat, Jul 9, 2022 at 3:30 PM Dennis Mungai  wrote:

> On Sat, 9 Jul 2022 at 10:25, Ben Parham  wrote:
>
> > Hello,
> >
> > I try to use Nvidia codecs in live transcoding. The input stream is from
> an
> > IP camera (Hikvision) and its color format is "*yuvj420p*". My command
> is:
> >
> > ffmpeg.exe -y -hwaccel cuda -hwaccel_output_format cuda -rtsp_transport
> tcp
> > -i "rtsp://admin:Pass1@192.168.1.1" -flags +low_delay -vcodec hevc_nvenc
> > -s 1920x1080 -preset p2 -pix_fmt yuv420p -tune hq -rc vbr -vb 700k
> -maxrate
> > 800k -minrate 200k -bufsize 800k -g 25 -acodec copy -strict -2 -flags
> > +global_header -f rtsp "rtsp://localhost:8000/stream"
> >
> >
> > but I am faced with this error:
> > Impossible to convert between the formats supported by the filter
> > 'Parsed_null_0' and the filter 'auto_scale_0'
> > Error reinitializing filters!
> > Failed to inject frame into filter network: Function not implemented
> > Error while processing the decoded data for stream #0:0
> > Conversion failed!
> >
> > if I remove  "-hwaccel_output_format cuda", the transcoding starts, but
> the
> > decoded stream is sent to system memory. I prefer to keep it in GPU
> > memory to decrease the latency.
> > What should I do to fix this?
> > I would appreciate any help.
> >
> > Regards,
> > Ben.
>
>
>
> Remove -s 1920x1080 and test
>
> >
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Error: Impossible to convert between the formats...(Nvidia codecs)

2022-07-09 Thread Dennis Mungai
On Sat, 9 Jul 2022 at 10:25, Ben Parham  wrote:

> Hello,
>
> I try to use Nvidia codecs in live transcoding. The input stream is from an
> IP camera (Hikvision) and its color format is "*yuvj420p*". My command is:
>
> ffmpeg.exe -y -hwaccel cuda -hwaccel_output_format cuda -rtsp_transport tcp
> -i "rtsp://admin:Pass1@192.168.1.1" -flags +low_delay -vcodec hevc_nvenc
> -s 1920x1080 -preset p2 -pix_fmt yuv420p -tune hq -rc vbr -vb 700k -maxrate
> 800k -minrate 200k -bufsize 800k -g 25 -acodec copy -strict -2 -flags
> +global_header -f rtsp "rtsp://localhost:8000/stream"
>
>
> but I am faced with this error:
> Impossible to convert between the formats supported by the filter
> 'Parsed_null_0' and the filter 'auto_scale_0'
> Error reinitializing filters!
> Failed to inject frame into filter network: Function not implemented
> Error while processing the decoded data for stream #0:0
> Conversion failed!
>
> if I remove  "-hwaccel_output_format cuda", the transcoding starts, but the
> decoded stream is sent to system memory. I prefer to keep it in GPU
> memory to decrease the latency.
> What should I do to fix this?
> I would appreciate any help.
>
> Regards,
> Ben.



Remove -s 1920x1080 and test

>
___
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] Error: Impossible to convert between the formats...(Nvidia codecs)

2022-07-09 Thread Ben Parham
Hello,

I try to use Nvidia codecs in live transcoding. The input stream is from an
IP camera (Hikvision) and its color format is "*yuvj420p*". My command is:

ffmpeg.exe -y -hwaccel cuda -hwaccel_output_format cuda -rtsp_transport tcp
-i "rtsp://admin:Pass1@192.168.1.1" -flags +low_delay -vcodec hevc_nvenc
-s 1920x1080 -preset p2 -pix_fmt yuv420p -tune hq -rc vbr -vb 700k -maxrate
800k -minrate 200k -bufsize 800k -g 25 -acodec copy -strict -2 -flags
+global_header -f rtsp "rtsp://localhost:8000/stream"


but I am faced with this error:
Impossible to convert between the formats supported by the filter
'Parsed_null_0' and the filter 'auto_scale_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0
Conversion failed!

if I remove  "-hwaccel_output_format cuda", the transcoding starts, but the
decoded stream is sent to system memory. I prefer to keep it in GPU
memory to decrease the latency.
What should I do to fix this?
I would appreciate any help.

Regards,
Ben.
___
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] Error initializing output stream

2022-06-15 Thread Douglas Rhiner
I have two Python scripts running FFMPEG commands:

   - hls_win.py
   - dash_win.py

They transcode mp4 equirectangular movies, i.e. 360video
One for HLS the other for DASH. I'm testing these by running them via
PyCharm on both Mac and Win.
On Mac OS X both of these work as expected when modified with correct
parameters.
On Windows the HLS script works as expected while the DASH errors.

This seems to be the relevant excerpt from the debug output:



*[dash @ 021fad07cb80] Opening
'init-stream/$RepresentationID/$./$ext/$' for writing[file @
021f83ff2f40] Setting default whitelist 'file,crypto,data'Could not
write header for output file #0 (incorrect codec parameters ?): No such
file or directoryError initializing output stream 0:8 --*

I've spent quite a bit of time searching, changing search-terms to no end
trying to figure this one out.
Changing paths to no end in the command, etc
I need a fresh set of eyes to look at this. Any input would be appreciated!
The Python script for both of the formats follows the ffmpeg debug output.


*FFMPEG command called by dash_win.py:*C:\MASM\local64\bin-video\ffmpeg
-loglevel debug -hwaccel cuda -hwaccel_output_format cuda -i
"X:\z_published\360video\336748.mp4" -y
-keyint_min 90 -g 90 -r 30 -sc_threshold 0
-c:v h264_nvenc
-c:a aac -b:a 128k -ac 1 -ar 44100
-map v:0 -vf:0 scale_npp=1920x960 -c:v h264_nvenc -b:v:0 2M -maxrate:0
2.14M -bufsize:0 3.5M
-map v:0 -vf:1 scale_npp=1440x720 -c:v h264_nvenc -b:v:1 145k -maxrate:1
155k -bufsize:1 220k
-map v:0 -vf:2 scale_npp=2880x1440 -c:v h264_nvenc -b:v:2 365k -maxrate:2
390k -bufsize:2 640k
-map v:0 -vf:3 scale_npp=3320x1660 -c:v h264_nvenc -b:v:3 730k -maxrate:3
781k -bufsize:3 1278k
-map v:0 -vf:4 scale_npp=3320x1660 -c:v h264_nvenc -b:v:4 1.1M -maxrate:4
1.17M -bufsize:4 2M
-map v:0 -vf:5 scale_npp=3840x1920 -c:v h264_nvenc -b:v:5 3M -maxrate:5
3.21M -bufsize:5 5.5M
-map v:0 -vf:6 scale_npp=3840x1920 -c:v h264_nvenc -b:v:6 4.5M -maxrate:6
4.8M -bufsize:6 8M
-map v:0 -vf:7 scale_npp=4096x2048 -c:v h264_nvenc -b:v:7 6M -maxrate:7
6.42M -bufsize:7 11M
-map v:0 -vf:8 scale_npp=4096x2048 -c:v h264_nvenc -b:v:8 7.8M -maxrate:8
8.3M -bufsize:8 14M
-map 0:a
-init_seg_name init-stream/$RepresentationID/$./$ext/$ -media_seg_name
chunk-stream/$RepresentationID/$-/$Number%05d/$./$ext/$
-use_template 1 -use_timeline 1 -f dash dash.mpd


*FFMPEG DEBUG OUTPUT:*ffmpeg version N-106895-gcd78d5bba9 Copyright (c)
2000-2022 the FFmpeg developers
  built with gcc 11.3.0 (Rev1, Built by MSYS2 project)
  configuration:  --pkg-config=pkgconf --cc='ccache gcc' --cxx='ccache g++'
--ld='ccache g++' --disable-autodetect --enable-cuda --enable-cuvid
--enable-nvenc --enable-ffnvcodec --enable-nvdec --enable-cuda-llvm
--enable-libx264 --enable-libx265 --disable-debug --enable-libfdk-aac
--enable-libnpp --enable-libopenh264 --enable-nonfree
--extra-cflags=-I/usr/local/cuda/include
--extra-ldflags=-L/usr/local/cuda/lib64 --enable-schannel --enable-gpl
--extra-cflags='-IC:/PROGRA~1/NVIDIA~2/CUDA/v11.6/include'
--extra-ldflags='-LC:/PROGRA~1/NVIDIA~2/CUDA/v11.6/lib/x64'
  libavutil  57. 24.101 / 57. 24.101
  libavcodec 59. 28.100 / 59. 28.100
  libavformat59. 23.100 / 59. 23.100
  libavdevice59.  6.100 / 59.  6.100
  libavfilter 8. 38.100 /  8. 38.100
  libswscale  6.  6.100 /  6.  6.100
  libswresample   4.  6.100 /  4.  6.100
  libpostproc56.  5.100 / 56.  5.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument 'debug'.
Reading option '-hwaccel' ... matched as option 'hwaccel' (use HW
accelerated decoding) with argument 'cuda'.
Reading option '-hwaccel_output_format' ... matched as option
'hwaccel_output_format' (select output format used with HW accelerated
decoding) with argument 'cuda'.
Reading option '-i' ... matched as input url with argument
'X:\z_published\360video\336748.mp4'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with
argument '1'.
Reading option '-keyint_min' ... matched as AVOption 'keyint_min' with
argument '90'.
Reading option '-g' ... matched as AVOption 'g' with argument '90'.
Reading option '-r' ... matched as option 'r' (set frame rate (Hz value,
fraction or abbreviation)) with argument '30'.
Reading option '-sc_threshold' ... matched as AVOption 'sc_threshold' with
argument '0'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument
'h264_nvenc'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument
'aac'.
Reading option '-b:a' ... matched as option 'b' (video bitrate (please use
-b:v)) with argument '128k'.
Reading option '-ac' ... matched as option 'ac' (set number of audio
channels) with argument '1'.
Reading option '-ar' ... matched as option 'ar' (set audio sampling rate
(in Hz)) with argument '44100'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument 'v:0'.
Reading option '-vf:0' ... matched as option 'vf' 

Re: [FFmpeg-user] ERROR: libvmaf >= 2.0.0 not found using pkg-config

2022-02-04 Thread 桃源老師
Hello,

> 2022/02/04 午後5:55、Gyan Doshi mailto:ffm...@gyani.pro>>のメール:
> 
> 
> 
> On 2022-02-04 01:20 pm, 桃源老師 wrote:

>> 
>> I attached config.log with this message.  Hope someone help me...
> 
> Make sure libvmaf.h is current and exists in only one path (no older copies 
> elsewhere).

Thank you Gyan -san, 

I found an old version of libvmaf.h on include.  Then I removed it but same 
error message occurred. But this time, the error is related with linker.  i.e. 
bunch of libvmaf.a(svm.cpp.o) error.
I confirmed it does not occurred in dynamic linking.  Finally, I get answer 
from Google. That is:

Add -lstdc++ to CFLAGS while compiling FFmpeg

https://github.com/Netflix/vmaf/issues/569 



// Miya

smime.p7s
Description: S/MIME cryptographic signature
___
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] ERROR: libvmaf >= 2.0.0 not found using pkg-config

2022-02-04 Thread Gyan Doshi



On 2022-02-04 01:20 pm, 桃源老師 wrote:



/var/folders/1d/qk_hczkn68xfv_7gdbkmhwx4gn/T//ffconf.DmkkrFIx/test.c:3:44: 
error: use of undeclared identifier 'vmaf_init'
long check_vmaf_init(void) { return (long) vmaf_init; }

It seems to me that vmaf_init() had existed before, so I'm not sure why
this would happen.

I'm afraid thet is it a bug of macOS...


I attached config.log with this message.  Hope someone help me...


Make sure libvmaf.h is current and exists in only one path (no older 
copies elsewhere).


Gyan
___
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] ERROR: libvmaf >= 2.0.0 not found using pkg-config

2022-02-03 Thread Paul B Mahol
On Thu, Feb 3, 2022 at 1:11 PM Reindl Harald  wrote:

>
>
> Am 03.02.22 um 13:07 schrieb 桃源老師
> > I experienced funny ffmpeg compille error "ERROR: libvmaf >= 2.0.0 not
> found using pkg-config".  The reason why I feel funny is that ffmpeg commit
> of "06a54a4ec73ea6eb8cec41b7af75367bafb075e0(Date: Sat Jan 22 10:32:34 2022
> +0100)" can configure and make correctly, but current git head can't
> configure.  I suppose something wrong was happened after 2022/01/22
>
> i wonder how that can be given that we are always told here that latest
> git has *always* less bugs than anything else :-)
>

You should be already banned from this list.


> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] ERROR: libvmaf >= 2.0.0 not found using pkg-config

2022-02-03 Thread 桃源老師
Hello,

> 2022/02/04 午前0:19、Moritz Barsnick のメール:
>
> On Thu, Feb 03, 2022 at 21:07:08 +0900, 桃源老師 wrote:
>> I experienced funny ffmpeg compille error "ERROR: libvmaf >= 2.0.0 not found 
>> using pkg-config".  The reason why I feel funny is that ffmpeg commit of 
>> "06a54a4ec73ea6eb8cec41b7af75367bafb075e0(Date: Sat Jan 22 10:32:34 2022 
>> +0100)" can configure and make correctly, but current git head can't 
>> configure.  I suppose something wrong was happened after 2022/01/22.
>>
>> I'm trying to build ffmpeg on macOS 12.2.
>
> So, what's your actual version of libvmaf? Because _after_ commit
> 06a54a4ec73ea6eb8cec41b7af75367bafb075e0, the requirement was increased
> to 2.0.0.

I installed:
roushinoMacBook-Pro-15:bin roushi$ ./vmaf --version
2.3.0

> If you're using git anyway, you could do a "git bisect".

I didn't know such a git option... Here is:

roushinoMacBook-Pro-15:ffmpeg roushi$ git bisect start 
3d29724c008d8f27fecf85757152789b074e8ef9 
06a54a4ec73ea6eb8cec41b7af75367bafb075e0
Already on 'master'
Your branch is up to date with 'origin/master'.
3d29724c008d8f27fecf85757152789b074e8ef9 is the first bad commit
commit 3d29724c008d8f27fecf85757152789b074e8ef9
Author: Kyle Swanson 
Date:   Fri Dec 24 12:43:50 2021 -0800

avfilter/vf_libvmaf: update filter for libvmaf v2.0.0

 configure|   4 +-
 doc/filters.texi |  82 +++---
 libavfilter/version.h|   2 +-
 libavfilter/vf_libvmaf.c | 682 +++
 4 files changed, 558 insertions(+), 212 deletions(-)

>
>> /var/folders/1d/qk_hczkn68xfv_7gdbkmhwx4gn/T//ffconf.DmkkrFIx/test.c:3:44:
>>  error: use of undeclared identifier 'vmaf_init'
>> long check_vmaf_init(void) { return (long) vmaf_init; }
>
> It seems to me that vmaf_init() had existed before, so I'm not sure why
> this would happen.

I'm afraid thet is it a bug of macOS...

// Miya

smime.p7s
Description: S/MIME cryptographic signature
___
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] ERROR: libvmaf >= 2.0.0 not found using pkg-config

2022-02-03 Thread Moritz Barsnick
On Thu, Feb 03, 2022 at 21:07:08 +0900, 桃源老師 wrote:
> I experienced funny ffmpeg compille error "ERROR: libvmaf >= 2.0.0 not found 
> using pkg-config".  The reason why I feel funny is that ffmpeg commit of 
> "06a54a4ec73ea6eb8cec41b7af75367bafb075e0(Date: Sat Jan 22 10:32:34 2022 
> +0100)" can configure and make correctly, but current git head can't 
> configure.  I suppose something wrong was happened after 2022/01/22.
>
> I'm trying to build ffmpeg on macOS 12.2.

So, what's your actual version of libvmaf? Because _after_ commit
06a54a4ec73ea6eb8cec41b7af75367bafb075e0, the requirement was increased
to 2.0.0.

If you're using git anyway, you could do a "git bisect".

> /var/folders/1d/qk_hczkn68xfv_7gdbkmhwx4gn/T//ffconf.DmkkrFIx/test.c:3:44:
>  error: use of undeclared identifier 'vmaf_init'
> long check_vmaf_init(void) { return (long) vmaf_init; }

It seems to me that vmaf_init() had existed before, so I'm not sure why
this would happen.

Cheers,
Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] ERROR: libvmaf >= 2.0.0 not found using pkg-config

2022-02-03 Thread 桃源老師
Hello,

> 2022/02/03 午後9:07、桃源老師 のメール:
>
> Hello,
>
> I experienced funny ffmpeg compille error "ERROR: libvmaf >= 2.0.0 not found 
> using pkg-config".  The reason why I feel funny is that ffmpeg commit of 
> "06a54a4ec73ea6eb8cec41b7af75367bafb075e0(Date: Sat Jan 22 10:32:34 2022 
> +0100)" can configure and make correctly, but current git head can't 
> configure.  I suppose something wrong was happened after 2022/01/22.
>
> I'm trying to build ffmpeg on macOS 12.2.
>
> The seems to error portion on config.log is:
>
> /var/folders/1d/qk_hczkn68xfv_7gdbkmhwx4gn/T//ffconf.DmkkrFIx/test.c:3:44:
>  error: use of undeclared identifier 'vmaf_init'
> long check_vmaf_init(void) { return (long) vmaf_init; }
>   ^
> 1 error generated.
> ERROR: libvmaf >= 2.0.0 not found using pkg-config
>
>
> Any help is appreciated...

I found that the fact was happened on:

commit: 3d29724c008d8f27fecf85757152789b074e8ef9
commit title: avfilter/vf_libvmaf: update filter for libvmaf v2.0.0
commit date: Mon, 24 Jan 2022 04:41:30 +0900 (11:41 -0800)

In that, configure of ffmpeg was changed as:

--- a/configure
+++ b/configure
@@ -3751,7 +3751,7 @@ vaguedenoiser_filter_deps="gpl"
 vflip_vulkan_filter_deps="vulkan spirv_compiler"
 vidstabdetect_filter_deps="libvidstab"
 vidstabtransform_filter_deps="libvidstab"
-libvmaf_filter_deps="libvmaf pthreads"
+libvmaf_filter_deps="libvmaf"
 zmq_filter_deps="libzmq"
 zoompan_filter_deps="swscale"
 zscale_filter_deps="libzimg const_nan"
@@ -6626,7 +6626,7 @@ enabled libtwolame&& require libtwolame twolame.h 
twolame_init -ltwolame
 enabled libuavs3d && require_pkg_config libuavs3d "uavs3d >= 1.1.41" 
uavs3d.h uavs3d_decode
 enabled libv4l2   && require_pkg_config libv4l2 libv4l2 libv4l2.h 
v4l2_ioctl
 enabled libvidstab&& require_pkg_config libvidstab "vidstab >= 0.98" 
vid.stab/libvidstab.h vsMotionDetectInit
-enabled libvmaf   && require_pkg_config libvmaf "libvmaf >= 1.5.2" 
libvmaf.h compute_vmaf
+enabled libvmaf   && require_pkg_config libvmaf "libvmaf >= 2.0.0" 
libvmaf.h vmaf_init
 enabled libvo_amrwbenc&& require libvo_amrwbenc vo-amrwbenc/enc_if.h 
E_IF_init -lvo-amrwbenc
 enabled libvorbis && require_pkg_config libvorbis vorbis 
vorbis/codec.h vorbis_info_init &&
  require_pkg_config libvorbisenc vorbisenc 
vorbis/vorbisenc.h vorbis_encode_init

Here,  I can find out "vmaf_init", might be cause of issue...


// Miya



smime.p7s
Description: S/MIME cryptographic signature
___
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] ERROR: libvmaf >= 2.0.0 not found using pkg-config

2022-02-03 Thread 桃源老師
Hello,


> 2022/02/03 午後9:11、Reindl Harald のメール:
>
> i wonder how that can be given that we are always told here that latest git 
> has *always* less bugs than anything else :-)

Yes, if it is really a bug, how can we do?

smime.p7s
Description: S/MIME cryptographic signature
___
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] ERROR: libvmaf >= 2.0.0 not found using pkg-config

2022-02-03 Thread Reindl Harald



Am 03.02.22 um 13:07 schrieb 桃源老師

I experienced funny ffmpeg compille error "ERROR: libvmaf >= 2.0.0 not found using 
pkg-config".  The reason why I feel funny is that ffmpeg commit of 
"06a54a4ec73ea6eb8cec41b7af75367bafb075e0(Date: Sat Jan 22 10:32:34 2022 +0100)" can 
configure and make correctly, but current git head can't configure.  I suppose something wrong was 
happened after 2022/01/22


i wonder how that can be given that we are always told here that latest 
git has *always* less bugs than anything else :-)

___
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] ERROR: libvmaf >= 2.0.0 not found using pkg-config

2022-02-03 Thread 桃源老師
Hello,

I experienced funny ffmpeg compille error "ERROR: libvmaf >= 2.0.0 not found 
using pkg-config".  The reason why I feel funny is that ffmpeg commit of 
"06a54a4ec73ea6eb8cec41b7af75367bafb075e0(Date: Sat Jan 22 10:32:34 2022 
+0100)" can configure and make correctly, but current git head can't configure. 
 I suppose something wrong was happened after 2022/01/22.

I'm trying to build ffmpeg on macOS 12.2.

The seems to error portion on config.log is:

/var/folders/1d/qk_hczkn68xfv_7gdbkmhwx4gn/T//ffconf.DmkkrFIx/test.c:3:44: 
error: use of undeclared identifier 'vmaf_init'
long check_vmaf_init(void) { return (long) vmaf_init; }
   ^
1 error generated.
ERROR: libvmaf >= 2.0.0 not found using pkg-config


Any help is appreciated...

smime.p7s
Description: S/MIME cryptographic signature
___
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] Error while hardcoding subtitles (Invalid object location)

2022-01-27 Thread Sergey_S
Yes, even if i remove -s the error persists

On Thu, 27 Jan 2022, 20:04 Bo Berglund,  wrote:

> On Wed, 26 Jan 2022 23:34:26 +0100, Carl Eugen Hoyos 
> wrote:
>
> >Does the error disappear if you don't use "-s" if you are using
> "filter_complex"
> >(as you have to)?
> >
> >> -f mpegts C:\Users\shuts\Desktop\8.ts
> >
> >"-f mpegts" looks strange in this command line (but that may only be me).
>
> Docs:
> https://ffmpeg.org/ffmpeg-all.html#toc-mpegts-1
>
>
>
> --
> Bo Berglund
> Developer in Sweden
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Error while hardcoding subtitles (Invalid object location)

2022-01-27 Thread Bo Berglund
On Wed, 26 Jan 2022 23:34:26 +0100, Carl Eugen Hoyos  wrote:

>Does the error disappear if you don't use "-s" if you are using 
>"filter_complex"
>(as you have to)?
>
>> -f mpegts C:\Users\shuts\Desktop\8.ts
>
>"-f mpegts" looks strange in this command line (but that may only be me).

Docs: 
https://ffmpeg.org/ffmpeg-all.html#toc-mpegts-1



-- 
Bo Berglund
Developer in Sweden

___
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] Error while hardcoding subtitles (Invalid object location)

2022-01-26 Thread Carl Eugen Hoyos
Am Mo., 24. Jan. 2022 um 19:46 Uhr schrieb Sergey_S :
>
> C:\Users\shuts\Downloads\ffmpeg-2022-01-19-git-dd17c86aa1-essentials_build\bin>ffmpeg
> -i C:\Users\shuts\Desktop\Ep1.ts -vcodec libx264 -s 720x576 -g 50
> -keyint_min 50 -sc_threshold 0 -vprofile main -level 4.1 -b:v 3000K
> -maxrate 3000K -bufsize 6000K -r 25.000 -acodec aac -ar 48000 -ac 2 -ab
> 128k -async 2 -filter_complex "[0:v][0:s:1]overlay[v]" -map "[v]" -map 0:a

Does the error disappear if you don't use "-s" if you are using "filter_complex"
(as you have to)?

> -f mpegts C:\Users\shuts\Desktop\8.ts

"-f mpegts" looks strange in this command line (but that may only be me).

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Error while hardcoding subtitles (Invalid object location)

2022-01-25 Thread Sergey_S
C:\Users\shuts\Downloads\ffmpeg-2022-01-19-git-dd17c86aa1-essentials_build\bin>ffmpeg
-i C:\Users\shuts\Desktop\Ep1.ts -vcodec libx264 -s 720x576 -g 50
-keyint_min 50 -sc_threshold 0 -vprofile main -level 4.1 -b:v 3000K
-maxrate 3000K -bufsize 6000K -r 25.000 -acodec aac -ar 48000 -ac 2 -ab
128k -async 2 -filter_complex "[0:v][0:s:1]overlay[v]" -map "[v]" -map 0:a
-f mpegts C:\Users\shuts\Desktop\8.ts
ffmpeg version 2022-01-19-git-dd17c86aa1-essentials_build-www.gyan.dev
Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 11.2.0 (Rev5, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static
--disable-w32threads --disable-autodetect --enable-fontconfig
--enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib
--enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq
--enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg
--enable-libvpx --enable-mediafoundation --enable-libass
--enable-libfreetype --enable-libfribidi --enable-libvidstab
--enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm
--enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc
--enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libgme
--enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame
--enable-libtheora --enable-libvo-amrwbenc --enable-libgsm
--enable-libopencore-amrnb --enable-libopus --enable-libspeex
--enable-libvorbis --enable-librubberband
  libavutil  57. 18.100 / 57. 18.100
  libavcodec 59. 20.100 / 59. 20.100
  libavformat59. 17.101 / 59. 17.101
  libavdevice59.  5.100 / 59.  5.100
  libavfilter 8. 26.100 /  8. 26.100
  libswscale  6.  5.100 /  6.  5.100
  libswresample   4.  4.100 /  4.  4.100
  libpostproc56.  4.100 / 56.  4.100
Input #0, mpegts, from 'C:\Users\shuts\Desktop\Ep1.ts':
  Duration: 00:03:23.17, start: 0.177656, bitrate: 52106 kb/s
  Program 1
  Stream #0:0[0x100]: Video: mpeg2video (4:2:2) ([2][0][0][0] / 0x0002),
yuv422p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 5 kb/s, 25 fps,
25 tbr, 90k tbn
Side data:
  cpb: bitrate max/min/avg: 5000/0/0 buffer size: 47185920
vbv_delay: N/A
  Stream #0:1[0x101](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
5.1(side), fltp, 448 kb/s
  Stream #0:2[0x106](ell): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
  Stream #0:3[0x102](ell): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream mapping:
  Stream #0:0 (mpeg2video) -> overlay (graph 0)
  Stream #0:3 (dvbsub) -> overlay (graph 0)
  overlay:default (graph 0) -> Stream #0:0 (libx264)
  Stream #0:1 -> #0:1 (ac3 (native) -> aac (native))
Press [q] to stop, [?] for help
[mpegts @ 01cafa6dd4c0] sub2video: using 1920x1080 canvas
[libx264 @ 01cafa6e6040] using SAR=64/45
[libx264 @ 01cafa6e6040] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 01cafa6e6040] profile Main, level 4.1, 4:2:0, 8-bit
-async is forwarded to lavfi similarly to -af
aresample=async=2:min_hard_comp=0.10:first_pts=0.
Output #0, mpegts, to 'C:\Users\shuts\Desktop\8.ts':
  Metadata:
encoder : Lavf59.17.101
  Stream #0:0: Video: h264, yuv420p(tv, progressive), 720x576 [SAR 64:45
DAR 16:9], q=2-31, 3000 kb/s, 25 fps, 90k tbn
Metadata:
  encoder : Lavc59.20.100 libx264
Side data:
  cpb: bitrate max/min/avg: 300/0/300 buffer size: 600
vbv_delay: N/A
  Stream #0:1(eng): Audio: aac (LC), 48000 Hz, stereo, fltp, 128 kb/s
Metadata:
  encoder : Lavc59.20.100 aac
[dvbsub @ 01cafab897c0] Invalid object location! 526-526 0-60
002744.5kbits/s speed=0.933x
[dvbsub @ 01cafab897c0] Invalid object location! 526-526 1-60 00
[dvbsub @ 01cafab897c0] Invalid object location! 280-280 0-76
003195.2kbits/s speed=0.914x
[dvbsub @ 01cafab897c0] Invalid object location! 280-280 1-76 00
[dvbsub @ 01cafab897c0] Invalid object location! 280-280 0-76
003185.5kbits/s speed=0.898x
[dvbsub @ 01cafab897c0] Invalid object location! 280-280 1-76 00
[dvbsub @ 01cafab897c0] Invalid object location! 963-963 0-76
003180.2kbits/s speed=0.891x
[dvbsub @ 01cafab897c0] Invalid object location! 963-963 1-76 00
[dvbsub @ 01cafab897c0] Invalid object location! 145-145 0-76
003166.4kbits/s speed=0.886x
[dvbsub @ 01cafab897c0] Invalid object location! 145-145 1-76 00
[dvbsub @ 01cafab897c0] Invalid object location! 952-952 0-161
00178.4kbits/s speed=0.882x
[dvbsub @ 01cafab897c0] Invalid object location! 952-952 1-161 00
[dvbsub @ 01cafab897c0] Invalid object location! 722-722 0-77
003179.5kbits/s speed=0.88x
[dvbsub @ 01cafab897c0] Invalid object location! 722-722 1-77 00
[dvbsub @ 01cafab897c0] Invalid object location! 375-375 0-75
003177.3kbits/s speed=0.88x
[dvbsub @ 01cafab897c0] Invalid object location! 375-375 1-75 00
[dvbsub @ 01cafab897c0] Invalid object location! 375-375 

Re: [FFmpeg-user] Error while hardcoding subtitles (Invalid object location)

2022-01-24 Thread Sergey_S
C:\Users\shuts\Downloads\ffmpeg-2022-01-19-git-dd17c86aa1-essentials_build\bin>ffmpeg
-i C:\Users\shuts\Desktop\Ep1.ts -vcodec libx264 -s 720x576 -g 50
-keyint_min 50 -sc_threshold 0 -vprofile main -level 4.1 -b:v 3000K
-maxrate 3000K -bufsize 6000K -r 25.000 -acodec aac -ar 48000 -ac 2 -ab
128k -async 2 -filter_complex "[0:v][0:s:1]overlay[v]" -map "[v]" -map 0:a
-f mpegts C:\Users\shuts\Desktop\8.ts
ffmpeg version 2022-01-19-git-dd17c86aa1-essentials_build-www.gyan.dev
Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 11.2.0 (Rev5, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static
--disable-w32threads --disable-autodetect --enable-fontconfig
--enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib
--enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq
--enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg
--enable-libvpx --enable-mediafoundation --enable-libass
--enable-libfreetype --enable-libfribidi --enable-libvidstab
--enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm
--enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc
--enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libgme
--enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame
--enable-libtheora --enable-libvo-amrwbenc --enable-libgsm
--enable-libopencore-amrnb --enable-libopus --enable-libspeex
--enable-libvorbis --enable-librubberband
  libavutil  57. 18.100 / 57. 18.100
  libavcodec 59. 20.100 / 59. 20.100
  libavformat59. 17.101 / 59. 17.101
  libavdevice59.  5.100 / 59.  5.100
  libavfilter 8. 26.100 /  8. 26.100
  libswscale  6.  5.100 /  6.  5.100
  libswresample   4.  4.100 /  4.  4.100
  libpostproc56.  4.100 / 56.  4.100
Input #0, mpegts, from 'C:\Users\shuts\Desktop\Ep1.ts':
  Duration: 00:03:23.17, start: 0.177656, bitrate: 52106 kb/s
  Program 1
  Stream #0:0[0x100]: Video: mpeg2video (4:2:2) ([2][0][0][0] / 0x0002),
yuv422p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 5 kb/s, 25 fps,
25 tbr, 90k tbn
Side data:
  cpb: bitrate max/min/avg: 5000/0/0 buffer size: 47185920
vbv_delay: N/A
  Stream #0:1[0x101](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
5.1(side), fltp, 448 kb/s
  Stream #0:2[0x106](ell): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
  Stream #0:3[0x102](ell): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream mapping:
  Stream #0:0 (mpeg2video) -> overlay (graph 0)
  Stream #0:3 (dvbsub) -> overlay (graph 0)
  overlay:default (graph 0) -> Stream #0:0 (libx264)
  Stream #0:1 -> #0:1 (ac3 (native) -> aac (native))
Press [q] to stop, [?] for help
[mpegts @ 01cafa6dd4c0] sub2video: using 1920x1080 canvas
[libx264 @ 01cafa6e6040] using SAR=64/45
[libx264 @ 01cafa6e6040] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 01cafa6e6040] profile Main, level 4.1, 4:2:0, 8-bit
-async is forwarded to lavfi similarly to -af
aresample=async=2:min_hard_comp=0.10:first_pts=0.
Output #0, mpegts, to 'C:\Users\shuts\Desktop\8.ts':
  Metadata:
encoder : Lavf59.17.101
  Stream #0:0: Video: h264, yuv420p(tv, progressive), 720x576 [SAR 64:45
DAR 16:9], q=2-31, 3000 kb/s, 25 fps, 90k tbn
Metadata:
  encoder : Lavc59.20.100 libx264
Side data:
  cpb: bitrate max/min/avg: 300/0/300 buffer size: 600
vbv_delay: N/A
  Stream #0:1(eng): Audio: aac (LC), 48000 Hz, stereo, fltp, 128 kb/s
Metadata:
  encoder : Lavc59.20.100 aac
[dvbsub @ 01cafab897c0] Invalid object location! 526-526 0-60
002744.5kbits/s speed=0.933x
[dvbsub @ 01cafab897c0] Invalid object location! 526-526 1-60 00
[dvbsub @ 01cafab897c0] Invalid object location! 280-280 0-76
003195.2kbits/s speed=0.914x
[dvbsub @ 01cafab897c0] Invalid object location! 280-280 1-76 00
[dvbsub @ 01cafab897c0] Invalid object location! 280-280 0-76
003185.5kbits/s speed=0.898x
[dvbsub @ 01cafab897c0] Invalid object location! 280-280 1-76 00
[dvbsub @ 01cafab897c0] Invalid object location! 963-963 0-76
003180.2kbits/s speed=0.891x
[dvbsub @ 01cafab897c0] Invalid object location! 963-963 1-76 00
[dvbsub @ 01cafab897c0] Invalid object location! 145-145 0-76
003166.4kbits/s speed=0.886x
[dvbsub @ 01cafab897c0] Invalid object location! 145-145 1-76 00
[dvbsub @ 01cafab897c0] Invalid object location! 952-952 0-161
00178.4kbits/s speed=0.882x
[dvbsub @ 01cafab897c0] Invalid object location! 952-952 1-161 00
[dvbsub @ 01cafab897c0] Invalid object location! 722-722 0-77
003179.5kbits/s speed=0.88x
[dvbsub @ 01cafab897c0] Invalid object location! 722-722 1-77 00
[dvbsub @ 01cafab897c0] Invalid object location! 375-375 0-75
003177.3kbits/s speed=0.88x
[dvbsub @ 01cafab897c0] Invalid object location! 375-375 1-75 00
[dvbsub @ 01cafab897c0] Invalid object location! 375-375 

Re: [FFmpeg-user] Error while hardcoding subtitles (Invalid object location)

2022-01-24 Thread Carl Zwanzig

On 1/24/2022 6:22 AM, Sergey_S wrote:

Please kindly advise/ Thanks.


Upgrade to a modern version of ffmpeg, try again, then post the 
complete/unedited output of the command.


z!
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-user] Error while hardcoding subtitles (Invalid object location)

2022-01-24 Thread Sergey_S
ffmpeg version 3.4.5
Iam trying to transcode an mpeg2 ts stream containing a separate stream of
dvb subtitles
While executing command: ffmpeg -i Ep1.ts -vcodec libx264 -s 720x576 -g 50
-keyint_min 50 -sc_threshold 0 -vprofile main -level 4.1 -b:v 3000K
-maxrate 3000K -bufsize 6000K -r 25.000 -acodec aac -ar 48000 -ac 2 -ab
128k -async 2 -filter_complex "[0:v][0:s:1]overlay[v]" -map "[v]" -map 0:a
-f mpegts 8.ts
I get an error [dvbsub @ 0x1606b00] Invalid object location! 952-952 0-161
00 and subs don't burn in.
Please kindly advise/ Thanks.
___
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] ERROR: zimg >= 2.7.0 not found using pkg-config

2022-01-14 Thread Matt C
Only real info I could find is
https://github.com/rdp/ffmpeg-windows-build-helpers/issues/291
[https://opengraph.githubassets.com/f9e2dd9c904f9070a3052cb8def7049c02742cbf4b69f7ec09810d0a83f3469d/rdp/ffmpeg-windows-build-helpers/issues/291]<https://github.com/rdp/ffmpeg-windows-build-helpers/issues/291>
[WORKAROUND] ERROR: zimg >= 2.7.0 not found using pkg-config · Issue #291 · 
rdp/ffmpeg-windows-build-helpers · 
GitHub<https://github.com/rdp/ffmpeg-windows-build-helpers/issues/291>
I tried to do a clean build today from newly cloned repo and ran across this 
issue with zimg. I found an earlier issue that mentioned zimg and a similar 
error, but that was in reference to v2.6.0 of zimg. It seems the dependency is 
now v...
github.com

I cannot find a zimg version 2.7.0 anywhere.  In the work around above is says 
to:



Temporary fix:

Change line 624 of cross_compile_ffmpeg.sh from

do_git_checkout https://github.com/sekrit-twc/zimg.git zimg_git 
c1689d4b9abbf4becadcbd4f436e2f3b2bf1c2f1

to

do_git_checkout https://github.com/sekrit-twc/zimg.git zimg_git 
8e87f5a4b88e16ccafb2e7ade8ef454aeac19094

and run cross_compile_ffmpeg.sh again,

This will update libzimg to this commit (and to V2.7.x)

But pretty sure the sekrit-twc/zimg git is for Windows, I am on Ubuntu 20.04..

In usr/local  I have:
bin  etc  games  include  lib  man  sbin  share  src  srs

In /usr/Bin:
ffmpegklvanc_eia708  klvanc_scte104 klvanc_util
ffprobe klvanc_genscte104  klvanc_smpte12_2  meson
klvanc_afd  klvanc_parse   klvanc_smpte2038

In /usr/Include: just libklvanc folder

In  /usr/local/lib: libklvanc.a  libklvanc.la  python2.7  python3.8

Not seeing a pkg-config file anywhere..




From: ffmpeg-user  on behalf of Adam Nielsen 
via ffmpeg-user 
Sent: Friday, January 14, 2022 9:09 AM
To: ffmpeg-user@ffmpeg.org 
Cc: Adam Nielsen 
Subject: Re: [FFmpeg-user] ERROR: zimg >= 2.7.0 not found using pkg-config

> Hi, when compiling, is there a good way to fix the
>
> ERROR: zimg >= 2.7.0 not found using pkg-config
>
> Was using this guide
>
> https://zimg.buaa.us/documents/install/

That tells you to configure things to install into /usr/local (which is
a good idea), but have you then configured pkg-config to look in
/usr/local/lib/pkgconfig as well?  Often it won't look in the
/usr/local prefix by default.

I can't remember how to configure it off the top of my head but the
instructions will only be a Google away.

Cheers,
Adam.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] ERROR: zimg >= 2.7.0 not found using pkg-config

2022-01-14 Thread Adam Nielsen via ffmpeg-user
> Hi, when compiling, is there a good way to fix the
> 
> ERROR: zimg >= 2.7.0 not found using pkg-config
> 
> Was using this guide
> 
> https://zimg.buaa.us/documents/install/

That tells you to configure things to install into /usr/local (which is
a good idea), but have you then configured pkg-config to look in
/usr/local/lib/pkgconfig as well?  Often it won't look in the
/usr/local prefix by default.

I can't remember how to configure it off the top of my head but the
instructions will only be a Google away.

Cheers,
Adam.
___
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] error: ‘Dav1dSettings’

2022-01-14 Thread Matt C
New to compiling, also getting this error:




libavcodec/libdav1d.c:148:7: error: ‘Dav1dSettings’ {aka ‘struct 
Dav1dSettings’} has no member named ‘n_tile_threads’; did you mean ‘n_threads’?
  148 | s.n_tile_threads = dav1d->tile_threads
  |   ^~
  |   n_threads
In file included from ./libavutil/avutil.h:296,
 from ./libavutil/avassert.h:31,
 from libavcodec/libdav1d.c:24:
libavcodec/libdav1d.c:150:52: error: ‘DAV1D_MAX_TILE_THREADS’ undeclared (first 
use in this function); did you mean ‘DAV1D_MAX_TILE_ROWS’?
  150 |  : FFMIN(floor(sqrt(threads)), 
DAV1D_MAX_TILE_THREADS);
  |
^~
./libavutil/common.h:105:28: note: in definition of macro ‘FFMIN’
  105 | #define FFMIN(a,b) ((a) > (b) ? (b) : (a))
  |^
libavcodec/libdav1d.c:150:52: note: each undeclared identifier is reported only 
once for each function it appears in
  150 |  : FFMIN(floor(sqrt(threads)), 
DAV1D_MAX_TILE_THREADS);
  |
^~
./libavutil/common.h:105:28: note: in definition of macro ‘FFMIN’
  105 | #define FFMIN(a,b) ((a) > (b) ? (b) : (a))
  |^
libavcodec/libdav1d.c:151:6: error: ‘Dav1dSettings’ {aka ‘struct 
Dav1dSettings’} has no member named ‘n_frame_threads’
  151 | s.n_frame_threads = dav1d->frame_threads
  |  ^
In file included from ./libavutil/avutil.h:296,
 from ./libavutil/avassert.h:31,
 from libavcodec/libdav1d.c:24:
libavcodec/libdav1d.c:153:48: error: ‘Dav1dSettings’ {aka ‘struct 
Dav1dSettings’} has no member named ‘n_tile_threads’; did you mean ‘n_threads’?
  153 |   : FFMIN(ceil(threads / s.n_tile_threads), 
DAV1D_MAX_FRAME_THREADS);
  |^~
./libavutil/common.h:105:22: note: in definition of macro ‘FFMIN’
  105 | #define FFMIN(a,b) ((a) > (b) ? (b) : (a))
  |  ^
libavcodec/libdav1d.c:153:65: error: ‘DAV1D_MAX_FRAME_THREADS’ undeclared 
(first use in this function); did you mean ‘DAV1D_MAX_THREADS’?
  153 |   : FFMIN(ceil(threads / s.n_tile_threads), 
DAV1D_MAX_FRAME_THREADS);
  | 
^~~
./libavutil/common.h:105:28: note: in definition of macro ‘FFMIN’
  105 | #define FFMIN(a,b) ((a) > (b) ? (b) : (a))
  |^
libavcodec/libdav1d.c:153:48: error: ‘Dav1dSettings’ {aka ‘struct 
Dav1dSettings’} has no member named ‘n_tile_threads’; did you mean ‘n_threads’?
  153 |   : FFMIN(ceil(threads / s.n_tile_threads), 
DAV1D_MAX_FRAME_THREADS);
  |^~
./libavutil/common.h:105:40: note: in definition of macro ‘FFMIN’
  105 | #define FFMIN(a,b) ((a) > (b) ? (b) : (a))
  |^
libavcodec/libdav1d.c:155:13: error: ‘Dav1dSettings’ {aka ‘struct 
Dav1dSettings’} has no member named ‘n_frame_threads’
  155 |s.n_frame_threads, s.n_tile_threads);
  | ^
libavcodec/libdav1d.c:155:33: error: ‘Dav1dSettings’ {aka ‘struct 
Dav1dSettings’} has no member named ‘n_tile_threads’; did you mean ‘n_threads’?
  155 |s.n_frame_threads, s.n_tile_threads);
  | ^~
  | n_threads
libavcodec/libdav1d.c: At top level:
libavcodec/libdav1d.c:462:94: error: ‘DAV1D_MAX_TILE_THREADS’ undeclared here 
(not in a function); did you mean ‘DAV1D_MAX_TILE_ROWS’?
  462 | { "tilethreads", "Tile threads", OFFSET(tile_threads), 
AV_OPT_TYPE_INT, { .i64 = 0 }, 0, DAV1D_MAX_TILE_THREADS, VD },
  | 
 ^~
  | 
 DAV1D_MAX_TILE_ROWS
libavcodec/libdav1d.c:463:97: error: ‘DAV1D_MAX_FRAME_THREADS’ undeclared here 
(not in a function); did you mean ‘DAV1D_MAX_THREADS’?
  463 | { "framethreads", "Frame threads", OFFSET(frame_threads), 
AV_OPT_TYPE_INT, { .i64 = 0 }, 0, DAV1D_MAX_FRAME_THREADS, VD },
  | 
^~~
  | 
DAV1D_MAX_THREADS
make: *** [ffbuild/common.mak:67: libavcodec/libdav1d.o] Error 1
make: *** Waiting for unfinished jobs



Used this to make lib:


cd ~/ffmpeg_sources && \
git -C dav1d pull 2> /dev/null || git clone --depth 1 
https://code.videolan.org/videolan/dav1d.git && \
mkdir -p dav1d/build && \
cd 

[FFmpeg-user] ERROR: zimg >= 2.7.0 not found using pkg-config

2022-01-13 Thread Matt C
Hi, when compiling, is there a good way to fix the

ERROR: zimg >= 2.7.0 not found using pkg-config

Was using this guide

https://zimg.buaa.us/documents/install/

With this Git

git clone https://github.com/buaazp/zimg -b master –depth=1

and ffmpeg 4.4

https://ffmpeg.org/releases/ffmpeg-4.4.tar.bz2

Thanks!


___
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] Error when ffmpeg captures camera video stream

2021-08-17 Thread Logan
*Problem description: *When I try to use ffmpeg's v4l2 in kali to capture
the video stream of the computer camera, ffmpeg will get stuck, and then
use the shortcut key ‘’ctrl + c’’ to terminate the program, an error will
be reported: “Finishing stream 0:0 without any data written to it.”.
Please help me to solve this problem, thank you very much!


*$ ffmpeg -f v4l2 -s 1920x1080 -i /dev/video0 output.avi*
ffmpeg version 4.3.2-0+deb11u2 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 10 (Debian 10.2.1-6)
  configuration: --prefix=/usr --extra-version=0+deb11u2
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl
--disable-stripping --enable-avresample --disable-filter=resample
--enable-gnutls --enable-ladspa --enable-libaom --enable-libass
--enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio
--enable-libcodec2 --enable-libdav1d --enable-libflite
--enable-libfontconfig --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame
--enable-libmysofa --enable-libopenjpeg --enable-libopenmpt
--enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg
--enable-librubberband --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh
--enable-libtheora --enable-libtwolame --enable-libvidstab
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
--enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq
--enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl
--enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libmfx
--enable-libdc1394 --enable-libdrm --enable-libiec61883
--enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  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
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc55.  7.100 / 55.  7.100
[video4linux2,v4l2 @ 0x55c9aac90300] The V4L2 driver changed the video from
1920x1080 to 1280x720
Input #0, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, bitrate: 147456 kb/s
Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1280x720,
147456 kb/s, 10 fps, 10 tbr, 1000k tbn, 1000k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg4 (native))
Press [q] to stop, [?] for help
*Finishing stream 0:0 without any data written to it.*
Output #0, avi, to 'output.avi':

  Metadata:
ISFT: Lavf58.45.100
Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 1280x720,
q=2-31, 200 kb/s, 10 fps, 10 tbn, 10 tbc
Metadata:
  encoder : Lavc58.91.100 mpeg4
Side data:
  cpb: bitrate max/min/avg: 0/0/20 buffer size: 0 vbv_delay: N/A
frame=0 fps=0.0 q=0.0 Lsize=   6kB time=00:00:00.00 bitrate=N/A
speed=   0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
*Output file is empty, nothing was encoded (check -ss / -t / -frames
parameters if used)*
Exiting normally, received signal 2.
___
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-user]ERROR: cuda requested, but not all dependencies are satisfied: ffnvcodec

2021-05-09 Thread cavelier
Le Sun, 9 May 2021 19:20:52 +0200,
cavelier  a écrit :

> Hi, 
> Problem in compilation with ffmpeg ver N-102461-g8649f5dca6 (git).
> ./configure fails with ERROR: cuda requested, not
> all dependencies are satisfied: ffnvcodec
> The command was:
> ./configure  --prefix=/usr/local --enable-linux-perf
> --enable-libmp3lame --enable-libxvid --enable-libvorbis --enable-gpl
> --enable-libtheora --enable-zlib --enable-libx264 --enable-nonfree
> --enable-version3 --enable-avfilter --enable-libspeex
> --enable-libopenjpeg --enable-libgsm --enable-postproc
> --enable-pthreads --enable-libopencore-amrnb
> --enable-libopencore-amrwb --enable-ffplay --enable-nonfree
> --enable-runtime-cpudetect --enable-bzlib --enable-libdc1394
> --enable-libvpx --enable-libx264 --enable-libx265 --enable-vdpau
> --enable-libass --enable-libfribidi --enable-libfreetype
> --enable-libfontconfig --enable-nvenc --enable-cuda --enable-cuvid
> --enable-gray --enable-libbluray --enable-libfdk-aac --enable-libvpx
> --enable-libkvazaar 
> 
> But: i have ffnvcodec
>  [root@tux nv-codec-headers-master]# make install
> sed 's#@@PREFIX@@#/usr/local#' ffnvcodec.pc.in > ffnvcodec.pc
> install -m 0755 -d '/usr/local/include/ffnvcodec'
> install -m 0644 include/ffnvcodec/*.h '/usr/local/include/ffnvcodec'
> install -m 0755 -d '/usr/local/lib/pkgconfig'
> install -m 0644 ffnvcodec.pc '/usr/local/lib/pkgconfig'
> Then
> [cavelier2@tux ffmpeg]$ ls /usr/local/include/ffnvcodec/
> dynlink_cuda.h  dynlink_cuviddec.h  dynlink_loader.h
> dynlink_nvcuvid.h nvEncodeAPI.h
> and 
> [cavelier2@tux ffmpeg]$ find /usr -name '*ffnvcodec*.*'
> /usr/local/lib/pkgconfig/ffnvcodec.pc
> 
> The problem stays the same after 
> ]$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/$PKG_CONFIG_PATH
> followed by ./configure/ of course.
> 
> No problem with ffmpeg version 4.2.3 
> 
Found the answer
Requested 'ffnvcodec >= 9.0.18.3' but version of ffnvcodec is 9.0.18.1
Sorry.

-- 
cordialement jean-jacques. 
Ce message a été écrit sur un système libre mageia
"Tant que l'homme sera mortel, il ne pourra pas être totalement
décontracté..." Woody Allen.
___
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-user]ERROR: cuda requested, but not all dependencies are satisfied: ffnvcodec

2021-05-09 Thread cavelier
Hi, 
Problem in compilation with ffmpeg ver N-102461-g8649f5dca6 (git).
./configure fails with ERROR: cuda requested, not
all dependencies are satisfied: ffnvcodec
The command was:
./configure  --prefix=/usr/local --enable-linux-perf
--enable-libmp3lame --enable-libxvid --enable-libvorbis --enable-gpl
--enable-libtheora --enable-zlib --enable-libx264 --enable-nonfree
--enable-version3 --enable-avfilter --enable-libspeex
--enable-libopenjpeg --enable-libgsm --enable-postproc
--enable-pthreads --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-ffplay --enable-nonfree --enable-runtime-cpudetect
--enable-bzlib --enable-libdc1394 --enable-libvpx --enable-libx264
--enable-libx265 --enable-vdpau --enable-libass --enable-libfribidi
--enable-libfreetype --enable-libfontconfig --enable-nvenc
--enable-cuda --enable-cuvid --enable-gray --enable-libbluray
--enable-libfdk-aac --enable-libvpx --enable-libkvazaar 

But: i have ffnvcodec
 [root@tux nv-codec-headers-master]# make install
sed 's#@@PREFIX@@#/usr/local#' ffnvcodec.pc.in > ffnvcodec.pc
install -m 0755 -d '/usr/local/include/ffnvcodec'
install -m 0644 include/ffnvcodec/*.h '/usr/local/include/ffnvcodec'
install -m 0755 -d '/usr/local/lib/pkgconfig'
install -m 0644 ffnvcodec.pc '/usr/local/lib/pkgconfig'
Then
[cavelier2@tux ffmpeg]$ ls /usr/local/include/ffnvcodec/
dynlink_cuda.h  dynlink_cuviddec.h  dynlink_loader.h  dynlink_nvcuvid.h
 nvEncodeAPI.h
and 
[cavelier2@tux ffmpeg]$ find /usr -name '*ffnvcodec*.*'
/usr/local/lib/pkgconfig/ffnvcodec.pc

The problem stays the same after 
]$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/$PKG_CONFIG_PATH
followed by ./configure/ of course.

No problem with ffmpeg version 4.2.3 

-- 
cordialement jean-jacques. 
Ce message a été écrit sur un système libre mageia
"Tant que l'homme sera mortel, il ne pourra pas être totalement
décontracté..." Woody Allen.
___
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] ERROR: libglslang not found

2021-05-08 Thread Dylan Fernando
On Tue, Apr 13, 2021 at 7:58 AM Carl Eugen Hoyos  wrote:

> Am Mo., 12. Apr. 2021 um 00:54 Uhr schrieb Dylan Fernando <
> dylanf...@gmail.com>:
>
> > Thanks, Now I am getting:
> >
> > /usr/bin/ld: cannot find -lMachineIndependent
> > /usr/bin/ld: cannot find -lGenericCodeGen
>
> It doesn't work here either, maybe you need a particular
> version of glslang.
>
> Hopefully somebody who knows what it is can help you.
>
> Carl Eugen
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Managed to get it compiling using  https://vulkan.lunarg.com/sdk/home

I did:

wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc |
sudo apt-key add -
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.2.176-focal.list
https://packages.lunarg.com/vulkan/1.2.176/lunarg-vulkan-1.2.176-focal.list
sudo apt update
sudo apt install vulkan-sdk

It doesn't work, however, It segfaults:

ffmpeg -v verbose -init_hw_device vulkan=gpu:0.0 -filter_hw_device gpu
-i atm.mp4 -filter_complex hwupload,avgblur_vulkan=10,hwdownload
atmvulkan.mp4
ffmpeg version N-102426-g553619eacb Copyright (c) 2000-2021 the FFmpeg
developers
  built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
  configuration: --enable-opencl --enable-vulkan --enable-libglslang
  libavutil  57.  0.100 / 57.  0.100
  libavcodec 59.  0.100 / 59.  0.100
  libavformat59.  0.101 / 59.  0.101
  libavdevice59.  0.100 / 59.  0.100
  libavfilter 8.  0.101 /  8.  0.101
  libswscale  6.  0.100 /  6.  0.100
  libswresample   4.  0.100 /  4.  0.100
INTEL-MESA: warning: Ivy Bridge Vulkan support is incomplete
[AVHWDeviceContext @ 0x55ac5bc3e7c0] GPU listing:
[AVHWDeviceContext @ 0x55ac5bc3e7c0] 0: GeForce RTX 2070 SUPER
(discrete) (0x1e84)
[AVHWDeviceContext @ 0x55ac5bc3e7c0] 1: Intel(R) HD Graphics 4000
(IVB GT2) (integrated) (0x162)
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using queue family 0 (total
queues: 16) for graphics
[AVHWDeviceContext @ 0x55ac5bc3e7c0] QF 0 flags: (graphics)
(compute) (transfers) (sparse)
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using queue family 2 (total
queues: 8) for compute
[AVHWDeviceContext @ 0x55ac5bc3e7c0] QF 2 flags: (compute)
(transfers) (sparse)
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using queue family 1 (total
queues: 2) for transfers
[AVHWDeviceContext @ 0x55ac5bc3e7c0] QF 1 flags: (transfers) (sparse)
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
"VK_KHR_external_memory_fd"
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
"VK_KHR_external_semaphore_fd"
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
"VK_EXT_external_memory_host"
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
"VK_KHR_push_descriptor"
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
"VK_EXT_host_query_reset"
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
VK_KHR_external_memory_fd
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
VK_KHR_external_semaphore_fd
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
VK_EXT_external_memory_host
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
VK_KHR_push_descriptor
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
VK_EXT_host_query_reset
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device: GeForce RTX 2070 SUPER
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Alignments:
[AVHWDeviceContext @ 0x55ac5bc3e7c0] optimalBufferCopyRowPitchAlignment: 1
[AVHWDeviceContext @ 0x55ac5bc3e7c0] minMemoryMapAlignment:  64
[AVHWDeviceContext @ 0x55ac5bc3e7c0]
minImportedHostPointerAlignment:4096
[h264 @ 0x55ac5c0621c0] Reinit context to 1024x576, pix_fmt: yuv420p
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'atm.mp4':
  Metadata:
major_brand : mp42
minor_version   : 0
compatible_brands: mp41isom
  Duration: 00:02:08.45, start: 0.00, bitrate: 1479 kb/s
  Stream #0:0(und): Video: h264 (Constrained Baseline), 1 reference
frame (avc1 / 0x31637661), yuv420p(left), 1024x576, 1386 kb/s, 25 fps,
25 tbr, 25k tbn (default)
Metadata:
  handler_name: VideoHandler
  vendor_id   : [0][0][0][0]
  encoder : AVC Coding
  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
stereo, fltp, 90 kb/s (default)
Metadata:
  handler_name: SoundHandler
  vendor_id   : [0][0][0][0]
File 'atmvulkan.mp4' already exists. Overwrite? [y/N] y
Stream mapping:
  Stream #0:0 (h264) -> hwupload (graph 0)
  hwdownload (graph 0) -> Stream #0:0 (mpeg4)
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[h264 @ 0x55ac5da9b040] Reinit context to 1024x576, pix_fmt: yuv420p
[graph_1_in_0_1 @ 0x55ac5ddd34c0] tb:1/48000 samplefmt:fltp
samplerate:48000 chlayout:0x3
[graph 0 input from stream 0:0 @ 0x55ac5de75500] w:1024 h:576

Re: [FFmpeg-user] ERROR: libbluray not found using pkg-config

2021-04-16 Thread Giovanni Musto
Solved by installing liblzma-dev.
___
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] ERROR: libglslang not found

2021-04-12 Thread Carl Eugen Hoyos
Am Mo., 12. Apr. 2021 um 00:54 Uhr schrieb Dylan Fernando :

> Thanks, Now I am getting:
>
> /usr/bin/ld: cannot find -lMachineIndependent
> /usr/bin/ld: cannot find -lGenericCodeGen

It doesn't work here either, maybe you need a particular
version of glslang.

Hopefully somebody who knows what it is can help you.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] ERROR: libglslang not found

2021-04-11 Thread Moritz Barsnick
On Thu, Apr 08, 2021 at 09:49:02 +1000, Dylan Fernando wrote:
> g++ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 
> -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -std=c11 
> -fomit-frame-pointer -fPIC -pthread -D__STDC_CONSTANT_MACROS -c -o 
> /tmp/ffconf.j3rfnDQR/test.o /tmp/ffconf.j3rfnDQR/test.cpp
> ./configure: 984: g++: not found
> ERROR: libglslang not found

libglslang support apparently requires a C++ compiler, which you don't
seem to have.

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] ERROR: libglslang not found

2021-04-07 Thread Carl Eugen Hoyos
Am Mi., 7. Apr. 2021 um 10:46 Uhr schrieb Dylan Fernando :

> Include the log file "ffbuild/config.log" produced by configure as this
> will help solve the problem.

Did you see this?

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] ERROR: libglslang not found

2021-04-07 Thread Dylan Fernando
When running ./configure --enable-opencl --enable-vulkan
--enable-libglslang on Ubuntu 20.04 I get:

ERROR: libglslang not found

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this
will help
solve the problem.

I have already installed glslang-dev and glslang-tools. Am I missing
something?

Regards,
Dylan
___
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] ERROR: libglslang not found

2021-04-07 Thread Dylan Fernando
When running ./configure --enable-opencl --enable-vulkan
--enable-libglslang on Ubuntu 20.04 I get:

ERROR: libglslang not found

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this
will help
solve the problem.

I have already installed glslang-dev and glslang-tools. Am I missing
something?

Regards,
Dylan
___
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] Error Message: sps_id 1 out of range

2021-04-03 Thread Simone Croci
On Sat, 3 Apr 2021 at 21:20, Carl Zwanzig  wrote:

> On 4/3/2021 1:18 PM, Simone Croci wrote:
> > This is the command:
>
> need the output (-always- include the output, in the email, not attached
> nor
> linked to another site).
>

I have run again the command after restarting the computer, and I haven't
seen any error message this time.

This is the error message I got the first time I run the command:

[h264 @ 0153dc5d4280] sps_id 1 out of range


Apparently, the problem has been solved by simply rebooting the PC. Btw, my
OS is Windows 10.

Simone


> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Error Message: sps_id 1 out of range

2021-04-03 Thread Carl Eugen Hoyos


> Am 02.04.2021 um 23:54 schrieb Simone Croci :
> 
> I am decoding an MVC H.264 video and I get a lot of error messages "sps_id
> 1 out of range". What is the problem?


> is it caused by the fact that ffmpeg
> does not support MVC H.264?

Yes.

As Carl wrote:
When asking questions on this mailing list, always provide the command line you 
tested together with the complete, uncut console output, do not use external 
resources if possible.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Error Message: sps_id 1 out of range

2021-04-03 Thread Carl Zwanzig

On 4/3/2021 1:18 PM, Simone Croci wrote:

This is the command:


need the output (-always- include the output, in the email, not attached nor 
linked to another site).


z!
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Error Message: sps_id 1 out of range

2021-04-03 Thread Simone Croci
This is the command:

ffmpeg -i video.mkv -c:v copy -bsf:v h264_mp4toannexb -an -f h264
stream.h264


I am using ffmpeg that was built from the master branch on the 28th of
March 2021. I downloaded it from https://www.gyan.dev/ffmpeg/builds/.

Simone

On Sat, 3 Apr 2021 at 21:09, Carl Zwanzig  wrote:

> On 4/2/2021 2:55 PM, Simone Croci wrote:
> > I am decoding an MVC H.264 video and I get a lot of error messages
> "sps_id
> > 1 out of range". What is the problem? is it caused by the fact that
> ffmpeg
> > does not support MVC H.264?
>
> Please include the complete command and its complete output. If you aren't
> using a very recent version (the "git head" if possible), try again with
> that.
>
> z!
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Error Message: sps_id 1 out of range

2021-04-03 Thread Carl Zwanzig

On 4/2/2021 2:55 PM, Simone Croci wrote:

I am decoding an MVC H.264 video and I get a lot of error messages "sps_id
1 out of range". What is the problem? is it caused by the fact that ffmpeg
does not support MVC H.264?


Please include the complete command and its complete output. If you aren't 
using a very recent version (the "git head" if possible), try again with that.


z!
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] Error Message: sps_id 1 out of range

2021-04-02 Thread Simone Croci
Hi All,

I am decoding an MVC H.264 video and I get a lot of error messages "sps_id
1 out of range". What is the problem? is it caused by the fact that ffmpeg
does not support MVC H.264?

Regards,
Simon
___
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] Error decoding RTSP stream using h264_cuvid vcodec

2021-03-10 Thread Nishant Trivedi via ffmpeg-user
Apologies, I didn't mean to say that the encoder existed. I was just
pointing out that ffmpeg didn't complain about the wrong argument. And when
I say ffmpeg, I actually mean ffmpeg-python which is what we use to
interact with ffmpeg. I also realize that ffmpeg-python may not fall in
your purview at all. Just making an observation.

Best,
- Nishant.


On Wed, Mar 10, 2021 at 4:34 PM Moritz Barsnick  wrote:

> On Wed, Mar 10, 2021 at 15:54:28 -0500, FFmpeg user discussions wrote:
> > Oh duh! Thanks @Moritz!
>
> You're welcome.
>
> > As a side note, I just wanted to mention that we mostly deal with RTMP
> > streams and we have been starting the ffmpeg process the way I described
> > for over a year and half now and it never complained.
>
> Hmm, I don't think an "h264_cuvid" encoder has ever existed - only a
> decoder. (There was some cleanup recently in those aliases, but I
> cannot identify such an encoder having being removed.) Perhaps you are
> confusing the two?
>
> > would be interesting to note the behaviour here. Thanks again!
>
> No problem, as long as your encoding works again now.
>
> Cheers,
> Moritz
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Error decoding RTSP stream using h264_cuvid vcodec

2021-03-10 Thread Moritz Barsnick
On Wed, Mar 10, 2021 at 15:54:28 -0500, FFmpeg user discussions wrote:
> Oh duh! Thanks @Moritz!

You're welcome.

> As a side note, I just wanted to mention that we mostly deal with RTMP
> streams and we have been starting the ffmpeg process the way I described
> for over a year and half now and it never complained.

Hmm, I don't think an "h264_cuvid" encoder has ever existed - only a
decoder. (There was some cleanup recently in those aliases, but I
cannot identify such an encoder having being removed.) Perhaps you are
confusing the two?

> would be interesting to note the behaviour here. Thanks again!

No problem, as long as your encoding works again now.

Cheers,
Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Error decoding RTSP stream using h264_cuvid vcodec

2021-03-10 Thread Nishant Trivedi via ffmpeg-user
Oh duh! Thanks @Moritz!

As a side note, I just wanted to mention that we mostly deal with RTMP
streams and we have been starting the ffmpeg process the way I described
for over a year and half now and it never complained. It's just now that we
started looking into supporting RTSP, ffmpeg complained about the option.
Obviously it's a bug on our end and we will fix the arg but I thought it
would be interesting to note the behaviour here. Thanks again!

Best,
- Nishant.


On Wed, Mar 10, 2021 at 4:34 AM Moritz Barsnick  wrote:

> On Tue, Mar 09, 2021 at 16:46:41 -0500, Nishant Trivedi via ffmpeg-user
> wrote:
> > I am trying to decode a RTSP video stream using ffmpeg while using
> > h264_cuvid vcodec to take advantage of hardware acceleration on a machine
> > with NVIDIA GPU. I am seeing an error with the message Unknown encoder
> > 'h264_cuvid'.
>
> That's because no such encoder exists.
>
> Have you tried "h264_nvenc"?
>
> > ffmpeg version n4.1.6-5-g7f0db52c53 Copyright (c) 2000-2020 the FFmpeg
> developers
>
> On this list, it's also always a good idea to use a recent version of
> ffmpeg - preferred from latest git. That way, you can rule reporting
> bugs or missing features which are no longer valid.
>
> Cheers,
> Moritz
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Error decoding RTSP stream using h264_cuvid vcodec

2021-03-10 Thread Moritz Barsnick
On Tue, Mar 09, 2021 at 16:46:41 -0500, Nishant Trivedi via ffmpeg-user wrote:
> I am trying to decode a RTSP video stream using ffmpeg while using
> h264_cuvid vcodec to take advantage of hardware acceleration on a machine
> with NVIDIA GPU. I am seeing an error with the message Unknown encoder
> 'h264_cuvid'.

That's because no such encoder exists.

Have you tried "h264_nvenc"?

> ffmpeg version n4.1.6-5-g7f0db52c53 Copyright (c) 2000-2020 the FFmpeg 
> developers

On this list, it's also always a good idea to use a recent version of
ffmpeg - preferred from latest git. That way, you can rule reporting
bugs or missing features which are no longer valid.

Cheers,
Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] Error decoding RTSP stream using h264_cuvid vcodec

2021-03-09 Thread Nishant Trivedi via ffmpeg-user
Hello,

I am trying to decode a RTSP video stream using ffmpeg while using
h264_cuvid vcodec to take advantage of hardware acceleration on a machine
with NVIDIA GPU. I am seeing an error with the message Unknown encoder
'h264_cuvid'. I've made sure that I compiled ffmpeg with cuvid enabled.
Here is the output of "ffmpeg -version" command:
$ ffmpeg -version
ffmpeg version n4.1.6-5-g7f0db52c53 Copyright (c) 2000-2020 the FFmpeg
developers
built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
configuration: --enable-cuda-sdk --enable-cuvid --enable-nvenc
--enable-nonfree --enable-libnpp --enable-protocol=file
--enable-protocol=rtsp --enable-protocol=hls --enable-openssl
--extra-cflags=-I/usr/local/cuda/include
--extra-ldflags=-L/usr/local/cuda/lib64
libavutil  56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat58. 20.100 / 58. 20.100
libavdevice58.  5.100 / 58.  5.100
libavfilter 7. 40.101 /  7. 40.101
libswscale  5.  3.100 /  5.  3.100
libswresample   3.  3.100 /  3.  3.100

To rule out problems with the stream, I checked it using ffplay and I'm
able to visualize it. But when I run the following command
ffmpeg -rtsp_transport tcp -hide_banner -loglevel debug -stimeout 100
-rtsp_flags prefer_tcp -allowed_media_types video -i
rtsp:///onvif/profile1/media.smp -vsync 0 -err_detect explode
-surfaces 8 -vcodec h264_cuvid output.avi
I consistently get the encoder error. Removing the vcodec argument works
but I lose out on hardware acceleration. I'm attaching the full debug
output of the ffmpeg command herewith.

I dug around for possible resolutions but didn't find anything meaningful.
Appreciate any help on this.

Thanks,
- Nishant.
Splitting the commandline.
Reading option '-rtsp_transport' ... matched as AVOption 'rtsp_transport' with 
argument 'tcp'.
Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show 
program banner) with argument '1'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) 
with argument 'debug'.
Reading option '-stimeout' ... matched as AVOption 'stimeout' with argument 
'100'.
Reading option '-rtsp_flags' ... matched as AVOption 'rtsp_flags' with argument 
'prefer_tcp'.
Reading option '-allowed_media_types' ... matched as AVOption 
'allowed_media_types' with argument 'video'.
Reading option '-i' ... matched as input url with argument 
'rtsp:///onvif/profile1/media.smp'.
Reading option '-vsync' ... matched as option 'vsync' (video sync method) with 
argument '0'.
Reading option '-err_detect' ...Routing option err_detect to both codec and 
muxer layer
 matched as AVOption 'err_detect' with argument 'explode'.
Reading option '-surfaces' ... matched as AVOption 'surfaces' with argument '8'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec 
('copy' to copy stream)) with argument 'h264_cuvid'.
Reading option 'output.avi' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option hide_banner (do not show program banner) with argument 1.
Applying option loglevel (set logging level) with argument debug.
Applying option vsync (video sync method) with argument 0.
Successfully parsed a group of options.
Parsing a group of options: input url rtsp:///onvif/profile1/media.smp.
Successfully parsed a group of options.
Opening an input file: rtsp:///onvif/profile1/media.smp.
[tcp @ 0x55951d8790c0] No default whitelist set
[tcp @ 0x55951d8790c0] Original list of addresses:
[tcp @ 0x55951d8790c0] Address  port 
[tcp @ 0x55951d8790c0] Interleaved list of addresses:
[tcp @ 0x55951d8790c0] Address  port 
[tcp @ 0x55951d8790c0] Starting connection attempt to  port 
[tcp @ 0x55951d8790c0] Successfully connected to  port 
[rtsp @ 0x55951d876a80] SDP:
v=0
o=- 0 0 IN IP4 
s=Media Presentation
i=samsung
c=IN IP4 0.0.0.0
b=AS:6216
t=0 0
a=control:rtsp:///onvif/profile1/media.smp
a=range:npt=now-
m=video 45032 RTP/AVP 26
b=AS:6144
a=rtpmap:26 JPEG/9
a=control:rtsp:///onvif/profile1/media.smp/trackID=v
a=cliprect:0,0,1080,1920
a=framesize:26 1920-1080
a=framerate:2.0
m=application 45036 RTP/AVP 107
b=AS:8
a=rtpmap:107 vnd.onvif.metadata/9
a=control:rtsp:///onvif/profile1/media.smp/trackID=m
a=recvonly

[rtsp @ 0x55951d876a80] video codec set to: mjpeg
[rtsp @ 0x55951d876a80] setting jitter buffer size to 0
[rtsp @ 0x55951d876a80] hello state=0
[mjpeg @ 0x55951d87c000] marker=d8 avail_size_in_buf=137286
[mjpeg @ 0x55951d87c000] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x55951d87c000] marker=e0 avail_size_in_buf=137284
[mjpeg @ 0x55951d87c000] marker parser used 16 bytes (128 bits)
[mjpeg @ 0x55951d87c000] marker=db avail_size_in_buf=137266
[mjpeg @ 0x55951d87c000] index=0
[mjpeg @ 0x55951d87c000] qscale[0]: 4
[mjpeg @ 0x55951d87c000] index=1
[mjpeg @ 0x55951d87c000] qscale[1]: 9
[mjpeg @ 0x55951d87c000] marker parser used 132 bytes (1056 bits)
[mjpeg @ 0x55951d87c000] marker=c4 avail_size_in_buf=137132
[mjpeg @ 0x55951d87c000] marker 

Re: [FFmpeg-user] Error Capturing MJPEG Stream from Linux version

2021-02-05 Thread Carl Zwanzig

On 2/5/2021 12:34 PM, Alejandro Escudero wrote:

Which repository do you recommend me to download FFMpeg for CentOS Linux 
7.7.1908 (Core)


see https://ffmpeg.org/download.html

Also https://ffmpeg.org/mailing-list-faq.html-
Please do not "top post" on this mailing list.

z!
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Error Capturing MJPEG Stream from Linux version

2021-02-05 Thread Alejandro Escudero
Which repository do you recommend me to download FFMpeg for CentOS Linux 
7.7.1908 (Core)

Thanks again!

Alejandro

Obtener Outlook para iOS<https://aka.ms/o0ukef>

De: ffmpeg-user  en nombre de Carl Eugen Hoyos 

Enviado: Friday, February 5, 2021 2:18:33 PM
Para: FFmpeg user questions 
Asunto: Re: [FFmpeg-user] Error Capturing MJPEG Stream from Linux version

Am Fr., 5. Feb. 2021 um 18:02 Uhr schrieb Alejandro Escudero
:

> ffmpeg -t 58 -i 
> "http://user:pass@cameraip:8080/video.cgi;<%22http:/user:pass@cameraip:8080/video.cgi%22>
>  -f segment -segment_time 16 -strftime 1 
> '/var/www/myrecordings/%Y-%m-%d_%H:%M:%S.mp4'

You could try to save the stream with wget or curl.

> Response (Linux):
>
> ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers

Very old and unsupported.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fffmpeg.org%2Fmailman%2Flistinfo%2Fffmpeg-userdata=04%7C01%7C%7C4ea3cabfb032480e9eff08d8ca0e6fb6%7C84df9e7fe9f640afb435%7C1%7C0%7C637481510644588119%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=aADE9YkYKp7PoE%2BuIXH8hTsZ%2Fxnd0eRNQvf3DeFA1WU%3Dreserved=0

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Error Capturing MJPEG Stream from Linux version

2021-02-05 Thread Carl Eugen Hoyos
Am Fr., 5. Feb. 2021 um 18:02 Uhr schrieb Alejandro Escudero
:

> ffmpeg -t 58 -i 
> "http://user:pass@cameraip:8080/video.cgi;<%22http:/user:pass@cameraip:8080/video.cgi%22>
>  -f segment -segment_time 16 -strftime 1 
> '/var/www/myrecordings/%Y-%m-%d_%H:%M:%S.mp4'

You could try to save the stream with wget or curl.

> Response (Linux):
>
> ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers

Very old and unsupported.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Error Capturing MJPEG Stream from Linux version

2021-02-05 Thread Carl Zwanzig

On 2/5/2021 9:02 AM, Alejandro Escudero wrote:

Note: On windows 10 FFmpeg version I don´t have this problem (ffmpeg version 
N-94423-ga0c1970781 Copyright (c) 2000-2019 the FFmpeg developers  built with 
gcc 9.1.1 (GCC) 20190716)


Much newer than...


Response (Linux):
ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers


That's positively _ancient_. Start by getting an up-to-date version of 
ffmpeg for linux.


z!
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] Error Capturing MJPEG Stream from Linux version

2021-02-05 Thread Alejandro Escudero

Hi,



Please your help,  I am on Linux (Centos 7) trying to capture a MJPEG stream 
from an IP Camera and save it as MP4, but I am getting this error:


[ingenient @ 0x2637be0] Could not find codec parameters for stream 0 (Video: 
mjpeg, none(bt470bg/unknown/unknown)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options


Note: On windows 10 FFmpeg version I don´t have this problem (ffmpeg version 
N-94423-ga0c1970781 Copyright (c) 2000-2019 the FFmpeg developers  built with 
gcc 9.1.1 (GCC) 20190716)




Command (Linux):


ffmpeg -t 58 -i 
"http://user:pass@cameraip:8080/video.cgi;<%22http:/user:pass@cameraip:8080/video.cgi%22>
 -f segment -segment_time 16 -strftime 1 
'/var/www/myrecordings/%Y-%m-%d_%H:%M:%S.mp4'


Response (Linux):


ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-36)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg 
--incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man 
--arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 
-grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro ' 
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc 
--enable-version3 --enable-bzlib --disable-crystalhd --enable-gnutls 
--enable-ladspa --enable-libass --enable-libcdio --enable-libdc1394 
--enable-libfdk-aac --enable-nonfree --disable-indev=jack --enable-libfreetype 
--enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg 
--enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr 
--enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 
--enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab 
--enable-avfilter --enable-avresample --enable-postproc --enable-pthreads 
--disable-static --enable-shared --enable-gpl --disable-debug 
--disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
  libavutil  54. 31.100 / 54. 31.100
  libavcodec 56. 60.100 / 56. 60.100
  libavformat56. 40.101 / 56. 40.101
  libavdevice56.  4.100 / 56.  4.100
  libavfilter 5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale  3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc53.  3.100 / 53.  3.100
[ingenient @ 0x2637be0] Could not find codec parameters for stream 0 (Video: 
mjpeg, none(bt470bg/unknown/unknown)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
"http://user:pass@cameraip:8080/video.cgi;<%22http:/user:pass@cameraip:8080/video.cgi%22>:
 could not find codec parameters
Input #0, ingenient, from 
"http://user:pass@cameraip:8080/video.cgi;<%22http:/user:pass@cameraip:8080/video.cgi%22>:
  Duration: N/A, bitrate: N/A
Stream #0:0: Video: mjpeg, none(bt470bg/unknown/unknown), 25 tbr, 1200k 
tbn, 25 tbc
Output #0, segment, to '/var/www/myrecordings/%Y-%m-%d_%H:%M:%S.mp4':
Output file #0 does not contain any stream



Thanks for your help

Regards


Alejandro


[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]
  Libre de virus. 
www.avast.com
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Error while playing record audio from webcam

2021-01-19 Thread Carl Zwanzig

On 1/19/2021 4:18 AM, Vijay Rakesh Munganda wrote:

How to solve above issue?


You start by posting the complete command output so we can see what what's 
going on.


(and please don't top-post on this list)

z!
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Error while playing record audio from webcam

2021-01-19 Thread Vijay Rakesh Munganda
Hi,

I just tried to record only audio by running below command. 
ffmpeg -f alsa -channels 1 -i hw:1 -c:a aac -ar 48k -t 0:10 sample.aac 
When play sample.aac file using ffplay it started to play which I have recorded 
then after it continued to play with silent output. How to solve above issue? 

Thanks & Regards,
Vijay Rakesh

> On 19-Jan-2021, at 10:27, Vijay Rakesh Munganda 
>  wrote:
> 
> 
> Hi All, 
> 
> I’m using below command to create video and audio files for real time 
> streaming to the cloud.
> 
> ffmpeg -f alsa -channels 1 -thread_queue_size 1024 -i hw:1 -f video4linux2 -i 
> /dev/video0 -c:a aac -ar 48k -t 0:10 -segment_time 00:00.08 -f stream_segment 
> sample-%003d.aac -c:v h264 -force_key_frames "expr:gte(t,n_forced*0.08)" 
> -pix_fmt yuv420p -s:v 640x480 -t 0:10 -r 25 -g 1 -segment_time 00:00.08 -f 
> stream_segment frame-%003d.h264
> 
> When I use ffplay on video clips it is playing, but when I run audio clips I 
> get different errors for different segmented output as follows, and some 
> clips play for more than 13s when segment given as 80ms. 
> 
> Error:
> Error: sample-000.aac: Invalid data found when processing input 0B f=0/0
> 
> [mpegts @ 0x7f6f3b80] Format mpegts detected only with low score of 2, 
> misdetection possible! 
> 
> [mpegts @ 0x7f6f3b80] Could not detect TS packet size, defaulting to 
> non-FEC/DVHS sample-001.aac: could not find codec parameters
> 
> Did I miss anything in the command? 
> 
> Thanks & Regards,
> Vijay Rakesh
> 
> 
> Thanks & Regards,
> Vijay Rakesh
___
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] Error while playing record audio from webcam

2021-01-18 Thread Vijay Rakesh Munganda
Hi All, 

I’m using below command to create video and audio files for real time streaming 
to the cloud.

ffmpeg -f alsa -channels 1 -thread_queue_size 1024 -i hw:1 -f video4linux2 -i 
/dev/video0 -c:a aac -ar 48k -t 0:10 -segment_time 00:00.08 -f stream_segment 
sample-%003d.aac -c:v h264 -force_key_frames "expr:gte(t,n_forced*0.08)" 
-pix_fmt yuv420p -s:v 640x480 -t 0:10 -r 25 -g 1 -segment_time 00:00.08 -f 
stream_segment frame-%003d.h264

When I use ffplay on video clips it is playing, but when I run audio clips I 
get different errors for different segmented output as follows, and some clips 
play for more than 13s when segment given as 80ms. 

Error:
Error: sample-000.aac: Invalid data found when processing input 0B f=0/0

[mpegts @ 0x7f6f3b80] Format mpegts detected only with low score of 2, 
misdetection possible! 

[mpegts @ 0x7f6f3b80] Could not detect TS packet size, defaulting to 
non-FEC/DVHS sample-001.aac: could not find codec parameters

Did I miss anything in the command? 

Thanks & Regards,
Vijay Rakesh


Thanks & Regards,
Vijay Rakesh
___
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] error with cuda for convert ts to mp4

2021-01-11 Thread Michele Salerno


Il 11/01/21 12:01, Dennis Mungai ha scritto:

On Mon, 11 Jan 2021, 04:30 Michele Salerno,  wrote:


Hi,

i have GPU GTX660Ti on debian buster 64bit, cpu intel core i7.

I have fresh install debian and install latest driver and cuda from
website nvidia, no repository of debian.

If convert file h264 with cpu it's ok, if use gpu i have error.

The video prova.ts is recorder from decoder sat.

The command used is:

ffmpeg -y -threads 8 -vsync 0 -hwaccel cuda -i prova.ts -r 24 -c:v
h264_nvenc -filter_complex yadif=parity=tff:deint=all,scale=1920:1080
-b:v 3M -c:a aac -b:a 192k -ar 48000 prova.mp4

This is output

https://pastebin.com/uW9knqkz

what is the error?

Thanks.

Best regards.

Michele


___



Michele,

Use this:

ffmpeg -y -threads 1 -hwaccel cuda -i prova.ts -r 24 -c:v
h264_nvenc -filter_complex yadif_cuda,scale_cuda=1920:1080
-b:v 3M -c:a aac -b:a 192k -ar 48000 prova.mp4

Notes:

You're using nvdec hwaccel. Lower thread count for the decoder to 1, and
likewise use filters running on the GPU to prevent the need for hwdownload
filters.



Don't work, this is output

https://pastebin.com/9wMDckVf


___
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] error with cuda for convert ts to mp4

2021-01-11 Thread Dennis Mungai
On Mon, 11 Jan 2021, 04:30 Michele Salerno,  wrote:

> Hi,
>
> i have GPU GTX660Ti on debian buster 64bit, cpu intel core i7.
>
> I have fresh install debian and install latest driver and cuda from
> website nvidia, no repository of debian.
>
> If convert file h264 with cpu it's ok, if use gpu i have error.
>
> The video prova.ts is recorder from decoder sat.
>
> The command used is:
>
> ffmpeg -y -threads 8 -vsync 0 -hwaccel cuda -i prova.ts -r 24 -c:v
> h264_nvenc -filter_complex yadif=parity=tff:deint=all,scale=1920:1080
> -b:v 3M -c:a aac -b:a 192k -ar 48000 prova.mp4
>
> This is output
>
> https://pastebin.com/uW9knqkz
>
> what is the error?
>
> Thanks.
>
> Best regards.
>
> Michele
>
>
> ___
>


Michele,

Use this:

ffmpeg -y -threads 1 -hwaccel cuda -i prova.ts -r 24 -c:v
h264_nvenc -filter_complex yadif_cuda,scale_cuda=1920:1080
-b:v 3M -c:a aac -b:a 192k -ar 48000 prova.mp4

Notes:

You're using nvdec hwaccel. Lower thread count for the decoder to 1, and
likewise use filters running on the GPU to prevent the need for hwdownload
filters.

>
___
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] error with cuda for convert ts to mp4

2021-01-10 Thread Michele Salerno

Hi,

i have GPU GTX660Ti on debian buster 64bit, cpu intel core i7.

I have fresh install debian and install latest driver and cuda from 
website nvidia, no repository of debian.


If convert file h264 with cpu it's ok, if use gpu i have error.

The video prova.ts is recorder from decoder sat.

The command used is:

ffmpeg -y -threads 8 -vsync 0 -hwaccel cuda -i prova.ts -r 24 -c:v 
h264_nvenc -filter_complex yadif=parity=tff:deint=all,scale=1920:1080 
-b:v 3M -c:a aac -b:a 192k -ar 48000 prova.mp4


This is output

https://pastebin.com/uW9knqkz

what is the error?

Thanks.

Best regards.

Michele


___
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] error during conversion

2020-12-11 Thread Andy Sheimo
Trying to transcode a file and perform a pixel conversion from 8 to 10 bit.
The transcode errors with Impossible to convert between the formats
supported by the filter 'Parsed_null_0' and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0

I have tried inserting scale_qsv into the command with no success either.
The original command line is as follows:

ffmpeg -loglevel debug -stats -qsv_device 1 -hwaccel qsv -c:v vc1_qsv -i
"F:\Testing 3\BLADE RUNNER\Blade Runner - The Final Cut.mkv" -map 0:0 -c:v
hevc_qsv -pix_fmt:v p010le -b:v 6000k -maxrate:v 18000k -load_plugin:v
hevc_hw -color_primaries:v bt709 -color_trc:v bt709 -colorspace:v bt709
-metadata:s:v title= -disposition:v default -map 0:1 -c:a:0 copy
-metadata:s:a:0 title= -disposition:a:0 default -sn -metadata:g title=
-default_mode passthrough "Blade Runner - The Final Cut.mkv"

here is the debug output:
ffmpeg version N-99979-gb0a8b40294-ffmpeg-windows-build-helpers Copyright
(c) 2000-2020 the FFmpeg developers
  built with gcc 10.1.0 (GCC)
  configuration: --pkg-config=pkg-config --pkg-config-flags=--static
--extra-version=ffmpeg-windows-build-helpers --enable-version3
--disable-debug --disable-w32threads --arch=x86_64 --target-os=mingw32
--cross-prefix=/home/asheimo/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32-
--enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopus --enable-libsoxr --enable-libvo-amrwbenc
--enable-libvorbis --enable-opengl --enable-libaom --enable-libvpx
--enable-nvenc --enable-nvdec --enable-cuda-llvm --extra-libs=-lharfbuzz
--extra-libs=-lm --extra-libs=-lpthread --extra-cflags=-DLIBTWOLAME_STATIC
--extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCACA_STATIC --enable-amf
--enable-libmfx --enable-gpl --enable-frei0r --enable-filter=frei0r
--enable-librubberband --enable-libvidstab --enable-libx264
--enable-libx265 --enable-libxvid --enable-libdavs2 --enable-libxavs2
--enable-libxavs --enable-avresample --extra-cflags='-mtune=generic'
--extra-cflags=-O3 --enable-static --disable-shared
--prefix=/home/asheimo/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32
  libavutil  56. 60.100 / 56. 60.100
  libavcodec 58.112.103 / 58.112.103
  libavformat58. 64.100 / 58. 64.100
  libavdevice58. 11.103 / 58. 11.103
  libavfilter 7. 90.100 /  7. 90.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc55.  8.100 / 55.  8.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument 'debug'.
Reading option '-stats' ... matched as option 'stats' (print progress
report during encoding) with argument '1'.
Reading option '-qsv_device' ... matched as option 'qsv_device' (set QSV
hardware device (DirectX adapter index, DRM path or X11 display name)) with
argument '1'.
Reading option '-hwaccel' ... matched as option 'hwaccel' (use HW
accelerated decoding) with argument 'qsv'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument
'vc1_qsv'.
Reading option '-i' ... matched as input url with argument 'F:\Testing
3\BLADE RUNNER\Blade Runner - The Final Cut.mkv'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '0:0'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument
'hevc_qsv'.
Reading option '-pix_fmt:v' ... matched as option 'pix_fmt' (set pixel
format) with argument 'p010le'.
Reading option '-b:v' ... matched as option 'b' (video bitrate (please use
-b:v)) with argument '6000k'.
Reading option '-maxrate:v' ... matched as AVOption 'maxrate:v' with
argument '18000k'.
Reading option '-load_plugin:v' ... matched as AVOption 'load_plugin:v'
with argument 'hevc_hw'.
Reading option '-color_primaries:v' ... matched as AVOption
'color_primaries:v' with argument 'bt709'.
Reading option '-color_trc:v' ... matched as AVOption 'color_trc:v' with
argument 'bt709'.
Reading option '-colorspace:v' ... matched as AVOption 'colorspace:v' with
argument 'bt709'.
Reading option '-metadata:s:v' ... matched as option 'metadata' (add
metadata) with argument 'title='.
Reading option '-disposition:v' ... matched as option 'disposition'
(disposition) with argument 'default'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '0:1'.
Reading option '-c:a:0' ... matched as option 'c' (codec name) with
argument 'copy'.
Reading option '-metadata:s:a:0' ... matched as option 'metadata' (add
metadata) with argument 'title='.
Reading option '-disposition:a:0' ... matched as option 'disposition'
(disposition) with argument 'default'.
Reading option '-sn' ... matched as option 'sn' (disable subtitle) with
argument '1'.
Reading option '-metadata:g' ... 

[FFmpeg-user] Error raised in oggenc.c when trying to create opus file from RTP stream

2020-10-29 Thread Jonathan Baudanza
I am trying to write the contents of an RTC-OPUS stream to an OGG-OPUS file, 
ideally without doing any transcoding. The purpose is to send a WebRTC session 
to Google's Speech-to-text API, which accepts OGG-OPUS as input. 

The problem I'm having is that the opus muxer raises an error: "No extradata 
present". If I change the container format to webm instead of ogg, everything 
works fine. Google's API won't accept webm though.

I dug into oggenc.c in libavformat a bit, and it seems like it is expecting 
extradata to contain an opus header. I should have everything I need to 
construct a valid opus header. Is there some commandline or configuration that 
would help me do this? Any help would be appreciated.

I'm including my configuration and outputs below:

input.sdp:

v=0
o=- 0 0 IN IP4 127.0.0.1
s=Mediasoup
c=IN IP4 127.0.0.1
t=0 0
m=audio 5004 RTP/AVPF 100
a=rtcp:5005
a=rtpmap:100 opus/48000/2

Command line:

# Fails with "No extradata present" error
ffmpeg \
 -nostdin \
 -protocol_whitelist file,rtp,udp \
 -i ./input.sdp \
 -codec copy \
 -y output.opus

# Successfully writes output.webm from RTP stream
ffmpeg \
 -nostdin \
 -protocol_whitelist file,rtp,udp \
 -i ./input.sdp \
 -codec copy \
 -y output.webm

Output from ffmpeg:

ffmpeg version 4.3.1-tessus  https://evermeet.cx/ffmpeg/  Copyright (c) 
2000-2020 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.17)
  configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg 
--extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl 
--enable-libaom --enable-libass --enable-libbluray --enable-libdav1d 
--enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame 
--enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libopenh264 --enable-libopenjpeg --enable-libopus 
--enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr 
--enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab 
--enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx 
--enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 
--enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq 
--enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
  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
Input #0, sdp, from './input.sdp':
  Metadata:
title   : Mediasoup
  Duration: N/A, start: 0.00, bitrate: N/A
Stream #0:0: Audio: opus, 48000 Hz, stereo, fltp
[opus @ 0x7fe590008e00] No extradata present
Could not write header for output file #0 (incorrect codec parameters ?): 
Invalid data found when processing input
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Last message repeated 1 times
___
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] ERROR: srt >= 1.3.0 not found using pkg-config

2020-10-20 Thread rhannah
Yes, I see what you mean, I just went to the end of that log file to see why it 
crashed but there are a lot of other problems earlier on, get a similar result 
just when I run 
sudo ./configure

I guess it may be peculiar to the Pi, unfortunately I don't have another linux 
machine to try it on at the moment, 

Looks like the first lot of errors are around not knowing what the processor 
is, do you have any idea what the define should be? Currently trying to get it 
working on a Pi 3 B+

I may try and install an Ubuntu operating system on the device and see if I 
have more fortune

Robyn 



-Original Message-
From: ffmpeg-user  On Behalf Of Edward Park
Sent: Wednesday, 21 October 2020 1:17 PM
To: FFmpeg user questions 
Subject: Re: [FFmpeg-user] ERROR: srt >= 1.3.0 not found using pkg-config

Hi,

> I can't get past the error ERROR: srt >= 1.3.0 not found using 
> pkg-config
> 
> 
> 
> Has  anyone found where it is coming from?? Log file attached but 
> it does not seem to add anything to the party

That’s not the only problem, can you run configure at all, with no options?

Regards,
Ted Park

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with 
subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] ERROR: srt >= 1.3.0 not found using pkg-config

2020-10-20 Thread Edward Park
Hi,

> I can't get past the error ERROR: srt >= 1.3.0 not found using pkg-config
> 
> 
> 
> Has  anyone found where it is coming from?? Log file attached but it
> does not seem to add anything to the party

That’s not the only problem, can you run configure at all, with no options?

Regards,
Ted Park

___
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] Error messages when generating ProRes from 16-Bit TIFF

2020-09-11 Thread Wiesinger, Konstantin - StA
Dear Ted,

> I only have a generic suggestion to offer; as always, try updating to the 
> current code, or a nightly build.
Will do so next occasion and post if output changes
>> Log:
> >
>> ffmpeg started on 2020-09-10 at 14:21:31
>> Report written to "ffmpeg-20200910-142131.log"
> >Log level: 48
>> Command line:
>> "C:\\Temp\\ffmpeg\\bin\\ffmpeg.exe" -report -i "D:\\Artus\\tif\\0%05d.tif" 
>> -c:v prores_ks -profile:v  -vf "scale=2048x1550" -pix_fmt yuv444p10le 
>> neu.mov
>> ffmpeg version git-2020-06-15-9d80f3e Copyright (c) 2000-2020 the FFmpeg 
>> developers
>>  built with gcc 9.3.1 (GCC) 20200523
>>  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 --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
>I was curious about a few things though, why might someone add 
>"--disable-w32threads"? Can you use posix threads instead?
As I'm quite new to ffmpeg and cli I'm not sure I get this correctly. I just 
used the zeranoe build so I wasn't even aware of such "details" like 
"--Dis...". Posix thread means output for example via Cygwin on a win machine?

>Also, is 2048x1550 not a typo? (1550 doesn't factor very well, 2×25×31)
>I can't articulate a clear rationale for this (and so it might not be optimal) 
>but I would personally convert formats then change the size, putting the 
>format filter before scale instead of pix_fmt. Or more likely I wouldn't even 
>think of that and expect ffmpeg to figure that part out for me.
I tried to reproduce an external  contractors file: Resizing an original ~6k 
Tiff to a certain section/aperture and this resulted in this odd ratio. Your 
suggestions would be something like: -I xxx -c:v prores_ks -profile:v  
-formatfilter -vf "scale=xxx"?
So you would let ffmpeg decide the default pix_fmt? Do you have any specific 
filters in mind?
>> [AVIOContext @ 0219ad3f0c40] Statistics: 146089658 bytes read, 0 seeks
>> [tiff @ 0219ad19ea80] compression: 1
>> frame=0 fps=0.0 q=0.0 size=   0kB time=-577014:32:22.77 bitrate=  
>> -0.0kbits/s speed=N/A
>> cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if 
>> it occurs once at the start per stream)
>Again, not sure what it means if anything at all, but the time looks like it 
>rolled over.
Sorry, but what do you mean by "time ... rolled over"?


Kind regards
Konstantin
___
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] Error messages when generating ProRes from 16-Bit TIFF

2020-09-10 Thread Edward Park
Hi,

I only have a generic suggestion to offer; as always, try updating to the 
current code, or a nightly build.
> Log:
> 
> ffmpeg started on 2020-09-10 at 14:21:31
> Report written to "ffmpeg-20200910-142131.log"
> Log level: 48
> Command line:
> "C:\\Temp\\ffmpeg\\bin\\ffmpeg.exe" -report -i "D:\\Artus\\tif\\0%05d.tif" 
> -c:v prores_ks -profile:v  -vf "scale=2048x1550" -pix_fmt yuv444p10le 
> neu.mov
> ffmpeg version git-2020-06-15-9d80f3e Copyright (c) 2000-2020 the FFmpeg 
> developers
>  built with gcc 9.3.1 (GCC) 20200523
>  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 --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
I was curious about a few things though, why might someone add 
"--disable-w32threads"? Can you use posix threads instead?

Also, is 2048x1550 not a typo? (1550 doesn't factor very well, 2×25×31)
I can't articulate a clear rationale for this (and so it might not be optimal) 
but I would personally convert formats then change the size, putting the format 
filter before scale instead of pix_fmt. Or more likely I wouldn't even think of 
that and expect ffmpeg to figure that part out for me.
> [AVIOContext @ 0219ad3f0c40] Statistics: 146089658 bytes read, 0 seeks
> [tiff @ 0219ad19ea80] compression: 1
> frame=0 fps=0.0 q=0.0 size=   0kB time=-577014:32:22.77 bitrate=  
> -0.0kbits/s speed=N/A
> cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if 
> it occurs once at the start per stream)
Again, not sure what it means if anything at all, but the time looks like it 
rolled over.

Regards,
Ted Park

___
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] Error messages when generating ProRes from 16-Bit TIFF

2020-09-10 Thread Wiesinger, Konstantin - StA
Dear List,

I'm trying to convert from TIFF, 16-Bit, Raw, little endian to ProRes .

Log:

ffmpeg started on 2020-09-10 at 14:21:31
Report written to "ffmpeg-20200910-142131.log"
Log level: 48
Command line:
"C:\\Temp\\ffmpeg\\bin\\ffmpeg.exe" -report -i "D:\\Artus\\tif\\0%05d.tif" -c:v 
prores_ks -profile:v  -vf "scale=2048x1550" -pix_fmt yuv444p10le neu.mov
ffmpeg version git-2020-06-15-9d80f3e Copyright (c) 2000-2020 the FFmpeg 
developers
  built with gcc 9.3.1 (GCC) 20200523
  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 
--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. 55.100 / 56. 55.100
  libavcodec 58. 92.100 / 58. 92.100
  libavformat58. 46.101 / 58. 46.101
  libavdevice58. 11.100 / 58. 11.100
  libavfilter 7. 86.100 /  7. 86.100
  libswscale  5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc55.  8.100 / 55.  8.100
Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a report) 
with argument '1'.
Reading option '-i' ... matched as input url with argument 
'D:\Artus\tif\0%05d.tif'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 
'prores_ks'.
Reading option '-profile:v' ... matched as option 'profile' (set profile) with 
argument ''.
Reading option '-vf' ... matched as option 'vf' (set video filters) with 
argument 'scale=2048x1550'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) 
with argument 'yuv444p10le'.
Reading option 'neu.mov' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url D:\Artus\tif\0%05d.tif.
Successfully parsed a group of options.
Opening an input file: D:\Artus\tif\0%05d.tif.
[image2 @ 0219a450e900] Opening 'D:\Artus\tif\01.tif' for reading
[file @ 0219a453a4c0] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 0219a453a5c0] Statistics: 146089658 bytes read, 0 seeks
[tiff @ 0219a45108c0] compression: 1
[image2 @ 0219a450e900] Probe buffer size limit of 500 bytes reached
Input #0, image2, from 'D:\Artus\tif\0%05d.tif':
  Duration: 00:00:01.00, start: 0.00, bitrate: N/A
Stream #0:0, 1, 1/25: Video: tiff, rgb48le, 6440x3780 [SAR 1:1 DAR 46:27], 
25 tbr, 25 tbn, 25 tbc
Successfully opened the file.
Parsing a group of options: output url neu.mov.
Applying option c:v (codec name) with argument prores_ks.
Applying option profile:v (set profile) with argument .
Applying option vf (set video filters) with argument scale=2048x1550.
Applying option pix_fmt (set pixel format) with argument yuv444p10le.
Successfully parsed a group of options.
Opening an output file: neu.mov.
[file @ 0219a4537900] Setting default whitelist 'file,crypto,data'
Successfully opened the file.
detected 48 logical cores
Stream mapping:
  Stream #0:0 -> #0:0 (tiff (native) -> prores (prores_ks))
Press [q] to stop, [?] for help
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it 
occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it 
occurs once at the start per stream)
[image2 @ 0219a450e900] Opening 'D:\Artus\tif\02.tif' for reading
[file @ 0219a4538b40] Setting default whitelist 'file,crypto,data'
[tiff @ 0219a4538440] compression: 1
[AVIOContext @ 0219ad3f0c40] Statistics: 146089658 bytes read, 0 seeks
[tiff @ 0219a45a8440] compression: 1
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it 
occurs once at the start per stream)
[image2 @ 0219a450e900] Opening 'D:\Artus\tif\03.tif' for reading
[file @ 0219ad3f0fc0] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 0219ad3f0c40] Statistics: 146089658 bytes read, 0 seeks
[tiff @ 0219ad132440] compression: 1
frame=0 fps=0.0 q=0.0 size=   0kB time=-577014:32:22.77 bitrate=  
-0.0kbits/s speed=N/A
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is 

Re: [FFmpeg-user] error avformat_open_input

2020-08-30 Thread Edward Park
Hi,

> and the video its in the same path that the project.
I don't think that's the issue, because the error description says:
> ... unresolved external symbol "int __cdecl avformat_open_input(struct 
> AVFormatContext * *,char const *,struct AVInputFormat *,struct AVDictionary * 
> *)" 
> (?avformat_open_input@@YAHPAPAUAVFormatContext@@PBDPAUAVInputFormat@@PAPAUAVDictionary@@@Z)
>  referenced in function "bool __cdecl load_video(char const *)" 
> (?load_video@@YA_NPBD@Z) 
Also, I think questions on using the libraries and troubleshooting your code 
are referred to the libav list and leaves this list for help on how to use the 
command line tools themselves, unless something changed recently.

Regards,
Ted Park

___
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] error avformat_open_input

2020-08-29 Thread geronimo eberle
hellow!
im a new user whit FFmpeg and im trying to do a video editor whit c++.
my error its:
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "int __cdecl 
avformat_open_input(struct AVFormatContext * *,char const *,struct 
AVInputFormat *,struct AVDictionary * *)" 
(?avformat_open_input@@YAHPAPAUAVFormatContext@@PBDPAUAVInputFormat@@PAPAUAVDictionary@@@Z)
 referenced in function "bool __cdecl load_video(char const *)" 
(?load_video@@YA_NPBD@Z) Video C:\Users\gerit\source\repos\Video\Main.obj 1

the code its:

const char *filename = "prueba.mp4";
bool load_video(const char* filename)
{
AVFormatContext *av_format_context = NULL;
if (!av_format_context)
{
cout << "no se pudo cargar context";
return false;
}
if (avformat_open_input(_format_context, filename, NULL, NULL) != 0)
{
cout << "no se pudo cargar viedo";
return false;
}

return true;
};

and the video its in the same path that the project.
sorry for my english, its very bad, and ty for your help!
___
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] Error extracting srt

2020-08-07 Thread Alex Zachopoulos
Thank you SO much Moritz!

On Fri, Aug 7, 2020 at 12:20 PM Moritz Barsnick  wrote:

> On Wed, Aug 05, 2020 at 22:28:15 +0100, Alex Zachopoulos wrote:
> > This is the command I use to extract Stream #0:2 (subtitle) from file
>   ^^ This is an input stream
>  specifier, for mapping
> > 1.mp4, on both computers:
> >
> > ffmpeg -i 1.mp4 -vn -an -codec:s:0.2 srt 1.srt
>  ^^ This is an output stream specifier.
>
> You want to tell ffmpeg to encode the first *output* subtitle stream as
> SRT. That's not "0:2", neither "0.2", that's just "0".
>
> If you have only one output SRT stream - which should be the case,
> since your output SRT file can only include one stream - you can omit
> the output stream specifier: "-codec:s"
>
> In your case, you can omit the "-codec:s" totally, because the suffix
> of your output file implies it.
>
> > *[srt @ 0x7fd3b300ce00] Invalid stream specifier: s:0.2.*
>
> I assume the stream specifier parser used to just ignore the ".2", and
> it no longer does, and errors out instead.
>
> Cheers,
> Moritz
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Error extracting srt

2020-08-07 Thread Moritz Barsnick
On Wed, Aug 05, 2020 at 22:28:15 +0100, Alex Zachopoulos wrote:
> This is the command I use to extract Stream #0:2 (subtitle) from file
  ^^ This is an input stream
 specifier, for mapping
> 1.mp4, on both computers:
>
> ffmpeg -i 1.mp4 -vn -an -codec:s:0.2 srt 1.srt
 ^^ This is an output stream specifier.

You want to tell ffmpeg to encode the first *output* subtitle stream as
SRT. That's not "0:2", neither "0.2", that's just "0".

If you have only one output SRT stream - which should be the case,
since your output SRT file can only include one stream - you can omit
the output stream specifier: "-codec:s"

In your case, you can omit the "-codec:s" totally, because the suffix
of your output file implies it.

> *[srt @ 0x7fd3b300ce00] Invalid stream specifier: s:0.2.*

I assume the stream specifier parser used to just ignore the ".2", and
it no longer does, and errors out instead.

Cheers,
Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

  1   2   3   4   5   >