Re: [FFmpeg-user] Output a sequence of images with known timings

2020-11-19 Thread Moritz Barsnick
On Wed, Nov 18, 2020 at 17:45:53 +, adam smith via ffmpeg-user wrote:

> My issue is that the first image time varies depending on the output fps.
> Eg fps=1/1 will output the first image from the 1st second of source; and so 
> on.
> Fps=1/5 will output the first image from the 3rd second of the source.
> Fps=1/11 will output the first image from the 6th second of the source.
> It keeps getting further away from the start while remaining approx halfway 
> to the point I expected.

That seems to be the expected behavior from the fps filter's averaging.

> Any ideas how I force the first image to either be the first frame of the 
> source, or the same value as the frequency?

Do take a look at the documentation of the select filter. It even has
an example on how to extract certain frames, e.g. by number:

https://ffmpeg.org/ffmpeg-filters.html#select_002c-aselect

Select one frame every 100:
select='not(mod(n\,100))'

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] Best place for despill filter?

2020-11-18 Thread Moritz Barsnick
On Mon, Nov 16, 2020 at 20:15:54 +0100, Michael Koch wrote:
> Oh, what a pity. We need more filters with support for commands. Now
> that I have found out how to send zmq commands from C# code, there are
> so many nice things that could be done with FFmpeg in real time.
> Especially when adjusting parameters that need visual feedback, for
> example brightness, contrast, gamma, color corrections, colorkey
> parameters, despill parameters and so on...

Paul has worked heavily over the last few months to add command support
to filters (and to properly document it). I guess it just isn't trivial
in many cases, as the filters sometimes have not been designed with
runtime reconfiguration in mind. (Any it may not be possible at all in
certain cases.)

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] start FFplay without console window?

2020-10-30 Thread Moritz Barsnick
Hallo Michael,

On Fri, Oct 30, 2020 at 01:29:04 +0100, Michael Koch wrote:
> Is it possible to start FFplay (from a C# application) so that only the
> video window is visible, while the console window is hidden or minimized?

That's more of a C#/Windows question than an ffmpeg question. (Assuming
you're not using C# on a different platform here. ;-)) Windows seems to
require opening a console for launching such an external GUI.

I think this SO answer, with its amendments and comments, should cover
it (untested):

https://stackoverflow.com/a/19756925

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] Trying to Reduce Sizes of Movies Ripped with MakeMKV

2020-10-26 Thread Moritz Barsnick
Hi Marc

On Sun, Oct 25, 2020 at 13:21:45 -0500, Marc Barrett wrote:
> I have been using the following command to recompact the Blu-Ray MKV files:
>
> ffmpeg -y -hwaccel cuvid -c:v h264_cuvid -vsync 0 -i in.mkv -map 0 -codec:v
> h264_nvenc -codec:a copy -codec:s copy -max_muxing_queue_size 4096 out.mkv
[...]
> That command works very well for Blu-Rays. It can reduce a 40-50GB MKV file
> to about 7GB. The problem is, that only works on files produced by ripping
> Blu-Rays. If I try it on DVD files, I get errors.
>
>
> [h264 @ 0x73579a80] Invalid NAL unit 0, skipping.
> Last message repeated 5 times
> [h264 @ 0x73579a80] non-existing PPS 2 referenced
> [h264 @ 0x73579a80] Invalid NAL unit 0, skipping.
> Last message repeated 4 times
> [h264 @ 0x73579a80] non-existing PPS 2 referenced
> [h264 @ 0x73579a80] decode_slice_header error

As Carl/z pointed out:
> But there _is_ output from ffmpeg, and that can tell us a lot about the files.

You never actually showed us the complete output from ffmpeg. Even just
an ffprobe of the input file would suffice.

> I am using ffmpeg version n4.1.4 on a Ubuntu Mate 20.04 system, Intel X64
> PC. Everything is up-to-date (I run apt update/upgrade regularly).

(As others mentionend: That ffmpeg version is not up to date, though.
You should try to get hold of a recent binary.)


As far as I remember MakeMKV, and from the sizes you posted, it creates
a non-reencoded dump of the disk's contents.

DVDs are *not* encoded with H.264, but rather MPEG-2 video. So you
simply cannot use the h264_cuvid decoder on that material. ffmpeg
should have shown you what it thinks the video codec is. Check with

$ ffmpeg -i in.mkv

and if that confirms my suspicion, use the "mpeg2_cuvid" input codec on
your command line.

Let us know,
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] how to burn subtitles and transcode live stream

2020-10-23 Thread Moritz Barsnick
Hi Daniel,

On Wed, Oct 21, 2020 at 19:01:37 +0300, Daniel Dimitrov wrote:
> i have also tried :
> ffmpeg -i "udp://@
> 239.253.251.14:5505?overrun_nonfatal=1_size=5000_size=1316&_size=1000"
>  -b:v 2600k -maxrate 4M -bufsize 4M   -b:a 128k  -vf scale=720:576
> -filter_complex "[0:v][0:s:2]overlay[v]" -map "[v]"  -f mpegts "udp://@
> 239.253.251.15:5505?overrun_nonfatal=1_size=5000_size=1316&_size=1000
> "
>
> but the error was:
> Filtergraph 'scale=720:576' was specified through the -vf/-af/-filter
> option for output stream 0:0, which is fed from a complex filtergraph.
> -vf/-af/-filter and -filter_complex cannot be used together for the same
> stream.

Exactly what it says there. You can't combine simple and complex
filters.

Use this:

# [...] -filter_complex "[0:v]scale=720:576[v0]; [v0][0:s:2]overlay[v]" -map 
"[v]"

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] ffmpeg does nothing but using CPU

2020-10-20 Thread Moritz Barsnick
On Tue, Oct 20, 2020 at 19:33:05 +0200, Cecil Westerhof wrote:
> When looking into the log-file I see it ends with:
> Enter command: |all |-1 [ ]
>
> What could be happening here?

This looks like something from stdin triggered interactive mode.

On Tue, Oct 20, 2020 at 20:38:03 +0200, Cecil Westerhof wrote:
> The command I use in the bash script is:
> nice -n 10 ionice -c3   \
>  ffmpeg -y  \
> -i  "${inputfile}"  \
> -vf scale=${xDimension}:-2  \
> -crf28  \
> -acodec libmp3lame  \
> -qscale:a   9   \
> -preset veryfast\
> "${outputfile}" 2>"${logfile}"

If you add the option "-nostdin", this mode cannot be triggered. Do try
that. (You can then no longer interactively quit ffmpeg, of course.)

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] problem capture desktop

2020-10-18 Thread Moritz Barsnick
On Sun, Oct 18, 2020 at 02:01:57 +0200, Juan carlos Rebate wrote:
> ffmpeg -f dshow -i video="screen-capture-recorder" -i
> audio="virtual-audio-capturer" -vcodec libx264 -r 25 -crf 10 -acodec
> mp3 output.mp4
[...]
> audio=virtual-audio-capturer: No such file or directory

And you have to tell ffmpeg that the second input is also dshow:

$ ffmpeg -f dshow -i video="screen-capture-recorder" -f dshow -i 
audio="virtual-audio-capturer" -vcodec libx264 -r 25 -crf 10 -acodec mp3 
output.mp4

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] problem capture desktop

2020-10-17 Thread Moritz Barsnick
Hi Juan Carlos,

On Sat, Oct 17, 2020 at 20:00:44 +0200, Juan carlos Rebate wrote:
> fmpeg -f dshow -i video="screen-capture-recorder" -vcodec libx264 -r
> 25 -crf 10 -i audio="virtual-audio-capturer" -acodec mp3 output.mp4
[...]
> Unknown decoder 'libx264'
> the strange thing is that if I delete the part that refers to the
> audio if the video codec recognizes me, what am I doing wrong?

You need to specify your input options before the inputs, and your
output options before your outputs. By using "-vcodec libx264" before
your audio input, you are trying to tell ffmpeg to use libx264 to
decode the audio - which it cannot do.

You need to place "-vcodec libx264" after the inputs:
$ ffmpeg -f dshow -i video="screen-capture-recorder" -i 
audio="virtual-audio-capturer" -vcodec libx264 -r 25 -crf 10 -acodec mp3 
output.mp4

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] Truncated file with ffmpeg but resulting output is x2 bigger!?

2020-10-16 Thread Moritz Barsnick
On Fri, Oct 16, 2020 at 20:26:16 +1100, FFmpeg user discussions wrote:
> I truncated a 14s file with:
>
>ffmpeg -i 20201016_055828.mp4 -t 00:00:09 -async 1 cut.mp4
>
> and although about 35% of the frames were removed, the resulting mp4 was
> double the size - why is this?

You are reencoding the streams inside the file. ffmpeg's default
encoding parameters apparently result in streams with more bandwidth.
You can fine-tune the encoding parameters, of course.

Re-encoding is not a good idea, as it always loses quality. If you just
want to "clip", be sure to use the "copy" codec:

$ ffmpeg -i 20201016_055828.mp4 -t 00:00:09 -c copy cut.mp4

(Note that cutting without re-encoding may or may not be exact. Feel
free to test first though.)

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] Replacing stream input when using segment time option

2020-10-16 Thread Moritz Barsnick
Hi James,

On Fri, Oct 16, 2020 at 03:11:36 -0500, jamesfowkes wrote:
> Further to this, I've managed to get a still frame to record into timestamped
> segments using:
>
> ffmpeg -loop 1 -i frame.png -reset_timestamps 1 -vcodec libx264 -f segment
> -segment_time 60 -strftime 1 +%Y-%m-%d_%H-%M-%S.mp4
>
> But while the segments are 60 seconds of wallclock time long, they are
> record much faster than that, taking (on my laptop) about 30 seconds to
> actually record, meaning I have ~120 seconds of video every 60 seconds of
> elapsed wallclock time.

That means you want your segments to not be finished too early? Is that
really a requirement?

> If I add the "-re" and "-vsync  0" options:

Why did you add the vsync option? What did it change (without "-re")?

> The speed is just slightly lower than 1x (around 0.98x), resulting in very
> slightly truncated files. This is no so much of an issue, but again would be
> good to solve.

I don't see why this should not hit 1.0x, except for slight variations.
You could try the "realtime" filter instead of "-re". It defaults to
1.0x and might hit more precisely. If not, you can manipulate it with
its "speed" parameter, e.g. "-vf realtime=speed=1.01".

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] Help required in vp9 streaming on LAN using 2 Pass encoding

2020-10-14 Thread Moritz Barsnick
On Wed, Oct 14, 2020 at 15:34:56 +0500, USMAN AAMER wrote:
> I am working on vp9-RTP streaming over LAN and want to perform 2 pass
> encoding but unable to do so as it is not generating .sdp file.
>
> I am using the following command:
>
>   ffmpeg -i input.mp4 -c:v libvpx-vp9 -b:v 1M -pass 1 -an -f null /dev/null
> && ffmpeg -i input.mp4 -c:v libvpx-vp9 -an -b:v 1M -pass 2 -c:a -f rtp
> rtp://192.168.12.5:5004

If you show us the complete, uncut console output, we can show you what
the error message means.

Apart from that:
> ffmpeg -i input.mp4 -c:v libvpx-vp9 -an -b:v 1M -pass 2 -c:a -f rtp 
> rtp://192.168.12.5:5004

a) You're saying not to use audio ("-an"), but specify "-c:a"
   nevertheless.
b) "-c:a" needs an additional parameter.

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] Add subtitles and chapter metadata in one pass?

2020-10-13 Thread Moritz Barsnick
On Mon, Oct 12, 2020 at 15:29:53 -0400, George Welch wrote:
> However, I would like to skip the intermediate file.  Here is the
> command I am trying which does *not* work:
>
> $ ffmpeg -i avfile.mkv -i srtfile.srt -i metadata.txt \
>      -map 0:v -map 0:a -map 1:s -map_metadata 2 \
>          -c:v libx264 [ various options ] \
>          -c:a copy \
>          -c:s srt \
>              out.mkv
>
> Can anyone tell me a command that will work, and hopefully explain what
> I have wrong?

ffmpeg has loads of useful console output. Please post the uncut
console output along with the actual command line. The same for the
successful command would also be useful.

Otherwise we are just guessing.

Thanks,
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] How to create "Input #1", "Input #2" etc. in addition to "Input #0"?

2020-09-28 Thread Moritz Barsnick
On Mon, Sep 28, 2020 at 12:31:49 +, Stub via ffmpeg-user wrote:
> Let me give a much simplified example of what I hoped to achieve. I have two 
> movie files that each contain a video stream and an audio stream: movie1.mp4 
> and movie2.mp4. I merge both into a single MKV container with ffmpeg:
>
> ffmpeg -i movie1.mp4 -i movie2.mp4 -map 0:v -map 0:a -map 1:v -map 1:a -c 
> copy combined.mkv
>
> At the end of the ffmpeg monitor output I get the following about the 
> contents of the "combined.mkv":
>
> Stream mapping:
>   Stream #0:0 -> #0:0 (copy)
>   Stream #0:1 -> #0:1 (copy)
>   Stream #1:0 -> #0:2 (copy)
>   Stream #1:1 -> #0:3 (copy)

In ffmpeg's stream mapping notation, the digits before the colon count
the separate inputs (files or URIs) and outputs.

> Now, my question is how to achieve the following mapping:
>
> Stream mapping:
>   Stream #0:0 -> #0:0 (copy)
>   Stream #0:1 -> #0:1 (copy)
>   Stream #1:0 -> #1:0 (copy)
>   Stream #1:1 -> #1:1 (copy)

You can only achieve this by creating two output files, not a combined
file.

$ ffmpeg -i movie1.mp4 -i movie2.mp4 -map 0:v -map 0:a -c copy output1.mkv -map 
1:v -map 1:a -c copy output2.mkv

> It seems that the "-map" flag always adds a stream as a "#0:n". I
> would like to have "#1:0" and "#1:1" in the "combined.mkv" container.
> Is that possible?

No. And to reiterate others' questions: What for? A single input file
will always present itself to ffmpeg as "Input #0". If you want an
additional "Input #1", give ffmpeg a second input file/URI.

Again: If you map to a *combined* file, all output streams of the
conversion process *need* to be "#0:N".

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] HOW TO APPLY LOUDNESS R128 PROFILE

2020-09-23 Thread Moritz Barsnick
On Wed, Sep 23, 2020 at 14:16:31 +0200, Marco Mircoli wrote:
> Just bought a php script that use ffmpeg.

I hope it's worth it. ;)

> this is the line
> $shell = shell_exec("$ffmpeg_b -i $audio_file_full_path -map 0:a:0 -b:a
> 96k $audio_output_mp3 2>&1");
>
> I'm wondering if it is possible to include in the conversion the audio
> level normalization to R128 loudness profile.
> I think it is possible, but I don't know how to do it :-(

Sure. You just need to insert a filter to the command line. The R128
filter is even described here:

https://trac.ffmpeg.org/wiki/AudioVolume#LoudnessNormalization

> $shell = shell_exec("$ffmpeg_b -i $audio_file_full_path -map 0:a:0 -b:a 
> 96k $audio_output_mp3 2>&1");

Just add the loudnorm filter:

$shell = shell_exec("$ffmpeg_b -i $audio_file_full_path -map 0:a:0 -af 
loudnorm -b:a 96k $audio_output_mp3 2>&1");

To fine tune the filter's behavior, check ffmpeg's filters
documentation, or

$ ffmpeg -h filter=loudnorm

Good luck,
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] Fwd: linux ubuntu - batch list commande - two pass

2020-09-23 Thread Moritz Barsnick
On Wed, Sep 23, 2020 at 13:13:17 +0200, Libre Curk wrote:
> *Basicly how to batch 2 pass encoding with a command ?**
[...]
> But it's kinda not working there... Any help / solution ?

That's not a good error description. ;-) What did you expect, what was
the outcome, what went wrong?

>   * for f in *.mxf; do ffmpeg -i "$f" -c:v libvpx-vp9 -b:v 2M -pass 1
> -an -f null /dev/null && \
>   * ffmpeg -i "$f" -c:v libvpx-vp9 -b:v 2M -pass 2 -c:a libvorbis
> proxy/"${f%.*}.webm"; done

Basically correct.

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] USB Camera ffplay real-time and save to file

2020-09-11 Thread Moritz Barsnick
On Fri, Sep 11, 2020 at 05:43:09 -0600, Simon Roberts wrote:
> On Fri, Sep 11, 2020 at 1:18 AM Carl Eugen Hoyos  wrote:
> > > Am 09.09.2020 um 23:07 schrieb Hans Carlson :
> > > I have a cheap USB pipe inspection camera and I want to see the output
> > (via ffplay) real-time, but also record (via ffmpeg)
> >
> > Use ffmpeg instead of ffplay to show the stream, this should avoid the
> > lagging you saw.
>
> Carl, could you add a hint as to what option achieves this? I had no clue
> this was possible, despite--so I thought--spending lots of time looking
> through docs.

ffmpeg has several display output muxers/devices. The most common one
(saying it works well, and that on many platforms) is "sdl" a.k.a.
"sdl". Have ffmpeg create two outputs:

$ ffmpeg -i INPUT -c whatever OUTPUTFILE -c copy -f sdl :0

(You may need to drop the copy codec if sdl cannot handle your input or
it isn't raw, and/or at least adjust the pixel format to one which sdl
handles - but it will report that in an error message, I believe.)

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] I can't copy or embed a picture to an output audio (A-A conversion)

2020-09-08 Thread Moritz Barsnick
On Mon, Sep 07, 2020 at 05:11:53 +0300, Ilja wrote:
> ffprobe -hide_banner -show_streams /Users/home/Music/iTunes/iTunes\ 
> Media/Music/Black\ Sabbath/Born\ Again/01\ Trashed.aiff — the command

Please don't use "-hide_banner", especially if it's the only console
output you are showing.

>   Duration: 00:04:19.00, start: 0.00, bitrate: 12309 kb/s
> Stream #0:0: Audio: pcm_f32be (fl32 / 0x32336C66), 192000 Hz, 2 channels, 
> flt, 12288 kb/s
> Stream #0:1: Video: png, rgb24(pc), 732x745, 90k tbr, 90k tbn, 90k tbc 
> (attached pic)

Okay, two "streams" there.

> Based on that info I tried execute the following reincarnations of the 
> command to copy what ffprobe  interpreted as a video stream but 
> unsuccessfully:
>
> ffmpeg -y  -i /Users/home/Music/iTunes/iTunes\ Media/Music/Black\ 
> Sabbath/Born\ Again/01\ Trashed.aiff -i /Users/home/Pictures/iTunes\ cover\ 
> art/born-again.png  -map 0:v -c:a pcm_s24be -c:v png _desposition:v 
> attached_pic   /Users/home/Desktop/01\ Trashed.aiff

I would assume "-map 0:v" *only* tries to map image attachment, no
audio. What's the second file good for anyway, if you're taking the
image from the first one?

And "_desposition:v" should throw a warning or an error. It will be
interpreted as an output file, not an option. (Even if you replaced "_"
with "-", the option is still misspelt.

> ffmpeg -y  -i /Users/home/Music/iTunes/iTunes\ Media/Music/Black\ 
> Sabbath/Born\ Again/01\ Trashed.aiff -i /Users/home/Pictures/iTunes\ cover\ 
> art/born-again.png  -map 0:v:1 -c:a pcm_s24be -c:v:1 png _desposition:v:1 
> attached_pic   /Users/home/Desktop/01\ Trashed.aiff

Same here. And your stream indices are incorrect.

> ffmpeg -y  -i /Users/home/Music/iTunes/iTunes\ Media/Music/Black\ 
> Sabbath/Born\ Again/01\ Trashed.aiff -map 0:v -map 0:a -vcodec: copy -c:a 
> pcm_s24be   /Users/home/Desktop/01\ Trashed.aiff
> The commands either fail, show warnings such as “the video stream doesn’t 
> exist” when I’m trying to map it, or transcode only the audio stream when I 
> use -vcodec:copy or -c:v copy. Running ffprobe on newly created file shows 
> the single audio stream as well.

This is not useful. Show us the actual command you tried, and its
complete, uncut console output. Then we can correlate the input and
your options to your error messages, and point out where you are going
wrong.

> A stunning revelation awaited me when I passed the input through
> MediaInfo application. It showed only the audio-stream and no
> metadata reported by ffprobe hence the “no videostream exists”

I would say metadata and video "stream" (attachment) do not relate, but
I may be wrong and Mediainfo may be weak with AIFF files - I don't
know.

> - or smth to the effect of that - message I mentioned above. What’s
> going on and where did ffprobe retrieve the metadata and cover
> information from?

Each and every format has it quirks on where that is stored, and ffmpeg
tries to implement that best it can.

> Is it a way to copy or embed an artwork or/and metadata to a new
> audio?

Generally, there should be. ffmpeg did have some limitations in the
past, and may still have some.

> The same situation with copying metadata under “Metadata” section. It
> returned errors too of which I don’t remember any now.

Well, then we can't interpret the errors. ;-)

> ffmpeg -y m:date m:lyrics-eng m:album m:iTunes_CDDB_TrackNumber m:artist 
> m:track m:genre m:album_artist m:title m:iTunes_CDDB_1 -i 
> /Users/home/Music/iTunes/iTunes\ Media/Music/Black\ Sabbath/Born\ Again/01\ 
> Trashed.aiff -map 0:v -map 0:a -vcodec: copy -c:a pcm_s24be   
> /Users/home/Desktop/01\ Trashed.aiff

What?

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] Output to S3

2020-09-08 Thread Moritz Barsnick
Hi Bohdan/Bogdan,

On Tue, Sep 08, 2020 at 09:39:26 +0300, Bohdan Fihar wrote:
> How can I output a video file to AWS S3 either public bucket ot Presigned
> url ?
> I tried
> *ffmpeg -i small.mkv -f matroska -movflags frag_keyframe+empty_moov -method
> PUT https://[my-bucket-name].s3.us-east-2.amazonaws.com/video/output.mkv
> *
>
> bur it won't work, fails with
>
> *av_interleaved_write_frame(): I/O errorError writing trailer of https...*

I have no experience with S3, but this Stackoverflow thread seems to
suggest you need to use the "aws s3 cp" command:

https://stackoverflow.com/questions/54736246/stream-ffmpeg-transcoding-result-to-s3

I *guess* ffmpeg assumes it can seek on HTTP PUT output URLs, which
doesn't work on AWS S3. Instead, when piping with above command, ffmpeg
doesn't use this assumption. But I may be wrong.

Please try this.

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] Help required in vp9 streaming and capturing on LAN

2020-09-07 Thread Moritz Barsnick
Hi,

On Mon, Sep 07, 2020 at 12:04:29 +0500, USMAN AAMER wrote:
> I am streaming videos on LAN using VP9 encoding (and .sdp file on
> client-side) but able to capture the videos in a single file (at the
> client). How can I capture those video files as a sequence of videos?

Do have a look at the segment muxer:
https://ffmpeg.org/ffmpeg-formats.html#segment_002c-stream_005fsegment_002c-ssegment

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] How to downscale an audio-file to 24bit?

2020-09-04 Thread Moritz Barsnick
On Fri, Sep 04, 2020 at 05:27:04 +0300, Ilja wrote:
> I need to downscale 32-bit audio to 24-bit one. How do you do this
> with ffmpeg? I didn’t find any 24-bit option.

What format and codec were you thinking of?
Probably PCM audio. For that, ffmpeg (or at least my build) has these
specific encoders:

 A. pcm_s24bePCM signed 24-bit big-endian
 A. pcm_s24daud  PCM D-Cinema audio signed 24-bit
 A. pcm_s24lePCM signed 24-bit little-endian
 A. pcm_s24le_planar PCM signed 24-bit little-endian planar
 A. pcm_u24bePCM unsigned 24-bit big-endian
 A. pcm_u24lePCM unsigned 24-bit little-endian

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] builds for Windows

2020-09-04 Thread Moritz Barsnick
On Wed, Sep 02, 2020 at 20:56:18 +0200, Vincent Torri wrote:
> On Wed, Sep 2, 2020 at 8:29 PM Michael Koch  
> wrote:
> > Any idea where we can get builds for Windows after this date?
>
> for the Enlightenment project, i have written a small tool to compile
> from source its dependencies, including ffmpeg.
>
> I provide no binaries, only a tool to compile ffmpeg and its dependencies

I am also aware of these helper scripts by Roger, which sound
relatively easy to use:

https://github.com/rdp/ffmpeg-windows-build-helpers

I have no personal experience with them yet, though.

Yet if you just want a pre-built binary, without your own build effort,
this doesn't help you, of course.

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] ffmpeg NVENC won't run

2020-09-04 Thread Moritz Barsnick
On Wed, Sep 02, 2020 at 13:04:40 -0300, Leonardo Pagotto wrote:
> starts and stucks, no error messages but won't go any further, even on a
> very basic command w/o NVENC. What can be wrong?
>
> lealpa@cuda7:~$ sudo /home/lealpa/bin/ffmpeg -i udp://230.8.0.7:10008 
> teste.mp4

Firstly: Do you really need sudo? You shouldn't give ffmpeg (or any
other tool) priviledges it doesn't need.

To your issue:
Are you sure something is sending to that UDP address/port? If nothing
arrives at all, ffmpeg does get stuck there.

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] build error at libavformat/udp.o

2020-09-01 Thread Moritz Barsnick
On Tue, Sep 01, 2020 at 10:57:33 +, Hyoung Kim via ffmpeg-user wrote:
>     Yes, older source works fine, but newer sources (4.1.6, 4.2.1, 4.3.1 and 
> git head) has build problem. So I have compared the source of udp.c between 
> 4.0.6 and 4.3.1. There is a difference, but even the 4.0.6 has same 
> statements which caused syntax error. So there could be 3 possibilities.
> 1. Define difference between older source and newer source.2. The primitive 
> type has been converted to struct or union in older source somewhere while 
> newer source does not.3. The build environment could have been changed in 
> newer source.
> Any idea about this?

As long as no one else can reproduce this issue, it's up to you to try.

To find out which specific change broke your build - yes, it could be
ffmpeg's build system config - you would use "git bisect".

You go to the git master branch, find a commit where it still works
(probably around 4.0.x time) and a commit when it no longer works
(probably around 4.1.x time, from your reports), and git will help you
iterate through commits to find the offending one, with least possible
iterations.

There are quite a few instructions around for this process. I would
need to look it up myself, as I have only seldomly used it.

Regards,
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] build error at libavformat/udp.o

2020-09-01 Thread Moritz Barsnick
On Mon, Aug 31, 2020 at 23:14:33 +, Hyoung Kim via ffmpeg-user wrote:
>  3. build error message, when I have used git head :
>  /ffmpeg/configure: /bin/sh^M: bad interpreter: No such file or directory

This looks like you cloned under Windows, and it automatically adjusted
the line endings to DOS/Windows style (CR/LF). There's a git
configuration for that. If you can't adjust that, just clone from
within the Linux VM, that should simply work.

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] Copying sections of an mp4 by time stamp

2020-08-27 Thread Moritz Barsnick
On Wed, Aug 26, 2020 at 19:50:31 -0700, James Sundquist wrote:
> I'm looking to copy sections of example.mp4
>
> Ideally this would be by time stamp.  Perhaps the time stamps are noted in
> a text file.
>
> Example as minutes:second
> 0:20 - 0:40 as a an mp4 with title "Exercise 1"
> 0:40 - 0:59 as an mp4 with title "Exercise 2"
> 0:20 - 0:59 as an mp4 with title "Primary Exercises"

In addition to the other answers, I have also had good success with the
"segment" muxer and its "segment_times" option, which takes a list of
cut ("segmentation") points in time. (I also add the "-reset_timestamps
1" option, to make each individual file's timestamps begin at 0.)

$ ffmpeg -i input.mp4 -c copy -f segment -segment_times 20,40,59,... 
-reset_timestamps 1 output.%02d.mp4

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] RTMP issue

2020-08-24 Thread Moritz Barsnick
Hi William

On Mon, Aug 24, 2020 at 00:40:04 +, william keeling wrote:

> My question is an issue with a program written to live stream to
> YouTube working is all modes other than rtmp live stream.

For programming with the ffmpeg libav* libraries, you should usually
turn to the libav-user mailing list, But perhaps we can help.

> finishes the stream is never processed by YouTube. When the stream is
> piped (pipe:1 URL) thru FFMPEG (demuxed and muxed only -- ffmpeg -i -
> -vcodec copy -acodec copy -f flv rtmp:) the live stream works
> without issues.

At least that means that your content encoding, bit rate, number of
audio channels, and so on, are correct for YouTube. It's just the
muxing, or perhaps something like a flag or metadata.

> So, I need to understand what FFMPEG command line is doing with rtmp: URL 
> that I am not doing with the FFMPEG API.
> My source code is at github.com/wkeeling63/rcam. Any ideas you have I
> would love to hear as I am stumped.

Too bad ths only compiles on Raspberry Pi, so there's no way to
reproduce your muxing issue.

Since you didn't provide a log callback using av_log_set_callback(),
shouldn't your application show all the usual ffmpeg/libav* log output
on stdout? Can you provide us with that ouptut? Raise the log level
with e.g. av_log_set_level(AV_LOG_VERBOSE), if required.

Thanks,
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] Latency in UDP to HLS Conversion

2020-08-21 Thread Moritz Barsnick
On Fri, Aug 21, 2020 at 08:27:28 +0530, KRISHNAKUMAR N K wrote:
> Thanks for your reply. I have uploaded the complete, uncut console output
> to the below google drive. I didn't observe latency with one output. I
> haven't tried a test without the yadif filter.
>
> https://drive.google.com/file/d/1g9KHOV41BmwEA0X-Urjao7jSQpOmGhfS/view?usp=sharing

Wow, I'm happy that I for once didn't ask you to post to the list.

> From the above logs, I can see "Circular buffer overrun. Surviving due to
> overrun_nonfatal option" for the first time. I have started a new test with
> increasing the fifo_size and without the yadif filter. Please go through
> the above log file and let me know your observation. Thanks in Advance.

What I can see that while your encoding starts in real time, it drops
to slightly below:

frame=1033708 fps= 24 q=33.0 q=37.0 q=24.0 q=31.0 size=N/A time=11:29:08.45 
bitrate=N/A dup=56 drop=0 speed=0.962x

A speed of 0.962x is not enough. You need to reach 1.0x. (You obviously
cannot reach more, because the incoming stream doesn't serve frames at
more than 1.0x.) The encoding began at 1.0x (slightly above, because it
was consuming buffer), but then dropped on overall average.

This explains the delay - ffmpeg is still encoding older stuff from 27
minutes ago! (I'm calculating that 716 minutes have elapsed, but only
689 minutes of material have been encoded.) That would also explain
buffer overruns - ffmpeg is buffering all that input data somewhere,
for later consumption.

(1033708 frames correspond to exactly 11h 29m at 25 fps, so the input
is most likely perfectly constant frame rate. Just to sanity-check the
numbers.)

You need to make your encoding faster. Use a faster CPU, spread it to
more cores. Or improve your encoding options.

First, clean up your options. This from your log:

> Multiple -c, -codec, -acodec, -vcodec, -scodec or -dcodec options specified 
> for stream 0, only the last option '-c:v libx264' will be used.
> Multiple -pix_fmt options specified for stream 0, only the last option 
> '-pix_fmt yuv420p' will be used.
> Multiple -c, -codec, -acodec, -vcodec, -scodec or -dcodec options specified 
> for stream 1, only the last option '-c:a libfdk_aac' will be used.
> Multiple -c, -codec, -acodec, -vcodec, -scodec or -dcodec options specified 
> for stream 2, only the last option '-c:v libx264' will be used.
> Multiple -pix_fmt options specified for stream 2, only the last option 
> '-pix_fmt yuv420p' will be used.
> Multiple -c, -codec, -acodec, -vcodec, -scodec or -dcodec options specified 
> for stream 3, only the last option '-c:a libfdk_aac' will be used.
> Multiple -c, -codec, -acodec, -vcodec, -scodec or -dcodec options specified 
> for stream 4, only the last option '-c:v libx264' will be used.
> Multiple -pix_fmt options specified for stream 4, only the last option 
> '-pix_fmt yuv420p' will be used.
> Multiple -c, -codec, -acodec, -vcodec, -scodec or -dcodec options specified 
> for stream 5, only the last option '-c:a libfdk_aac' will be used.
> Multiple -c, -codec, -acodec, -vcodec, -scodec or -dcodec options specified 
> for stream 6, only the last option '-c:v libx264' will be used.
> Multiple -pix_fmt options specified for stream 6, only the last option 
> '-pix_fmt yuv420p' will be used.
> Multiple -c, -codec, -acodec, -vcodec, -scodec or -dcodec options specified 
> for stream 7, only the last option '-c:a libfdk_aac' will be used.

and make sure that the "-preset fast" option is really applied for all
encodings. (You can check with a higher loglevel, I believe. Or ba
validating the x264 debug output.)

Choose "veryfast" to see if it encodes faster.

Drop one of the four output streams, to see if that reduces CPU load.

Those are the things I can come up with quickly.

Good luck,
tell us how it goes,
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] "documented implicitly" part 2 [was: Re: Problem while converting DNG sequnece to video file]

2020-08-20 Thread Moritz Barsnick
On Thu, Aug 20, 2020 at 12:16:07 -0700, Jim DeLaHunt wrote:
> % ffmpeg -hide_banner -formats
> File formats:
>   D. = Demuxing supported
>   .E = Muxing supported
>   --
>   D  3dostr  3DO STR
> …
>   DE dirac   raw Dirac
>   DE dnxhd   raw DNxHD (SMPTE VC-3)
> …
>   D  tiertexseq  Tiertex Limited SEQ
>   D  tiff_pipe   piped tiff sequence
>   D  tmv 8088flex TMV
> …
>
> % ffmpeg -hide_banner --help demuxer=tiff_pipe
> Demuxer tiff_pipe [piped tiff sequence]:
> tiff demuxer AVOptions:
>    -frame_size        .D force frame size in bytes (from 
> 0 to INT_MAX) (default 0)
>    -framerate  .D set the video framerate 
> (default "25")
>    -pixel_format   .D set video pixel format
>    -video_size     .D set video size
>    -loop      .D force loop over input file 
> sequence (default false)
>
> [Note the absence of any mention of "DNG" in this documentation.]

This is not quite fair. IIUC, DNG is not a format of its own (formats
are the containers), but rather an encoding variant of a codec (TIFF).

The TIFF decoder does detect it, and could likely report "tiff (DNG)"
or something. But it won't be listed as above.

I do agree that it could and perhaps should pop up in the
documentation.

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] SSL/TLS support for proxy CLI

2020-08-20 Thread Moritz Barsnick
On Thu, Aug 20, 2020 at 14:03:11 +0200, Moritz Barsnick wrote:
> Do you have something I can test with? I'm not sure I want to set up a
> squit (or similar) instance, and firewall everything else away, just
> for testing.

I found something to test with, easy to set up: tinyproxy.

And I have provided a fix as a patch to the ffmpeg-devel mailing list:
http://ffmpeg.org/pipermail/ffmpeg-devel/2020-August/268316.html

If you build your own ffmpeg, you can test by applying that patch.

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] Max keyframe Interval parameter: -g vs. -keyint ? Check in in existing MP4?

2020-08-20 Thread Moritz Barsnick
On Thu, Aug 20, 2020 at 13:26:19 +0200, Ben via ffmpeg-user wrote:
> As far as I know there are two different possible parameters for the max 
> keyframe interval:
>
> -g 30
>
> OR
>
> -keyint=30

Please show me an example where you can use the latter.

I can only assume you are passing explicit external codec options via
-x264-params/-x265-params.

> Furthermore I wonder how I can check the max keyframe interval for an already 
> existing MP4 (or AVI) video?

I'm not aware that you could easily do that with ffmpeg. You could
output the picture types frame by frame with ffprobe, and do some
automated counting.

> Ist his possible? how?
  ^^^
My MS Outlook does the same thing, when I write such an English phrase,
and it initially interprets the sentence as German. :-P

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] Latency in UDP to HLS Conversion

2020-08-20 Thread Moritz Barsnick
On Wed, Aug 19, 2020 at 18:57:09 +0530, KRISHNAKUMAR N K wrote:
> Hi Guys
>
> I am converting UDP Input to Live HLS output and pushing the chunks to a
> webdav server. Initial playback works fine, but the playback was delayed by
> almost an hour, when we checked after 15 hours. I can also see that the cpu
> load average is very less.
[...]
> Below is the ffmpeg command that i am using. Any help would be appreciated.

We would appreciate its complete, uncut console output. If it's over,
let's say, 2500 lines, and repetetive in the middle, please post the
first 50 and last 50 lines, and upload the complete output somewhere
else.

> *ffmpeg -i "udp://230.1.1.15:1?fifo_size=1000_nonfatal=1
> "
> -analyzeduration 25M -probesize 50M -threads 0 -vsync 1 -filter_complex
> "[i:0xd49]yadif[vout];[vout]split=4[out0][out1][out2][out3];[out0]setdar=16/9[v0];[out1]setdar=16/9[v1];[out2]setdar=16/9[v2];[out3]setdar=16/9[v3];[i:0xd4a]aresample=async=1:min_hard_comp=0.10:first_pts=0[aout];[aout]asplit=4[a0][a1][a2][a3]"
> \-vcodec libx264 -s:v:0 256x144 -tune film -r:v:0 25 -b:v:0 10
[...]

Does the latency also happen with only one output? Or without yadif
filter?

Thanks,
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] SSL/TLS support for proxy CLI

2020-08-20 Thread Moritz Barsnick
On Wed, Aug 19, 2020 at 17:06:56 +0200, Pan_1337 wrote:
> I would love to patch but I don't know the programming language.

Ah, okay, the text I quoted from you said "if I added CLI support", so
I was assuming "I" meant you, since you wrote it.

If it's just that the command line conveys differently than the
environment variable, I'll have a look it. Good proxy support is nice
to have.

Do you have something I can test with? I'm not sure I want to set up a
squit (or similar) instance, and firewall everything else away, just
for testing.

That named ticket drifted off into a discussion about a segmentation
fault, so I was confused whether it was fixed or could be fixed.

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] libx265 a lot slower

2020-08-19 Thread Moritz Barsnick
On Mon, Aug 17, 2020 at 22:53:12 +0200, Cecil Westerhof wrote:
> Maybe I am just dumb and I use the wrong questions, but when I
> searched I got a lot of hits that explained I needed tot switch
> because the space needed would be halved

Well, if you're driving a compact, and someone writes "you need to
switch to a Jeep, because it can pull your trailer out of the mud", do
you buy a Jeep? ;-)

I'm trying to say: Try to understand the benefits and the
disadvantages, and check against your requirements.

Do you need less space? Are you willing to sacrifice encoding speed? Is
H.265 the right codec for your type of videos? As Mick Finn pointed
out, H.265 is more designed for higher resolutions and bit depths
(IIUC). Can your target players even decode H.265? (Does the Jeep even
fit into your parking spaces? Do your feet reach the pedals?)

There's no matter of "must", "need to" - just of considerations. I
believe whatever you read, implied some other details, or forgot to
tell about them.

BTW, if someone does magic hacking, or even more optimized GPUs emerge,
x265/H.265 *may* become "faster" than x264/H.264. It isn't right now.

> (what is not true, I did see 'only' a 2/3)

It depends on the material. I'm sure there are tons of comparisons out
there.

> and a few explained that you could not use h265
> everywhere, so you should evaluate if it was a good idea to switch.

Absolutely! Even if I could encode my material to H.265, I probably
wouldn't, except when targetting a very specific player (modern smart
phones?). My PVR/STB, my TV, ..., cannot decode it. Possibly even my PC
doesn't have enough compute/GPU power to decode it in full HD.

> In none of the hits I saw anything about a performance hit. Especially
> not a hit up to a factor three.

They should. ;)

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] Compression is a lot smaller

2020-08-19 Thread Moritz Barsnick
On Mon, Aug 17, 2020 at 13:54:33 +0200, Cecil Westerhof wrote:
> > The input doesn't look uncompressed to me.
>
> I do not have much knowledge of video formats, but this was really
> shot with a Sony. Maybe that the Sony compresses the video itself?
> It is a HDR-CX320.

You won't see use of uncompressed video on storage, especially with
modern resolutions and bit-depths. The storage just cannot handle it.

So the recorder has a HW chip which does compression on the fly.

> 454 -> 415
> 503 -> 230
> 490 -> 254
> 462 -> 157
> 497 -> 197
> 454 -> 174

Assuming the camera used the same settings for each recording:
Compression results (size reduction) depend on the content as well. The
Sony may be compressing nearly static videos inefficiently, while
ffmpeg/x264 optimized those well. At the same time, Sony may be
compressing videos with movement, shakiness, or even noise, quite well,
and ffmpeg cannot improve on that.

This is just speculation, but could be an explanation.

It might be interesting to look at the original and resulting
bandwidths as well (i.e. video size in relation to duration).

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] SSL/TLS support for proxy CLI

2020-08-19 Thread Moritz Barsnick
On Tue, Aug 18, 2020 at 22:51:30 +0200, Pan_1337 wrote:
>  Hello, if this is not a problem for you and you find time I would be very
> grateful if I added CLI support for the proxy in ffmpeg.

We would also be grateful if you added it. A patch to the ffmpeg-devel
mailing list would be welcomed.

Regards,
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] UDP NVENC HEVC transcoding#

2020-08-19 Thread Moritz Barsnick
On Mon, Aug 17, 2020 at 11:21:38 -0300, Leonardo Pagotto wrote:
> I'm transcoding/resizing some UDP live streams using CUVID and NVENC. It
> works but I got the feeling could be better, this is the my command line:

What feeling is that? Faster, higher quality, just more efficient?

> ffmpeg -vsync 0 -hwaccel cuvid -c:v h264_cuvid -resize 1280x720
> -drop_second_field 1 -i udp://
> 230.8.0.7:10008?buffer_size=300?fifo_size=100_nonfatal=1
> -crf 30 -c:a -c:v hevc_nvenc -profile:v main -pass 2 -rc vbr -maxrate 3M -f
> mpegts udp://239.210.210.7:1234?pkt_size=1316=10.10.71.55

I don't think this is a working command line.
- "-c:a -c:v hevc_nvenc" is missing something.
- "-pass 2" is for multipass encoding, right? Does that make sense with UDP to
  UDP encoding?

I don't know anything about cuvid on nvenc usage, so I can't actually
help you with that. ;)

(I also recommend chacking out presets before manually tweaking
parameters, unless you already know what you want to achieve.)

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] How to have a secure UDP BroadCast

2020-08-19 Thread Moritz Barsnick
On Wed, Aug 19, 2020 at 11:41:36 +0200, Nicolas George wrote:
> Dennis Mungai (12020-08-19):
> > (b). Capabilities similar to UDP
> >
> > Would be Haivision's SRT, which FFmpeg supports if enabled on build time
> > via --enable-libsrt.
>
> Does SRT support any kind of broadcast, like requested by the original
> question?

The original question mentions "broadcast", but in the sense which we
understand? There's neither "-broadcast" on the command line, nor does
the UDP URI specify a broadcast IPv4 address - it's a unicast command
line.

Perhaps the original poster meant "broadcast" in the sense of
"sending"?

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] does ffmpeg support fdk-aac 2.0.1

2020-08-14 Thread Moritz Barsnick
On Fri, Aug 14, 2020 at 14:09:19 +0800, qw wrote:
> does ffmpeg support fdk-aac 2.0.1?

Yes.

Regards,
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] Loading shared libraries in macOS

2020-08-12 Thread Moritz Barsnick
On Wed, Aug 12, 2020 at 18:01:54 +0300, Aleksid wrote:
> I need to link FFmpeg the shared libraries in my app and also use ffmpeg
> executable. Both programs should link dylibs. So impossible to use static
> linking.

It's not specifically an ffmpeg question, but perhaps your ffmpeg
libav* libraries are the first ones you need to "bundle".

I come from a world of ELF binary format, but I found out that you can
achieve the same thing with Mac OS.

The binary program which references the dynlibs can be provided with a
"run path", usually called RPATH, RUN_PATH, LC_RPATH or the likes,
telling the program loader where to (additionally) search for the
required dependent dynlibs.

On ELF systems, you can provide an RPATH with a literal "$ORIGIN"
component, telling the loader to look into the same directory as the
program. You can set/amend the RPATH during the linking process, or
change it using tools such als "patchelf", "chrpath", or possibly
something from elfutils.

On Mac OS, I figured out that the corresponding command for its binary
format is "install_name_tool". Here's some info explaining its uses:
https://medium.com/@donblas/fun-with-rpath-otool-and-install-name-tool-e3e41ae86172

And a thread touching this is here, with this particular answer:
https://stackoverflow.com/a/44796519

Good luck! (I don't have Mac OS.)

> names? How can I guess about version 4.1, 4.2 or 4.3? If another program
> will rewrite these dylibs, and I'll get an older version of FFmpeg libs?
> It's another kind of dylib hell.

You are supposed to have good control of which programs write stuff
destroying your efforts. ;-)

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] dshow questions

2020-08-08 Thread Moritz Barsnick
On Sat, Aug 08, 2020 at 11:23:28 +0200, Michael Koch wrote:
> ffmpeg -f dshow -video_size 1280x720 -framerate 15 -vcodec mjpeg -i
> video="Integrated Camera" out.avi
>
> Is -vcodec in this case an undocumented option of the dshow input
> device? I ask because it's written before -i.
> Or is it an option for the output, and could (or should?) be written
> before the output file?

As other documentation indicates, "-c" ("-codec", -"vcodec") can be
either an input or an output option. As an input option, it either
tells ffmpeg which codec an input has, or in this case, it also tells
the input device which codec to choose (i.e. emit).

> Question 2:
> I have this HDMI to USB converter (which is working very good, by the way):
> https://www.ebay.de/itm/1080P-HDMI-Videoaufnahme-Video-Capture-Card-Grabber-USB2-0-Recorder-Adapter/293641909414
[...]
> [dshow @ 00374800]   pixel_format=yuyv422  min s=640x480 fps=5 max 
> s=640x480 fps=30
> [dshow @ 00374800]   pixel_format=yuyv422  min s=640x480 fps=5 max 
> s=640x480 fps=30
> video=USB Video: Immediate exit requested
>
> Why is each line listed twice? Might there be a difference between the
> lines, but FFmpeg can't show what the difference is?

I can't help you with this, sorry.

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] Compatibility of FFMPEG builds

2020-08-08 Thread Moritz Barsnick
On Fri, Aug 07, 2020 at 22:47:10 +0300, scrutinizer wrote:
> Yes, I was talking about macOS 10.7, and even the source code needs
> to be compatible.

ffmpeg's source code is extremely compatible, honestly. They go to long
efforts not to depend on modern compiler or system features.

> Every link I ran across on FFMPEG.ORG  will
> direct to the source code that would require at least macOS 10.9

Where? On the download page with the sources, no restriction whatsoever
is mentionend.

, but even with the long list of the links
> to source code it’s difficult to pick one rather than downloading
> from every provided link.

Pardon?

http://ffmpeg.org/
->
http://ffmpeg.org/download.html
right column "Get the Sources"
"Download snapshot", alternatively "git Snapshot".

Assuming you have a compiler (Xcode?), you just unpack the sources,
change into the source directory, and run

./configure
make

which should give you an ffmpeg in the same directory. Possibly without
external dependencies, which may or may not be sufficient.

Furthermore, there's a wiki page giving you several other options on
building your own ffmpeg, incl. more external dependencies:
https://trac.ffmpeg.org/wiki/CompilationGuide/macOS

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] options of vidstabdetect video filter

2020-08-07 Thread Moritz Barsnick
On Fri, Aug 07, 2020 at 17:16:24 +0200, PPRJ01 wrote:
> Is there a maximum value for the "stepsize" option of vidstabdetect ? I don't 
> see any in the documentation.

If it's not in the documentation (it should be), you can query all
ranges with a command such as
$ ffmpeg -h filter=vidstabdetect

ffmpeg allows a maximum of 32.

> ffmpeg -i "INPUT.mp4" -an -vf 
> vidstabdetect=shakiness=10:accuracy=15:stepsize=6:result="TRF06.txt" 
> "dummy.mp4"
[...]
> ffmpeg -i "INPUT.mp4" -an -vf 
> vidstabdetect=shakiness=10:accuracy=15:stepsize=32:result="TRF32.txt" 
> "dummy.mp4"

> In both cases ffmpeg says that the parsed value is 6 and the two output 
> TRF*.txt files are identical.

I can see that vid.stab's source code has a limitation:
If accuracy is larger than 9, step size is automatically reduced to 6.

That would explain your observation. Actually, the vid.stab library
even emits a message explaining this. So please always do have a look
at ffmpeg's console messages:

[vidstabdetect @ 0xbffe58a0] Multitheading: use 1 threads
[vidstabdetect @ 0xbffe58a0] For high accuracy use lower stepsize  -- set to 6 
nowFieldsize: 32, Maximal translation: 34 pixel
[vidstabdetect @ 0xbffe5840] Number of used measurement fields: 24 out of 24
[vidstabdetect @ 0xbffe5840] Fieldsize: 16, Maximal translation: 16 pixel
[vidstabdetect @ 0xbffe5840] Number of used measurement fields: 40 out of 40

Note how it's hidden a bit due to a missing line break:
For high accuracy use lower stepsize  -- set to 6 now

Reducing your accuracy to nine should result in changing behavior.

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] Compatibility of FFMPEG builds

2020-08-07 Thread Moritz Barsnick
On Fri, Aug 07, 2020 at 20:27:10 +0300, Ilja wrote:
> I want to install ffmpeg on one of my older machines with 10.7.

10.7 of what?

> What is the latest compatible build and where's the downloadable link?

Since I don't know which operating system or distribution is meant, I
can't help you. In general, you can build ffmpeg from source even on
very old, obsoleted operating systems and Linux distributions. For not
so old ones, there may or may not exist pre-build binaries.

If 10.7 is a Mac OS X version (I'm guessing here):
The binaries linked from the ffmpeg website won't work.
This requires 10.9: https://evermeet.cx/ffmpeg/#remarks
This requires 10.10: https://ffmpeg.zeranoe.com/builds/

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] DASH and Variable framerate

2020-08-07 Thread Moritz Barsnick
On Thu, Aug 06, 2020 at 15:00:55 +0200, Alfred E. Heggestad wrote:
> I am wondering if DASH muxer supports variable framerate.
[...]
> What I have seen is that DASH and HLS behaves differently
> regarding variable framerate input.
>muxer:   format:   audio delay:
>
>DASH:m4s   yes
>DASH w HLS playlist: m4s   yes
>HLS muxer:   mpegtsno

I suspect this is due to the fact that ffmpeg does not handle variable
framerate in MOV/MP4 well (which m4s is a variant of, IIUC).

> in m4s the audio and video track is stored in separate .m4s files.
> after some time they become out of sync.

I don't think the separate files are the issue. HLS can also separate
video and audio into separate files, as far as I remember.

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 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".

Re: [FFmpeg-user] Is time-stamping report lines possible?

2020-07-17 Thread Moritz Barsnick
On Fri, Jul 17, 2020 at 18:06:00 +, Vladimir Grishchenko wrote:
> Can't seem to find a way to add timestamps to lines printed to the
> debug report. It appears there has been some work done to support
> this but it is unclear how to enable it. Using ffmpeg version 4.2.1.

No, there's no such feature included yet.

> https://patchwork.ffmpeg.org/project/ffmpeg/patch/20170602162632.1888-1-lingjiujia...@gmail.com/#12472

A newer, better patch was submitted, but never completed during review:
https://patchwork.ffmpeg.org/project/ffmpeg/patch/mn2pr13mb27524db8a461b08f45729b87ba...@mn2pr13mb2752.namprd13.prod.outlook.com/

Unfortunately, the submitter seems to have lost interested, and the
feature never made it into ffmpeg. If you build your own, you can apply
that patch. I do it in my builds, and it works for me.

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] How do I increase the playback size of a video without rescaling it?

2020-07-16 Thread Moritz Barsnick
On Thu, Jul 16, 2020 at 12:39:03 -0500, fowman wrote:
> Just this, but then it's the only one I have :-)

It can't be that difficult to find other 1280x720 recodings, can it? Or
to create your own?

> Here is ffprobe info:
>
> Original .ts file recorded by my Humax:
> Stream #0:0[0x931]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
> yuv420p(tv), 704x576 [SAR 16:11 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr,
> 90k tbn, 50 tbc
>
> 1280x720 .mp4 exported from OpenShot:
> Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720,
> 14925 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)

That doesn't tell me whether the content includes boxes. Unless you run
it through the cropdetect filter.

> I realise that the original .ts video is actually letterboxed, although the
> vertical side bars are pretty narrow. I've always assumed that letterboxing
> referred to the top and bottom horizontal bars and was just a side effect of
> playing a widescreen movie in a 16:9 or 4:3 display.

I'm not referring to a side effect. I meant true black "boxes" or
borders, included in the encoded frames.

What often used to happen was that (true) 16:9 content was amended with
bars to make it 4:3. If you then play that (4:3 enconding) fullscreen
on a 16:9 screen, you will have the explicit top/bottom bars, and newly
introduced left/right bars, to fill the encoded 4:3 back up to 16:9,
instead of snipping something away, obviously. In total, this would
give you a big box around your content, despite full screen.

In your case, there might be a big box there (which we could see if we
saw the actual viedo), or said "clean-aperture" (CLAP) marking, which
could have funny effects. Come to think of it, those effects should be
opposite, i.e. the clean aperture should enforce cropping of
non-displayable segments.

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] How do I increase the playback size of a video without rescaling it?

2020-07-16 Thread Moritz Barsnick
On Thu, Jul 16, 2020 at 09:20:31 -0400, Edward Park wrote:
> I don't know if they are not used in all players but MP4 file format
> can contain the "clean-aperture" region info as well as matrices to
> specify sample transformations before the presentation should be
> displayed by default.

Ah, interesting. At the same time, VLC's trac ticket system indicates
that this has not been implemented in VLC. (ffmpeg doesn't tell me
about this, while mediainfo shows both dimensions.) [*]

I stand with my remarks:
> > With every 1280x720 video? Or just this one?
> [...]
> > If you can share, we could tell.

Moritz


[*]
https://trac.videolan.org/vlc/ticket/21179
https://streams.videolan.org/issues/21179/clap.mov
___
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] How do I increase the playback size of a video without rescaling it?

2020-07-16 Thread Moritz Barsnick
On Thu, Jul 16, 2020 at 07:22:39 -0500, fowman wrote:
> No, I have the same on all three.

Ah, okay. *All* you players are able to scale the 720x576 video to
fullscreen (automatically?), and *NONE* of them manages that with the
1280x720 video? That seems very unlikely. With every 1280x720 video? Or
just this one?

I'm guessing the latter video is letterboxed, i.e. a large black box
around it is encoded in the video. If you can share, we could tell.

If not, I know of no such property which would prevent such a video
from being scaled. Generally speaking, all these players should somehow
decode into a framebuffer, and then scale that, regardless of what the
original video file says.

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] How do I increase the playback size of a video without rescaling it?

2020-07-16 Thread Moritz Barsnick
On Thu, Jul 16, 2020 at 06:55:55 -0500, fowman wrote:
> VLC and Xplayer are playing to my computer screen, and the PS/3 to my TV, so
> no, not the same.

Only the PS/3 is the issue, right?

> With the small mp4 (1280x720) playing through the PS/3, I can change the TV
> display settings with "stretch" or "best fit" etc options to make the
> picture bigger, but with the normal settings it's just a rectangle that
> doesn't fill the screen. The TV is full HD 1080p.
>
> Are you suggesting that the players may up-scale automatically under certain
> circumstances? I can see how that's possible, but if so, are these
> circumstances "standard" so that the players all behave in the same way, and
> could I know what they are so I can engineer a predictable result?

This is only an issue between your player and your screen, from all I
have read here. If their configurations don't match, you won't get a
full-screen display. This has nothing to do with any "settings" or
metadata in the video file.

Here are the PS/3 settings for upscaling, if you TV doesn't manage:
Games:
https://manuals.playstation.net/document/en/ps3/current/settings/gamesettings.html
DVD/BD:
https://manuals.playstation.net/document/en/ps3/3_15/settings/bdsettings.html

I can't find any settings for the video player, but it should have some
as well, or one of the above might apply?

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] New VVC codec issues

2020-07-16 Thread Moritz Barsnick
On Thu, Jul 16, 2020 at 10:02:17 +0200, Moritz Barsnick wrote:
> ffmpeg doesn't have support for that yet. Patch welcome. Perhaps if the
> MPEG consortium could provide a free, open reference decoder
> implementation? Just dreaming...

My bad, that Reddit does point to the Fraunhofer implementation, which
is under a BSD license (but still would need to be evaluated whether it
is "free" in ffmpeg's terms).

Anyway, still no support in ffmpeg yet. ;-) I'll have a look whether I
can manage to use the Fraunhofer tools on those files, and whether I
can convice ffmpeg to export the raw stream:

> The FFmpeg does not recognize the stream, even when i use the
> copy_unknown command it does nothing and also asks for an output
> container format ( i want the raw stream on a .bin file).

Probably with "-map 0:s -c:s copy -f rawvideo output.bin", assuming
it's recognized as a data stream(?). I will try myself. Please always
show us the command line you tried and its complete uncut console
output.

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] New VVC codec issues

2020-07-16 Thread Moritz Barsnick
On Thu, Jul 16, 2020 at 09:45:56 +0200, Moritz Barsnick wrote:
> Hi Deian,
[...]
> Is it this thread?
> https://www.reddit.com/r/VVC/comments/hputue/no_way_found_to_play_vvc_files/
>
> Kindly describe your problem directly here.

Ah, is VCC identical with H.266? Yet another patent encumbered next
generation codec with the same issues as H.265, trying to compete with
VP10 and AV1 and AV2.

ffmpeg doesn't have support for that yet. Patch welcome. Perhaps if the
MPEG consortium could provide a free, open reference decoder
implementation? Just dreaming...

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] New VVC codec issues

2020-07-16 Thread Moritz Barsnick
Hi Deian,

On Thu, Jul 16, 2020 at 07:16:08 +, FFmpeg user discussions wrote:
> Hi !
> I have some VVC (versatile video codec) files and wanted to run some tests to 
> see how much computational power is needed to decode them. The FFmpeg does 
> not recognize the stream, even when i use the copy_unknown command it does 
> nothing and also asks for an output container format ( i want the raw stream 
> on a .bin file). The issue is discussed here :
> r/VVC - No way found to play vvc files

We can't really read your e-mail. Here's how wo see it on the list:
http://ffmpeg.org/pipermail/ffmpeg-user/2020-July/049381.html

Is it this thread?
https://www.reddit.com/r/VVC/comments/hputue/no_way_found_to_play_vvc_files/

Kindly describe your problem directly here.

Thanks,
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] Causes of color bars?

2020-07-14 Thread Moritz Barsnick
On Tue, Jul 14, 2020 at 15:50:55 -0600, Simon Roberts wrote:
> On Tue, Jul 14, 2020 at 1:29 AM Carl Zwanzig  wrote:
>
> > Decklink boards are _very_ touchy about formats and parameters. Try setting
> > at least the resolution and frame rate on the input and see if that helps.
> >
> > I don't guarantee these, but it's a start:
> > -f decklink -pix_fmt uyvy422 -s 720x486 -r 3/1001 "DeckLink SDI 4K"

I'm certain there's an "-i" missing before "DeckLink SDI 4K".

> - it says there's no such option as -r, but if I change it to
> -framerate, that part is happy in ffplay, but still doesn't work in ffmpeg
> - ffplay it says -s and -pix_fmt are deprecated and should be
> -video_size and -pixel_format respectively. However, those options are not 
> offered at all in ffmpeg

This indicates that your version of ffmpeg is not in line with your
version of ffplay. Are you sure you are calling the correct executable,
and not an older binary in your PATH?

> - but the kicker is that after those reports both ffplay and ffmpeg
> say "option pixel_format not found" and crash out.

If you show us the exact command line and its *complete* console
output, we can help you with this (even those of us who don't know
Decklink and its quirks).

> Are these options specific to individual "-f" types? That is, is there
> a chance that I need something specific (or worse, not offered by)
> decklink?

At this point, probably not.

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] write output of find_rect to a file?

2020-07-12 Thread Moritz Barsnick
On Sat, Jul 11, 2020 at 14:52:43 -0700, Hans Carlson wrote:
> > The above command works fine, but is it possible to print the number of
> > the frame instead of the timestamp?
> I might be wrong, but I believe you need to infer the frame number based
> on where it appears in the output.  Given your example, with "frame"
> section and "csv" output, the 1st line is the 1st frame, the 2nd line is
> the 2nd frame, etc.

I agree with this. ffprobe doesn't do the counting for you. (I'm not
saying I believe or don't believe it could or should.)

> > I did search the documentation for a list of variables, but didn't find
> > any. Also "pkt_pts_time" seems to be undocumented.
>
> I've never found any documentation for this either.  The closest is the
> output of "ffprobe -sections", but that only lists the possible
> "sections", not the "entries" within each section.

The XML output format has a proper XML schema file ffprobe.xsd, which
describes the fields and the hierarchy. It's installed under
$prefix/share/ffmpeg/ffprobe.xsd, and in the ffmpeg source tree, it's
under doc/ffprobe.xsd. The JSON output should align with that (but
formatted as JSON), I don't know about the CSV output.

Regarding what pkt_pts_time represents or how it is calculated, you
would have to look it up in the source, if it isn't documented
anywhere. (Help in improving the documentation is always welcome,
either as a patch, or as a modification of the wiki.)

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] Virtual camera

2020-07-10 Thread Moritz Barsnick
On Thu, Jul 09, 2020 at 13:38:27 +0100, Simon Brown wrote:
> I was wondering if there is any way to use FFmpeg to create a virtual
> camera for a PC/Mac from an H264 stream source.  I know FFmpeg can use
> directshow as an input device.

On Linux, the v4l2loopback device can be used to do this, I have had
success with this. I have also read of akvcam, but not tested it.

The latter is a project by webcamoid, which is also implemented for Mac
and Windows. Perhaps it's worth looking what technology they use on
those two platforms, as those were the ones you named. Under Windows
it's probably a DirectShow filter.

If you use webcamoid directly, it's no longer ffmpeg though:
https://github.com/webcamoid/webcamoid/wiki/Virtual-camera-support

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] Compiling on an aarch64 machine

2020-07-09 Thread Moritz Barsnick
On Thu, Jul 09, 2020 at 10:16:29 +0200, Verachten Bruno wrote:
> The fact that FFMpeg does not compile without this trick of exporting an
> empty CFLAGS variable on aarch64 there: https://trac.ffmpeg.org/ .
> If you consider this is not a bug, that's perfect for me, but in my point
> of view, that should be written somewhere... If not in FFMpeg
> documentation, I'll write it down in a blog post.

Any autotools (autoconf/configure) based tool will also take a CFLAGS
environment into consideration. Those tools will also likely not build
with your environment. Good luck opening 300,000[*] bug tickets. ;-)
(Note: ffmpeg is not autoconf based.)

Why would you even export this variable, if your compiler doesn't
support it?

Moritz

[*] Wild guesstimate.
___
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] How to download encrypted m3u8 providing the key?

2020-07-07 Thread Moritz Barsnick
On Tue, Jul 07, 2020 at 17:56:57 -0300, Matheus Silva wrote:
> but it is strange that ffmpeg does not provide a easy way to set/replace
> the decryption key on the command line

Perhaps it does, but I couldn't figure out whether, and if so, which of
the many key options might apply.

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] How to download encrypted m3u8 providing the key?

2020-07-07 Thread Moritz Barsnick
Hi Matheus,

On Tue, Jul 07, 2020 at 14:45:08 -0300, Matheus Silva wrote:
> Guys, how can I download from an encrypted m3u8 but that the key's URI is
> no longer available? Obviously I downloaded the key previously, a 16 byte
> file (that I get the hex string using "xxd -p"), I tried the following
> using the cryptokey parameter but ffmpeg keeps trying to do the decryption
> using the key URI provided in the m3u8 file. https://pastebin.com/SNA0CAJ2

I'm not sure you can override the key URI given by the HLS (m3u8). What
you should be able to do is to download the m3u8, replace all the
"URI=" in each "EXT-X-KEY:" line, retaining the "IV=", and expanding
each segment to a full path, from e.g.
k0_chunk_1594093207765475768_0_a.ts
to
https://prod-ec-sa-east-1.video.periscope.tv/Transcoding/v1/hls/TZPcueFo9ipbNHlYV8n1AMloI1ea7i-9j4o5BqRsDYGuuqxctEEZEvDHDZbpcVLgY1V0M9kLLIi5QeOlp3q8qA/non_transcode/sa-east-1/periscope-replay-direct-prod-sa-east-1-private/k0_chunk_1594093207765475768_0_a.ts

Then use the local m3u8 file as ffmpeg's input.

You may need some protocol whitelist or some "safe" flag on the ffmpeg
command line, in order to be able to load content from file and
network, but ffmpeg will probably tell you so.

Good luck. I'm too lazy to convert your hex command line key argument
back to a key file in order to test. ;-)

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] MP4 to IFF (ILBM) frames export for Amiga

2020-07-06 Thread Moritz Barsnick
Hi Benoit,

On Mon, Jul 06, 2020 at 11:12:47 -0400, Benoit Deschenes wrote:
> Hi, I try to find a way to convert .mp4 videos  to IFF (ILBM) frames.

Funny you should ask. The same question was just asked yesterday. Is
this a new and merging format? ;-)

http://ffmpeg.org/pipermail/ffmpeg-user/2020-July/049285.html

> I know there is a IFF muxer on ffmpeg but i do not know the usage and if it
> will do the job.

No, there's only a demuxer for IFF and a decoder for ILBM. There's no
support for writing this format.

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] Amiga IFF ILBM image format support

2020-07-06 Thread Moritz Barsnick
On Mon, Jul 06, 2020 at 03:38:40 -0500, muadib3D wrote:
> ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg 
> developers

(This version is quite old, but that's not the point.)

> [NULL @ 0x559285cf8d80] Unable to find a suitable output format for
> 'Output_med.iff'
> Output_med.iff: Invalid argument

ffmpeg indeed doesn't support muxing to the IFF format, nor encoding to
ILBM.

A feature request for this already exists, but noone seems to have
contributed code yet:
https://trac.ffmpeg.org/ticket/1048

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] concat mp4 text list input and wav text list input into one video/audio file?

2020-07-04 Thread Moritz Barsnick
On Sat, Jul 04, 2020 at 12:48:09 +, Ram Shaffir wrote:
> A necessary tweak for this task is to move the audio 1.5 seconds forward; I 
> added '-itsoffset 1.5' before the audio input:
[...]
> But it doesn't seem to affect the output.

You may want to instead try using "-ss 1.5" in front of one of the two
inputs.

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] concat mp4 text list input and wav text list input into one video/audio file?

2020-07-04 Thread Moritz Barsnick
Hi Ram,

On Fri, Jul 03, 2020 at 12:55:00 +, Ram Shaffir wrote:
> ffmpeg -y -f concat -safe 0 -i /usr/ramDisk/video_list.txt -c copy -acodec 
> copy -movflags +faststart /usr/ramDisk/merged.mp4
[...]
> how can I concat the mp4 files with the wav files using their txt files as -i 
> inputs to one video ‘merged.mp4’?

BY adding a second input with the audio:
$ ffmpeg -y -f concat -safe 0 -i /usr/ramDisk/video_list.txt -f concat -safe 0 
-i /usr/ramDisk/audio_list.txt -map 0 -map 1 -c copy -movflags +faststart 
/usr/ramDisk/merged.mp4

("-map 0 -map 1" might not be needed, because each input provides
exactly only one video and one audio stream.)

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] Low CPU HQ format for local streaming?

2020-06-30 Thread Moritz Barsnick
Hi Simon,
in addition to what Carl Eugen wrote:

On Tue, Jun 30, 2020 at 10:21:52 -0600, Simon Roberts wrote:
> I need to find an encoding, and presumably a file type, that a) works in a
> streaming format, and b) is as low CPU usage as possible. I don't believe I
> care about bandwidth, this is just shipped from one process to another and
> consumed in real time.
>
> I tried using rawvideo, but it crashes out. To distinguish the encoding
> side from the decoding side, I used this command line:
>
> ffmpeg -i capture-4chan.mov -c:v rawvideo -f mpegts - | cat /dev/null
>
> and these appear to be the lines of interest from the output (though I
> suspect it's simply that rawvideo doesn't have markers in it that allow a
> receiver to know what the heck it's looking at?)

If the container has information about the rawvideo, the receiver
should be able to play it.

> [mpegts @ 0x55f18d555440] Stream 0, codec rawvideo, is muxed as a private
> data stream and may not be recognized upon reading.
> av_interleaved_write_frame(): Broken pipe
> Error writing trailer of pipe:: Broken pipe

That happens because rawvideo is not a supported video codec in
MPEG-TS.

> I also tried using "copy" codec, that is in effect just sending the
> prores across the pipe, like this:
>
> ffmpeg -i capture-4chan.mov -c:v copy -c:a copy -f mpegts - | ffplay
> -analyzeduration 10 -f mpegts -
>
> But that complained too:
> [mpegts @ 0x5604ba2e85c0] Stream 0, codec prores, is muxed as a private
> data stream and may not be recognized upon reading.
> [mpegts @ 0x5604ba2e85c0] Stream 1, codec pcm_s16le, is muxed as a private
> data stream and may not be recognized upon reading.

And apparently neither are prores nor PCM audio supported codecs.

If you stream from ffmpeg to ffplay, the "nut" format may be a choice
for you. It streams well, and it handles rawvideo as well as prores and
PCM audio (I just tested with all of these).

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] Different MD5 hashes for identical tracks

2020-06-30 Thread Moritz Barsnick
On Tue, Jun 30, 2020 at 19:31:24 +0300, raistlin.mli...@yandex.ru wrote:
> There are 2 sample m2ts files (about 84 MB each):
> https://mir.cr/0Y8ROTYT (1)
> https://mir.cr/RFI1MNOM (2)
>
> Stream a:5 in (1) and stream a:4 in (2) are identical (being binary
> compared). Though ffmpeg reports they have different MD5 hashes:
>
> ffmpeg -loglevel 4 -i 1.m2ts -map 0:a:5 -codec copy -f md5 -
> MD5=cee9775826b81d395c7d012e69309270

Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p(tv, 
bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k 
tbn, 47.95 tbc
Stream #0:1[0x1100](rus): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 
5.1(side), fltp, 384 kb/s
Stream #0:2[0x1101](rus): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 
5.1(side), fltp, 448 kb/s
Stream #0:3[0x1102](rus): Audio: dts (DTS) ([130][0][0][0] / 0x0082), 48000 
Hz, 5.1(side), fltp, 1536 kb/s
Stream #0:4[0x1103](eng): Audio: truehd (AC-3 / 0x332D4341), 48000 Hz, 
5.1(side), s32 (24 bit)
Stream #0:5[0x1103]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), 
fltp, 640 kb/s
Stream #0:6[0x1104](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, 
fltp, 192 kb/s

> ffmpeg -loglevel 4 -i 0.m2ts  -map 0:a:4 -codec copy -f md5 -
> MD5=32ccb6d7af46bfdd2100cd68c7622171

Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p(tv, 
bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k 
tbn, 47.95 tbc
Stream #0:1[0x1100](eng): Audio: truehd (AC-3 / 0x332D4341), 48000 Hz, 
5.1(side), s32 (24 bit)
Stream #0:2[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), 
fltp, 640 kb/s
Stream #0:3[0x1101](rus): Audio: dts (DTS) ([130][0][0][0] / 0x0082), 48000 
Hz, 5.1(side), fltp, 1536 kb/s
Stream #0:4[0x1102](rus): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 
5.1(side), fltp, 640 kb/s
Stream #0:5[0x1103](ukr): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, 
fltp, 448 kb/s

192 kb/s stereo vs. 448 kb/s stereo.
They can't be identical, can they?

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] write output of find_rect to a file?

2020-06-29 Thread Moritz Barsnick
On Mon, Jun 29, 2020 at 17:35:50 +0200, Michael Koch wrote:
> Very good, that's exactly what I need. I did already make some tests
> with -show_entries before I posted this question. But I didn't know the
> names of the variables "lavfi.rect.x" and "lavfi.rect.y". Are these
> variables documented somewhere?

Good point. It's not in the documentation, I got this from the source.
Apparently, the filter was designed mainly for use with another filter.

> Is there also a variable for the quality of the find_rect result, I
> mean the number that's compared against the detection threshold?

No, that value is not exposed.

(You could try modifying the source yourself, or, if you make a very
good point about it, make a feature request.)

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] RTMP and proxy

2020-06-29 Thread Moritz Barsnick
On Mon, Jun 29, 2020 at 19:23:25 +0200, Verachten Bruno wrote:
> I'm trying to get ffmpeg to use a proxy. Here is my command:
>  ffmpeg -http_proxy "http://192.168.0.217:3128/; -i sample.h264 -c:v
> copy -c:a copy -f flv "rtmp://live-cdg.twitch.tv/app/live_toto"
> -loglevel debug
> Option http_proxy not found.
>
> Why do I get "option http_proxy not found"?

Because you specified it as an option for the input file.

I assume you will get the same error, though, when you "correctly"
place the option before your output URI, because RTMP does not support
this option either. As far as I understand, RTMP is nothing like HTTP,
so an HTTP proxy would be of no use.

Apparently, RTMPT is the protocol that was made for encapsulating RTMP
in HTTP, but then twitch would have to support that too, in order for
it to work for you.

(If you are in an environment with an HTTP proxy but no SOCKS proxy,
and no direct internet access, then this is exactly the sort of thing
they are trying to prevent you doing.)

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] Encoding Warnings

2020-06-29 Thread Moritz Barsnick
On Mon, Jun 29, 2020 at 17:18:51 +0200, Moritz Barsnick wrote:
> $ ffmpeg -i INPUT -map 0:a -af volumedetect -f null -
>
> and will find the absolute maximum of the first audio channel.

I meant: of the first audio *stream*. Sorry.

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] Encoding Warnings

2020-06-29 Thread Moritz Barsnick
On Mon, Jun 29, 2020 at 10:44:04 -0400, Jim wrote:
> AFAIK, ffmpeg does not have the ability to analyze the volume of every
> sample throughout an audio file, find the greatest amplitude, calculate
> the adjustment needed to make the loudest part of the file the maximum,

It does.

> and then apply that scaled volume adjustment to the entire file.

This makes this a two-pass operation, which your external tool probably
also does. ffmpeg can analyze first:

$ ffmpeg -i INPUT -map 0:a -af volumedetect -f null -

and will find the absolute maximum of the first audio channel. Take the
max value from the log (something like "max_volume: -18.1 dB"[*]), and
use that value for an additionally inserted "volume" audio filter in
your conversion.

$ ffmpeg -i INPUT [...] -af volume="18.1 dB",otherfilters OUTPUT

You thus only have an additional input analysis step.

[*] Documentation says this will not cause any clipping, though I don't
know what the behaviour is, if the volume is massively different across
channels. I *believe* the maximum is safe to use (while the average is
also an average across channels, by some kind of mixdown).

> same question in my searching for a solution to this same message - this
> is the first time I've read this.

(I personally find this confusing as well.)

> (Assuming I don't run into anything weird when processing different
> video formats in the future of course. ;) )  I'm happy, happy, happy
> about that! :) :) :)

We like happy people. :-)

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] write output of find_rect to a file?

2020-06-29 Thread Moritz Barsnick
Hi Michael,

On Mon, Jun 29, 2020 at 13:24:30 +0200, Michael Koch wrote:
> Hello,
>
> I want to track an object and need the x,y coordinates of this object
> for each frame.
> Is it possible to write the output of the find_rect filter to a file?

I don't have any good command line for find_rect handy, but it should
work with something like this (untested, of course):

$ ffprobe -f lavfi -i movie=input.mp4,find_rect=options -show_entries 
frame=pkt_pts_time:frame_tags=lavfi.rect.w,lavfi.rect.h,lavfi.rect.x,lavfi.rect.y
 -of csv

In other words, let ffprobe show you each frame's metadata.

You can redirect this output, or have the logging write a report file.

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] extract first 26 seconds not workings as expected

2020-06-29 Thread Moritz Barsnick
On Sun, Jun 28, 2020 at 18:31:15 +, Leonardo via ffmpeg-user wrote:
> $ ffmpeg -i main.mp4 -ss 00:00:00.00 -t 00:00:26.00 -c copy part1.mp4
[...]
> frame=  322 fps=0.0 q=-1.0 Lsize= 523kB time=00:00:25.95 bitrate= 
> 165.2kbits/s speed=8.19e+03x    
> video:519kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB 
> muxing overhead: 0.881877%

322 frames at 23.8 fps looks suspiciously like 13.5 seconds.

> However, file part1.mp4 has only 13 seconds!
>   Duration: 00:00:13.42, start: 12.666016, bitrate: 319 kb/s

13.42 + 12.66 is approximately 25.

So my guess is that your input file's first keyframe is at 12.66
seconds, and ffmpeg refuses to copy the frames before that one.

You may want to try the option "-copyinkf" ("copy initial
non-keyframes") when using "-c copy".

> Also, how can I cut one part that begins at 00:01:00 and ends at 00:02:16 ?

How about "-ss 00:01:00 -t 1:16"? (I'm also not sure how this behaves
without keyframes, and whether that segment will ever be playable.)

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] What version of ffmpeg is compatible with libvpx 1.5.0?

2020-06-29 Thread Moritz Barsnick
On Sun, Jun 28, 2020 at 22:40:39 -0300, CESAR MURILO DA SILVA JUNIOR wrote:
> I use OS Slackware 14.2, and for it there is libvpx 1.5.0. Which version of
> ffmpeg is supported?

ffmpeg has supported libvpx 1.5.0 for a very long time, and still does.

> I currently have ffmpeg 3.2.4 and wanted to record
> video with the simplescreenrecorder version 0.4.2, but says that the
> library is not compatible with the codec.

Who says that, and what does it say?

ffmpeg needs to be compiled with support for libvpx. Perhaps yours
isn't, but I cannot guess without more detail.

If simplescreenrecorder uses the same ffmpeg libraries as your ffmpeg
command line tool, you can check with
$ ffmpeg -codecs
and check whether libvpx is listed.

(ffmpeg 3.2.4 is very old. If simplescreenrecorder supports anything
recent, please try to use a new version of ffmpeg.)

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] Fwd: OBS and OBS Portable Recording Into Same File Simultaneously

2020-06-26 Thread Moritz Barsnick
On Wed, Jun 24, 2020 at 10:59:51 -0400, David Bayles wrote:
> In OBS and OBS Portable, my video technician had the save location set to
> the same exact folder (this was not how I intended it to be, but he made a
> last minute change to accomadate what he suspected was a faulty hard
> drive). We also had a hotkey to start recording on both apps
> simultaneously. We left the auto naming scheme in place for both instances
> of OBS since they were supposed to be saving to two totally different
> external hard drives (we have since changed this). This perfect storm
> resulted in both recordings being written into a single file (see link
> above), instead of two files as intended. It is unplayabe in VLC.

Assuming that both programs appended to the file (and didn't overwrite
each other at the same file position), you would have double the data,
interleaved on operating system / file system level.

To properly disassemble at least one of the two halves, you would
probably need to operate of block level, understanding how large the
blocks were, and trying to fiddle out the ones from the one program and
the ones from the other, while making sense to a decoder.

I consider that ffmpeg gives you some results at all a coincidence - it
could just as well we confused at the first inconsistency. (I assume
Matroska allows for some of this recovery.

I do understand that you would like to use ffmpeg to re-assemble the
original video, especially as extracting audio looks somehwat
promising. Yet the video's block sizes will not correspond to the file
system's block sizes, and ffmpeg will keep encountering inconcistencies
to the point of giving up, unless you take away the conflicting
segments.

> My life would saved if there is a way to extract good video/audio from this
> corrupted file. Any help would be greatly appreciated, thanks in advance!

You could try to observe at which point ffmpeg detects the first errors
(the showinfo filter will indicate the byte position ffmpeg is
operating on), and from there remove blocks of 512, 1024, 2048 bytes,
hoping that after removal of some of them, you hit a proper block
again, and ffmpeg will no longer "lose sync" at that point, until again
a later point in the file.

Just a wild suggestion.

Oh, and if the two OBS overwrote each other's data, I'm pretty sure
you're lost.

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] Capture multiple streams into same container?

2020-06-24 Thread Moritz Barsnick
On Tue, Jun 23, 2020 at 21:31:25 -0600, Simon Roberts wrote:
> But I have no clue how to start with this. I tried simply adding more input
> channels to my input specifications:
>
> ffmpeg -f decklink -i 'DeckLink Quad HDMI Recorder (1)' -f decklink -i
> 'DeckLink Quad HDMI Recorder (4)'  -c:v copy -c:a copy -metadata
> title=DeckLinkCapture  capture.mov

By default, ffmpeg only maps one of each stream type (video, audio,
subs), as described here:
https://ffmpeg.org/ffmpeg.html#Automatic-stream-selection

In your case, you need to explicitly map multiple inputs:

$ ffmpeg -f decklink -i 'DeckLink Quad HDMI Recorder (1)' -f decklink -i 
'DeckLink Quad HDMI Recorder (4)' -map 0 -map 1 -c:v copy -c:a copy -metadata 
title=DeckLinkCapture capture.mov

(Note the "-map 0 -map 1" addition.)

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] Update ffmpeg

2020-06-22 Thread Moritz Barsnick
On Mon, Jun 22, 2020 at 10:35:18 +0200, Lhuillier Sébastien wrote:
> I have a PC specifically dedicated to FFMPEG and video editing under debian
> 9.12.
> I would like to update FFMPEG (my version used is 3.2.14-1~deb9u1.
> The proposed packages do not have the new version 4 of ffmpeg. Do I have to
> reassemble my whole system?

There are several options, like outlined here:
https://superuser.com/a/865744

(Note that debian-multimedia doesn't provide anything new for Debian 9
/ stretch).

Like Harald pointed out, building your own isn't that difficult,
considering there exist a lot of guides. For Debian, check the link
above, or this guide from the ffmpeg wiki:
https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

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] how to protect my stream using ffmpeg with protocol rtsp

2020-06-17 Thread Moritz Barsnick
On Wed, Jun 17, 2020 at 18:20:10 +0200, carlo sgambato wrote:
> How can i insert this files in the encoder (ffmpeg)?
>
> The stream command is this:
>
> ./ffmpeg -re -i prova.mp4 -c:v h264_nvmpi -b:v 4000k -r 30 -ac 1 -ar 44100
> -f rtsp -rtsp_transport tcp rtsp://94.177.197.109:443/live/a

Firstly, your server needs to run TLS, which it doesn't. (I tried your
URL.) And when it does, the protocol will be rtsps://.

Once that is running, and ffmpeg happens to need to use client
certificates, you should look at the documentation of the "tls"
protocol's options. Check for "cafile" and "certfile".

> sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout
> /home/pi/SSL/httpd-selfsigned.key -out /home/pi/SSL/httpd-selfsigned.crt
>
> the software generated two files: a key and a certificate.

Are you sure you didn't mean to use these for the server?

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] Streaming wav sound with FFMPEG

2020-06-17 Thread Moritz Barsnick
Hi Nicolas,

On Wed, Jun 17, 2020 at 11:37:00 +0200, Nicolas VAMBAIRGUE wrote:
> So I tried the couple :
>
>      ffmpeg -i http://199.180.75.118:80 -acodec pcm_s16le -ar 44100 -ac
> 2 -f rtp -sdp_file /home/dr_click/audio.sdp rtp://127.0.1.1:1234
>
> and
>
>      ffplay /home/dr_click/audio.sdp
>
> I got the following error :
>
> - [rtp @ 0x7f7d8040] Protocol 'rtp' not on whitelist 'file,crypto'! if
>
>
> And if I finally tried :
>
>      fmpeg -protocol_whitelist file,http,rtp,tcp -i
> http://199.180.75.118:80 -acodec pcm_s16le -ar 44100 -ac 2 -f rtp
> -sdp_file /home/dr_click/audio.sdp rtp://127.0.1.1:1234
>
> But I get the same "whitelist" error.

(As Carl Eugen wrote, please also show the complete, uncut console
output.)

The "Protocol 'rtp' not on whitelist" was an ffplay error, so you need
to add those options to the client ffplay command line, not to the
server's. (You may also need the protocol "udp".)

I can reproduce your error. If I add that option (plus "udp") to
ffplay, the error goes away. I get a different issue then, but YMMV.

Regards,
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] MPEG2 Profile Options Integer order wrong

2020-06-17 Thread Moritz Barsnick
Hi Bill,

On Wed, Jun 17, 2020 at 12:28:39 +1000, Bill Crockett wrote:
> Before you told me this, I did try the words "high" or "main", but I put in
> quotes either single or double and got errors.

It would be extremely helpful if you showed us the *actual* command
line used, and the (complete, uncut) console output, which is helpful
to debug any kind of issues. We can usually point out your issue from
this info. "Got errors" is very terse.

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] Converting DTS (timestamps) in mpegts to HH:MM:SS:FF

2020-06-16 Thread Moritz Barsnick
On Tue, Jun 16, 2020 at 09:45:02 +0100, Kieran O Leary wrote:
> On Tue, Jun 16, 2020 at 9:40 AM Kieran O Leary 
> > OK, so I figured out that the dts needs to be divided by
> > pkt_duration_time, which in this instance was 3600. Not sure how to get
> > that aside from using ffprobe as I don't see it listed in the ffmpeg output.
>
> Sorry, the dts value needs to be divided by pkt_duration, which gives the
> frame number. Also ffmpeg is amazing.

Note that ffprobe also has those *_time fields, where the calculation
is already done for you. E.g. best_effort_timestamp_time, pkt_pts_time,
pkt_dts_time, pkt_duration_time.

(Does ffprobe report which frames are corrupt? I didn't check.)

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] Libavcodec conflicts

2020-06-15 Thread Moritz Barsnick
On Mon, Jun 15, 2020 at 18:10:56 +, gatodiablo--- via ffmpeg-user wrote:
> Moritz, Yes that is how it "should" work. Either set of packages
> either normal or extra should work, but that isn't what's happening.
> I installed the extras packages and apt tells me ffmpeg has "broken
> dependencies".

Well, originally, you wrote:

> >> mint 19. Right away apt tells me Libavcodec-extra57 conflicts with
> >> libavcodec57 and libavfilter-extra6 conflicts with libavfilter6.

That means apt would have both after your install command, and cannot
do that. You may need to de-install libavcodec57 and install
libavcodec-extra57 in one step, or de-install the former first (also
breaking packages which depend on it), then install the latter.

I can't help you with that, I'm not very apt with apt (pun intended).
Please consult your friendly apt guide, or wait for other answers here.
;-)

Regards,
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] ffmpeg drops 360 video metadata

2020-06-15 Thread Moritz Barsnick
On Mon, Jun 15, 2020 at 07:33:06 -0500, Rama Krishna Thelagathoti wrote:
> Hello ffmpeg team, kindly help me with following issue
> 360sample.mp4 is 360 video and with following command out.mp4 is also 360
> video.
>
> sudo ffmpeg -i 360sample.mp4 -vcodec libx264 -strict unofficial
> -vprofile high  -acodec aac out.mp4
>
> But with the following transcoding command out.mp4 is not 360 video, video
> is playing top/bottom , spherical data as part of metadata is lost.
>
> sudo ffmpeg -i R0010309_er.MP4 -vcodec libx264 -strict unofficial -vprofile
> high  -acodec aac -f flv  RC.mp4

You are usually requested to also show us the complete, uncut console
output.

> How to ensure that 360 metadata is preserve while transcoding.

You are writing to FLV. ffmpeg does not support spatial data for FLV.
Is that even defined in the FLV spec?

Google's own spatial tools don't support FLV either:
https://github.com/google/spatial-media
(but can successfully inject into MP4).

Regards,
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] Libavcodec conflicts

2020-06-15 Thread Moritz Barsnick
On Mon, Jun 15, 2020 at 13:04:18 +, FFmpeg user discussions wrote:

This is pretty muc a distribution issue, but let's try to help:

> So I wanted to install all the extra codecs for ffmpeg. I'm using
> mint 19. Right away apt tells me Libavcodec-extra57 conflicts with
> libavcodec57 and libavfilter-extra6 conflicts with libavfilter6. I
> was able to get it to install by using the force-depends flag but now
> apt -f install complains that vlc, ffmpeg and celluloid are broken
> and wants to uninstall them. I checked all of the above programs and
> they work fine but apts complaining is annoying.

> Why are these packages in conflict? Is it recommended to install both
> side by side? This looks like a common problem from my internet
> searches. What is the recommended solution?

ffmpeg doesn't have the concept of plugins, so there's only a defined
set of codecs/filters/formats a compiled library can support.

If this packaging is anything like in Debian/Ubuntu, those packages are
either/or. Either you install the one with e.g. "fewer" codecs, or the
one with "more".

See also here:
https://askubuntu.com/questions/847213/whats-the-difference-between-libavcodec-ffmpeg-extra56-and-libavcodec-ffmpeg56

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] how to avoid double encoding

2020-06-13 Thread Moritz Barsnick
Hi Thomas,

On Sat, Jun 13, 2020 at 19:46:49 +0200, Thomas Hezel wrote:
> Want to make MPEG-DASH plus HLS plus Fallback mp4 encoding for adaptive 
> bitrate streaming from websites. For playback I use dash.js
>
> All works fine and perfect but I do the encoding twice and with the exact 
> same output.
> I didn’t find a way to combine it and do it in one go.

You should have look at the "tee" muxer. It takes encoded streams and
passes them to two (or several) separate muxers. You need to use a
special syntax for the muxing options though.

https://trac.ffmpeg.org/wiki/Creating%20multiple%20outputs#Teepseudo-muxer

> Especially when having set „veryslow“ this is really an issue.

Have you tried comparing the output speed and quality with the
"veryfast" preset? (Yes, honestly.) Under many circumstances, it
actually surprisingly stands very well.

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] Compression issue using ffmpeg

2020-06-12 Thread Moritz Barsnick
On Fri, Jun 12, 2020 at 16:46:30 +, FFmpeg user discussions wrote:

> Requesting you to read the entire email and kindly help me in solving
> this. I'm in urgent need of this fix.

This is all voluntary work here, but happy to help.

> I used the following command to convert a .mov file to .mp4 file.
> Though it's getting converted but it's not getting compressed.

> ffmpeg -i Input0.mov -y -fpre ./preset/mp4_Projector.ffpreset -astrict -2 
> -vsync vfr -acodec copy -vcodec copy -s 1280x720 Output0.mp4

The "copy" codec tells ffmpeg not to "compress", but instead leave the
original streams intact, as confirmed here:

> Stream mapping:
>   Stream #0:1 -> #0:0 (copy)
>   Stream #0:0 -> #0:1 (copy)

> As suggested by one of your expertise, I removed the b:v=80 from
> the description of preset file and used the following command adding
> -crf as suggested by you:-

The point is not the preset file, the point is that you are apparently
overriding its setting with your command line.

> But, while trying the same command on another .mov file whose size
> was 562.2 MB and duration was 2h 10m 32s, it is giving error. I used
> the following command:-

[...]
> Too many packets buffered for output stream 0:1.
> [aac @ 0x7fdcc4032600] Qavg: 33517.414
> [aac @ 0x7fdcc4032600] 2 frames left in the queue on closing
> Conversion failed!

I can't help you with this, perhaps someone else can. Please try fixing your 
command line first.
Also please give an ffmpeg version from git HEAD a shot, perhaps your
issue is fixed there.

Regards,
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] copy encoder settings for cycling platform

2020-06-11 Thread Moritz Barsnick
On Thu, Jun 11, 2020 at 09:33:55 +0200, Bernd Eller wrote:
> I wont upload big files which they reduce from eg. 17GB to 4GB, but i
> dont wont upload it in a lesser quality than they re-code
>
> This mean i want upload it in the same quality or a little bit higher.

As Edward said: If your upload platform recodes the video, and so do
you, you will have two processes involving loss of quality. This is not
recommended.

> I have checked the Encoder Settings of the Platform and want ask if i
> can or how i can simply copy this setting to produce the same quality.

If you just want to reduce your video size while retaining a certain
amount of quality, play with the CRF setting and the presets for
libx264. Make sure you understand the implications of them.

If you want to replicate that encoding, a first good bet might be to
see if those match one of x264's presets, and using that. (Note, CRF
vs. fixed bitrate, 1-pass vs. 2-pass, and so forth, will change the
parameters despite same preset.) Yours looks a bit like preset
"veryslow" with fixed-rate 2-pass encoding and changed GOP sizes.


But in case you or anybody else *really* wants to exactly reproduce
x264's reported encoding settings (for whatever reason), there is a
method. Quoting your video characteristics:

> Encoding settings   : cabac=1 / ref=6 / deblock=1:0:0 /
> analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 /
> mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 /
> deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 /
> lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 /
> interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8 /
> b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 /
> weightp=2 / keyint=30 / keyint_min=3 / scenecut=40 / intra_refresh=0 /
> rc_lookahead=30 / rc=2pass / mbtree=1 / bitrate=2 / ratetol=1.0 /
> qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 /
> ip_ratio=1.40 / aq=1:1.00

This output is from Mediainfo. You must understand that this is info
that the original encoder x264 has embedded into the video stream.

As ffmpeg uses x264, and has a lot of liberties, you *can* try to
exactly reproduce these setting. There's an option to the libx264
encoder names "-x264-params", which will pass these parameters directly
to the encoding library.

Unfortunately, the parameters don't match *exactly* (which is libx264's
fault), so you need to do some investigation as well as trial and error
in order to get them right. Also see here:

https://superuser.com/a/1559852/361295

I tried to replicate the "veryslow" prefix, which gives a video with
this info:

  cabac=1 / ref=16 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=10 / 
psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 
/ 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / 
threads=3 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / 
interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 
/ b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / 
keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / 
rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / 
ip_ratio=1.40 / aq=1:1.00

This is the command line option I need to use to replicate that. Note
the many discrepancies in the formatting of variables and values!

  -x264-params 
'cabac=1:ref=16:deblock=0,0:analyse=all:me=umh:subme=10:psy=1:psy_rd=1.00,0.00:mixed-refs=1:me_range=24:chroma_me=1:trellis=2:8x8dct=1:cqm=flat:deadzone-inter=21:deadzone-intra=11:fast_pskip=1:chroma_qp_offset=0:threads=3:lookahead_threads=1:sliced_threads=0:nr=0:dct-decimate=1:interlaced=0:bluray_compat=0:constrained_intra=0:bframes=8:b_pyramid=2:b_adapt=2:b_bias=0:direct=auto:weightb=1:open_gop=0:weightp=2:keyint=250:keyint_min=25:scenecut=40:intra_refresh=0:rc_lookahead=60:mbtree=1:crf=23.0:qcomp=0.60:qpmin=0:qpmax=69:qpstep=4:ipratio=1.40:aq-mode=1:aq-strength=1.00'

I actually got bit-wise identical videos. Your mileage may vary.

> It would be realy great if somebody spend some time to help me, the
> documentation is so big and i dont really understand all that things,
> but willing to learn.

To learn, just play around with encoder settings a bit, and read about
the H.264 basics here:
https://trac.ffmpeg.org/wiki/Encode/H.264

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] ffprobe different outputs for file input and binary data input

2020-06-09 Thread Moritz Barsnick
On Tue, Jun 09, 2020 at 14:00:56 -0700, Ming Tu wrote:
> ffmpeg version 3.2.14-1~deb9u1 Copyright (c) 2000-2019 the FFmpeg developers

This version is (functionally) almost ancient. Could you please retry
with latest git? You can grab a static binary here:
https://johnvansickle.com/ffmpeg/
(Left column, git master.)

> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x56129aff3f80] stream 1, offset 0x30: partial file
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x56129aff3f80] Could not find codec parameters 
> for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1280x720, 1041 kb/s): 
> unspecified pixel format
> Consider increasing the value for the 'analyzeduration' and 'probesize' 
> options

Did you try these options recommended here? (Even though I'm sure if
that was the problem, the other version of your comand wouldn't work
either.)

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] H264 video toolbox settings

2020-06-09 Thread Moritz Barsnick
Hi Nuno,

On Tue, Jun 09, 2020 at 09:04:53 +0100, Nuno Santos wrote:
> > Oh, you mean using the libav* libraries? Then you're basically on the
> > wrong mailing list.
>
> What’s the correct mailing list for this?

It's pretty clearly outlined here:
https://ffmpeg.org/mailing-list-faq.html#What-type-of-questions-can-I-ask_003f
So choose libav-user.

> And I believe function
>
> static bool get_vt_h264_profile_level(AVCodecContext *avctx, CFStringRef 
> *profile_level_val)
>
> Is what I want but I don’t know how to pass the right parameters from the api 
> side.

This function is not part of the API. For one, being declared "static"
means it's only available internally to this compilation unit.
Secondly, externally available functions have a different naming
scheme (av_*).

This function is already called internally on initialization of the encoder,
so I don't understand what you need to do with it.

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] H264 video toolbox settings

2020-06-09 Thread Moritz Barsnick
On Mon, Jun 08, 2020 at 22:28:55 +0100, Nuno Santos wrote:
> Sorry if this is a basic question, but how does one know the
> available the options for the h264_videotoolbox?

Usually with something like
$ ffmpeg -h encoder=h264_videotoolbox

> I want to set them programmatically and not via ffmpeg command.

Oh, you mean using the libav* libraries? Then you're basically on the
wrong mailing list.

The options are defined in libavcodec/videotoolboxenc.c, you should be
able to extract the knowledge from there. They *should* also be in the
documentation, but that doesn't seem to be the case for the
videotoolbox codecs.

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] Silence, audio level and loudness measurement using FFMPEG

2020-06-08 Thread Moritz Barsnick
On Fri, Jun 05, 2020 at 18:31:04 +0530, rohit khali wrote:
> All links I came across seem to be based on ffmpeg commands. Ex: ffmpeg.exe
> -i .input.ac3  -filter_complex ebur128=peak=true op.wav
> It will be great if you can point to some API usage with  filter options.

this list is for the command line usage. For assistance with API usage,
please refer to libav-user:
https://lists.ffmpeg.org/mailman/listinfo/libav-user

You might also want to look at the examples in the doc/examples/ folder
of the ffmpeg sources.

Regards,
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] Lensfun an v360

2020-06-06 Thread Moritz Barsnick
Moin Tobias,
bitte an die Liste anworten, und nicht nur an mich. (Dies geht jetzt
wieder an die Liste.)

On Sat, Jun 06, 2020 at 15:23:40 +0200, Tobias Müller wrote:
> thank you for your kind and fast response. It's appreciated. I am using
> the version in the ffmpeg-20200604-7f81785-win64-static.zip. When I look
> for v360 in ffmpeg -filters v360 is not there:

Interesting, I didn't check that list. I just did
$ ffmpeg -h filter=v360
and got a lot of options. When doing
$ ffmpeg -h filter=lensfun
I got an explicit error message.

I now checked the list, and it's there (I don't remember where, it must
be in the section with the "->V" filters, but I shut down my Win
machine now.)

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] Lensfun an v360

2020-06-06 Thread Moritz Barsnick
On Sat, Jun 06, 2020 at 14:36:26 +0200, Tobias Müller wrote:
> in the version for Windows of ffmpeg offered on
> https://www.ffmpeg.org/download.html#build-windows the filters lensfun
> and v360 aren't included. How can these filters be installed?

Actually, all that's offered there is a link, which points to Zeranoe's
page.

Apparently, Zeranoe hasn't included liblensfun in their builds, so the
lensfun filter isn't included. You could post a request to Zeranoe, but
I can't find contact info. Otherwise, you need to build your own
version. (I haven't built for Windows, so don't ask me. ;-))

OTOH, I just downloaded the latest offered version
(ffmpeg-20200604-7f81785-win64-static), and v360 *is* included.

(Note, please use the git version, not the release version, especially
if you are missing recently added features or fixes).

Gruß,
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] DTS:X and Atmos.

2020-06-02 Thread Moritz Barsnick
On Mon, Jun 01, 2020 at 23:06:41 +0200, Nomis101 wrote:
> Am 01.06.20 um 21:27 schrieb Carl Eugen Hoyos:
> > Am Mo., 1. Juni 2020 um 20:19 Uhr schrieb Nomis101 :
> >> (-acodec copy), will the DTS:X / Atmos related information be fully/partly
> >> stripped away or will it be preserved?

Did you try? ;-)

> > Note that there is nothing relevant hidden in a E-AC3 stream,
> > this is just marketing speech.
>
> Good to now. I was just confused by this comment:
> https://github.com/FFmpeg/FFmpeg/blob/adea33f46513821c111c602a0692b78315688c1b/libavcodec/mlpdec.c#L367
> I thought, maybe the Atmos stuff is in a substream, that is stripped away. 
> So, thanks for that information.

That's the decoder you're looking at, which isn't used if you use the
copy codec.

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] question about fps filter

2020-05-26 Thread Moritz Barsnick
Hi Andy,

On Mon, May 25, 2020 at 20:43:03 -0400, Andy Sheimo wrote:
> How can I check if this version contains the changes you reference?
> > ffmpeg.exe -version
> > ffmpeg version N-97877-g1e8ed181e3-ffmpeg-windows-build-helpers Copyright 
> > (c) 2000-2020 the FFmpeg developers

Simply speaking, by checking which git commit that version was built
from. The so-called hash of the git commit is the hexadecimal part
after the 'g' in the version:
1e8ed181e3
(or rather, a shortened version of the hash - but it doesn't matter
here).

> >> What version of ffmpeg are you using?
> >> There have been recent updates to the NVENC encoder's implementation in
> >> ffmpeg that better handle frame rate, such as this commit:
> >>
> >> https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/b18fd2b95b2fea10f0b5381333a1b4c032f010bc
> >> Use the latest build and retest.

If you replace the base part of this URL with said hash, as such:
https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/1e8ed181e3
you will see the corresponding commit, and that you are using a build
which includes something committed on Fri, 22 May 2020, while Dennis's
link referenced a change made on Fri, 15 May 2020. So what you are
using includes what Dennis pointed out.

(In reality, it may be more complicated, because git isn't guaranteed
to be linear, but this method suffices for checking how current a build
is.)

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] HTTP input file seeking

2020-05-25 Thread Moritz Barsnick
On Thu, May 21, 2020 at 10:55:39 -0400, Jimmy wrote:
> Does ffmpeg have the capability to handle an HTTP input file as seekable?

Yes, it does.

> I was hopeful that it would support something like RFC7233
>  but it appears to treat it like
> stdin.

Only under certain circumstances will ffmpeg refuse to make it
seekable, and treat it as a stream.

What did you try, what was the result? Have you tried using the
protocol's input option "seekable", and setting that to "1"?

> Hopefully my webserver is missing a needed capability.

It needs to advertise "Accept-Ranges".

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] how to control quality of subtitles

2020-05-25 Thread Moritz Barsnick
On Mon, May 25, 2020 at 10:10:06 +0200, Peter Münster wrote:
> I've tried it with the -palette option, but the rendering of the
> subtitles did not change in any way...

There is a reason for that:

> peter@ws:/tmp/ffmpeg-tests> ffmpeg -i orig-dvbsub.ts -map 0:0 -map 0:1 -map 
> 0:2 -c:v libx264 -c:a copy -c:s dvdsub dvbsub2dvdsub.mkv
> ffmpeg version 3.4.5 Copyright (c) 2000-2018 the FFmpeg developers

This version is quite ancient, in ffmpeg terms.

Please try to build from latest git master, or get such a binary build.
Reason is that such a version will include this change:

https://github.com/FFmpeg/FFmpeg/commit/d4440c7e91b0ef5f6776d98c51dbb6cd66ea0194

which obviously enables the encoder's "palette" option.

You can get binary builds, and be it just for initial testing, from
here for your SuSE platform:
https://johnvansickle.com/ffmpeg/

Please choose a build from the left column "git master".

> [mpeg2video @ 0x5574823a0d80] skipped MB in I-frame at 1 31
> [mpeg2video @ 0x5574823a0d80] Warning MVs not available
> [mpeg2video @ 0x5574823a0d80] concealing 945 DC, 945 AC, 945 MV errors in I 
> frame
> [mpegts @ 0x557482334fc0] PES packet size mismatch
> Last message repeated 2 times
> [NULL @ 0x55748233b820] Junk in packet
> [dvbsub @ 0x55748235bae0] Invalid object location! 210-720 44-44 11
> [dvbsub @ 0x55748235bae0] Unknown/unsupported pixel block 0x88

You input seems to have some corruption (which should have nothing to
do with your issue).

Have you tried keeping the subs as dvbsubs (instead of dvd)? Does your
TV render them then?

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] Resizing result with nearest neighbour is highly compressed

2020-05-22 Thread Moritz Barsnick
On Fri, May 22, 2020 at 13:52:40 +0200, Nick wrote:
> I'm trying to resize a .mp4 video with FFmpeg but the result is artifacted
> to hell and back, how can I fix it?

To be honest, I see the same artifacts in the original.
(I dumped single frames losslessly to PNG and viewed them full-screen.
Note that that last step of full-screen scaling obviously also uses
some algorithm. But regardless of smoothing or not, I see artifacts.)

> > ffmpeg -i C:\Users\Asus\Desktop\0001-0024.mp4 -vf
> > scale=1120:1120:flags=neighbor C:\Users\Asus\Desktop\out.mp4 -aac_tns

We usually appreciate the complete, uncut console output, which also
saves us from actually reproducing, just to see e.g. that you are
scaling *up*).

And that "-aac_tns" in your command line surely is a mistake. ;-)

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] [ffmpeg] preserving metadata from .mp4 to .jpg/.png frames

2020-05-22 Thread Moritz Barsnick
On Fri, May 22, 2020 at 07:52:14 +0200, Michael Koch wrote:
> here is an example of a JPG for which exiftool (version 11.26) reports 6
> dates/times:
> http://www.astro-electronic.de/IMG_1343.jpg

Yes, that file contains actual EXIF metadata, including date tags.

That doesn't change the fact that ffmpeg currently isn't able to create
EXIF metadata, even if it is able to parse it from some formats.

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] [ffmpeg] preserving metadata from .mp4 to .jpg/.png frames

2020-05-21 Thread Moritz Barsnick
On Thu, May 21, 2020 at 20:05:10 +0100, Kieran O Leary wrote:
> On Thu, May 21, 2020 at 6:05 PM Michael Koch 
> > I have a JPG image for which exiftool reports six times:
> > -- File Modification Date/Time
> > -- File Access Date/Time
> > -- File Creation Date/Time
> > -- Modify Date
> > -- Date/Time Original
> > -- Create Date
> Aren't some of those just file system metadata, not in the actual JPG
> itself?

I was wondering the same thing, but my (perhaps newer) exiftool only
reports the first three on a "bare" JPG file.

OTOH, I believe ffmpeg is not capable of writing any metadata for JPG,
not even non-EXIF.

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] How to view a YT vid that is split into right and left views into a single view

2020-05-21 Thread Moritz Barsnick
On Wed, May 20, 2020 at 09:09:43 -0600, JD wrote:
> Would appreciate some working suggestions
> See https://www.youtube.com/watch?v=unzkYhrW-WE

Check out the stereo3d filter. Its options depend on the type of 3D
input.

This seems to work for me with the given YouTube link:
$ ffplay -vf stereo3d=in=sbs2l:out=ml input...

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] creating a grid like Zoom

2020-05-20 Thread Moritz Barsnick
Hi Michael,

On Tue, May 19, 2020 at 10:25:17 -0700, Michael Glenn Williams wrote:
> We tried following the examples of making grids when reading live streams
> liek this:
> https://www.reddit.com/r/ffmpeg/comments/aimdx9/ffserver_video_grid_source_ffserver_http_ts/
>
> With the example:

Using that example works fine for you, right? It does for me. (I would
probably simplify the example using the "scale2ref", "hstack" and
"vstack" filters, but that's not the point.)

> We wrote the output into a file output.mkv for testing. However when we
> playback the file it has a terrible flickering, see this output sample:
> https://www.dropbox.com/s/58gj99u0ezplscw/output.mkv?dl=0

Oh, indeed.

> Any thoughts on what we are doing wrong?

Yes, but first:

> The actual bash code is something like this:

Though I can read bash, could you kindly provide us the actual
resulting command line (perhaps extracted using "bash -x"), and
ffmpeg's complete, uncut console output?

I do have a suspicion: Your framerates (or image timings), and perhaps
your resolutions, don't align very well. We may see from the output
log. Perhaps we can recommend some additional options or filters to
add.

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   6   7   8   9   10   >