Re: [FFmpeg-user] Mix a video with an audio file

2020-01-19 Thread Paul B Mahol
On 1/19/20, Michael Koch  wrote:
> Am 19.01.2020 um 21:56 schrieb Paul B Mahol:
>> On 1/19/20, Michael Koch  wrote:
>>> Am 19.01.2020 um 21:01 schrieb Paul B Mahol:
 On 1/19/20, Michael Koch  wrote:
> Hello,
>
> I've just found a problem that can be reproduced as follows:
>
> Step 1: Make a 6 seconds test video with 1kHz tone. The file is ok when
> played.
>
> ffmpeg -f lavfi -i testsrc2=size=vga -f lavfi -i sine=1000 -t 6 -y
> video.mp4
>
>
> Step 2: Make a 10 seconds audio file with silence and a short 3kHz tone
> at t=3s. The file is ok when played.
>
> ffmpeg -f lavfi -i "sine=3000:duration=0.1" -af adelay=3000,apad -t 10
> -y audio.wav
>
>
> Step 3: Combine both files into one video, and the audio sources shall
> be mixed:
>
> ffmpeg -i video.mp4 -i audio.wav -filter_complex
> "[0:a][1:a]amix=weights='1.0 1.0'" -shortest -y out.mp4
>
> The output video has the correct length 6s, but I don't understand why
> the 1kHz tone disappears after 4s and the last 2s are silence.
>
> The console output is below.
 Can not reproduce using nut container.
>>> When I change the output filename to out.nut, then it works as expected
>>> (but with terrible image quality). Why doesn't it work with mp4 output?
>> Use different video encoder. Who knows?
>
> When I add -c:v mpeg4 then it works fine.
> When I add -c:v libx264 then the audio output is 2s too short.
> Is it a bug, or is something wrong with my command line?
>

Dunno.

> Michael
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
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 -layer flag

2020-01-19 Thread Gonzalo Garramuño



El 17/01/20 a las 23:26, Carl Eugen Hoyos escribió:

Am Sa., 18. Jan. 2020 um 02:47 Uhr schrieb Dan Walker :


I'm trying to find info on the -layer flag for ffmpeg which seems to be
undocumented in terms of examples.

Seriously:
What did you try? You write above that you have "multilayer EXR [R,G,B": Did
you test ffmpeg -layer G -i input out.jpg?
The flag seems to be somewhat broken on current head.   It should allow 
you to extract rgb (or xyz) channels from multiview EXRs. However, it 
only allows uppercase channels, like N.X or indirect_diffuse.R.

I'll submit a patch to fix that.

It does not work with OpenEXRs 2.0 multipart files (known limitation).

___
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] Mix a video with an audio file

2020-01-19 Thread Michael Koch

Am 19.01.2020 um 21:56 schrieb Paul B Mahol:

On 1/19/20, Michael Koch  wrote:

Am 19.01.2020 um 21:01 schrieb Paul B Mahol:

On 1/19/20, Michael Koch  wrote:

Hello,

I've just found a problem that can be reproduced as follows:

Step 1: Make a 6 seconds test video with 1kHz tone. The file is ok when
played.

ffmpeg -f lavfi -i testsrc2=size=vga -f lavfi -i sine=1000 -t 6 -y
video.mp4


Step 2: Make a 10 seconds audio file with silence and a short 3kHz tone
at t=3s. The file is ok when played.

ffmpeg -f lavfi -i "sine=3000:duration=0.1" -af adelay=3000,apad -t 10
-y audio.wav


Step 3: Combine both files into one video, and the audio sources shall
be mixed:

ffmpeg -i video.mp4 -i audio.wav -filter_complex
"[0:a][1:a]amix=weights='1.0 1.0'" -shortest -y out.mp4

The output video has the correct length 6s, but I don't understand why
the 1kHz tone disappears after 4s and the last 2s are silence.

The console output is below.

Can not reproduce using nut container.

When I change the output filename to out.nut, then it works as expected
(but with terrible image quality). Why doesn't it work with mp4 output?

Use different video encoder. Who knows?


When I add -c:v mpeg4 then it works fine.
When I add -c:v libx264 then the audio output is 2s too short.
Is it a bug, or is something wrong with my command line?

Michael

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

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

Re: [FFmpeg-user] How can I correctly set duration on MP3 output when input is streamed to ffmpeg?

2020-01-19 Thread Carl Eugen Hoyos
Am So., 19. Jan. 2020 um 21:43 Uhr schrieb Tom Barnsbury :

> My ffmpeg commands are below. The input and output files are FIFO files
> (using FIFO files does not seem to cause any problems in itself).

If ffmpeg cannot seek in the output file, no duration can be written.

For future requests: Please remember that there is no release support
on this mailing list, always test (and provide console output for)
current FFmpeg git head.

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

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

Re: [FFmpeg-user] Mix a video with an audio file

2020-01-19 Thread Paul B Mahol
On 1/19/20, Michael Koch  wrote:
> Am 19.01.2020 um 21:01 schrieb Paul B Mahol:
>> On 1/19/20, Michael Koch  wrote:
>>> Hello,
>>>
>>> I've just found a problem that can be reproduced as follows:
>>>
>>> Step 1: Make a 6 seconds test video with 1kHz tone. The file is ok when
>>> played.
>>>
>>> ffmpeg -f lavfi -i testsrc2=size=vga -f lavfi -i sine=1000 -t 6 -y
>>> video.mp4
>>>
>>>
>>> Step 2: Make a 10 seconds audio file with silence and a short 3kHz tone
>>> at t=3s. The file is ok when played.
>>>
>>> ffmpeg -f lavfi -i "sine=3000:duration=0.1" -af adelay=3000,apad -t 10
>>> -y audio.wav
>>>
>>>
>>> Step 3: Combine both files into one video, and the audio sources shall
>>> be mixed:
>>>
>>> ffmpeg -i video.mp4 -i audio.wav -filter_complex
>>> "[0:a][1:a]amix=weights='1.0 1.0'" -shortest -y out.mp4
>>>
>>> The output video has the correct length 6s, but I don't understand why
>>> the 1kHz tone disappears after 4s and the last 2s are silence.
>>>
>>> The console output is below.
>> Can not reproduce using nut container.
>
> When I change the output filename to out.nut, then it works as expected
> (but with terrible image quality). Why doesn't it work with mp4 output?

Use different video encoder. Who knows?

>
> Michael
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
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] Submitting a Feature Request

2020-01-19 Thread Chris via ffmpeg-user
-Original Message-
From: Carl Eugen Hoyos 
To: FFmpeg user questions 
Sent: Sun, Jan 19, 2020 12:11 pm
Subject: Re: [FFmpeg-user] Submitting a Feature Request

Am So., 19. Jan. 2020 um 21:00 Uhr schrieb Chris via ffmpeg-user
:

> ffmpeg with the command-line interface forces video levels to either 0 - 255 
> or 16 - 235

> Ok.
> Could you 1) repeat the usecase for other levels and 2) post the command line
> that produces a file for this use-case but with wrong video levels.


> If I understand your question correctly, I am adjusting video levels by means 
> of an
> external C program and writing the video frames to a file using ffmpeg for
> compliance with EBU R 103.

> How do you "write" the video frames?
> Please provide the command line including the complete, uncut console output.

> And please fix your mailer's quoting, Carl Eugen
The program is functioning correctly when I write the frames, so I don't know 
what you're expecting to see if I post the command line and console output. 
Again, I'm using out_range=full and out_range=tv without issue and the program 
performs exactly as expected. There is no issue with the operation of the 
program, no bugs, no malfunction. It works exactly as expected.
That's the best I can do with the 
quoting.___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

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

[FFmpeg-user] How can I correctly set duration on MP3 output when input is streamed to ffmpeg?

2020-01-19 Thread Tom Barnsbury
 Hi,

 I am streaming an mp3 file from a remote server, piping it through ffmpeg
to add custom id3 tags and then offering it as a file download from my own
server. It seems that ffmpeg cannot add duration metadata to the file as
the input data is streamed. I was led to this conclusion by the this post
on Stack Overflow: https://stackoverflow.com/a/11987600. My output files
are always missing bytes compared to the source file from the remote server.

 Is it possible that the missing metadata can be added by passing the
duration in to ffmpeg as an argument? I tried using -t as a parameter (as
an input, output and both) but this didn't have the desired effect.

 My ffmpeg commands are below. The input and output files are FIFO files
(using FIFO files does not seem to cause any problems in itself).

 ffmpeg -f mp3 -i /tmp/dc7f36e4-353b-4e1b-a148-8d8e5ab8b606-input -y
-metadata artist="My artist" -metadata title="My title" -codec copy -f mp3
/tmp/dc7f36e4-353b-4e1b-a148-8d8e5ab8b606-output

 Note: When I say missing metadata, I'm not talking about id3 tags. ffprobe
reports the 'deficient' file as follows (note: "Estimating duration from
bitrate, this may be inaccurate"):

 ffprobe version 4.2.2 Copyright (c) 2007-2019 the FFmpeg developers
   built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2 --enable-shared
--enable-pthreads --enable-version3 --enable-avresample --cc=clang
--host-cflags='-I/Library/Java/JavaVirtualMachines/adoptopenjdk-13.0.1.jdk/Contents/Home/include
-I/Library/Java/JavaVirtualMachines/adoptopenjdk-13.0.1.jdk/Contents/Home/include/darwin'
--host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl
--enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus
--enable-librubberband --enable-libsnappy --enable-libtesseract
--enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma
--enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox
--disable-libjack --disable-indev=jack
   libavutil  56. 31.100 / 56. 31.100
   libavcodec 58. 54.100 / 58. 54.100
   libavformat58. 29.100 / 58. 29.100
   libavdevice58.  8.100 / 58.  8.100
   libavfilter 7. 57.100 /  7. 57.100
   libavresample   4.  0.  0 /  4.  0.  0
   libswscale  5.  5.100 /  5.  5.100
   libswresample   3.  5.100 /  3.  5.100
   libpostproc55.  5.100 / 55.  5.100
 [mp3 @ 0x7f91fb002a00] Estimating duration from bitrate, this may be
inaccurate
 Input #0, mp3, from 'streamed-with-additional-id3-tags.mp3':
   Metadata:
 title   : My title
 artist  : My artist
 encoder : Lavf58.29.100
   Duration: 02:59:56.09, start: 0.00, bitrate: 128 kb/s
 Stream #0:0: Audio: mp3, 48000 Hz, stereo, fltp, 128 kb/s


 Whereas I am looking to produce a file that reports the following output
(note the "Duration" "start" value, and additional "Metadata" section with
an "encoder" field. I'm not sure if the additional "Metadata" section is
related to the duration issue):


 ffprobe version 4.2.2 Copyright (c) 2007-2019 the FFmpeg developers
   built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2 --enable-shared
--enable-pthreads --enable-version3 --enable-avresample --cc=clang
--host-cflags='-I/Library/Java/JavaVirtualMachines/adoptopenjdk-13.0.1.jdk/Contents/Home/include
-I/Library/Java/JavaVirtualMachines/adoptopenjdk-13.0.1.jdk/Contents/Home/include/darwin'
--host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl
--enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus
--enable-librubberband --enable-libsnappy --enable-libtesseract
--enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma
--enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox
--disable-libjack --disable-indev=jack
   libavutil  56. 31.100 / 56. 31.100
   libavcodec 58. 54.100 / 58. 54.100
   libavformat58. 29.100 / 58. 29.100
   libavdevice58.  8.100 / 58.  8.100
   libavfilter 7. 57.100 /  7. 57.100
   libavresample   4.  0.  0 /  4.  0.  0
   libswscale  5.  5.100 /  5.  5.100
   libswresample   3.  5.100 /  3.  5.100
   libpostproc55.  5.100 / 55.  5.100
 Input #0, mp3, from 'directly-from-file-with-additional-id3-tags.mp3.mp3':
   Metadata:
 title   : My title
 artist  : My artist
 encoder : Lavf58.29.100
   Duration: 02:59:56.09, start: 0.023021, bitrate: 128 kb/s
 Stream #0:0: Audio: mp3, 48000 Hz, stereo, 

Re: [FFmpeg-user] Mix a video with an audio file

2020-01-19 Thread Michael Koch

Am 19.01.2020 um 21:01 schrieb Paul B Mahol:

On 1/19/20, Michael Koch  wrote:

Hello,

I've just found a problem that can be reproduced as follows:

Step 1: Make a 6 seconds test video with 1kHz tone. The file is ok when
played.

ffmpeg -f lavfi -i testsrc2=size=vga -f lavfi -i sine=1000 -t 6 -y video.mp4


Step 2: Make a 10 seconds audio file with silence and a short 3kHz tone
at t=3s. The file is ok when played.

ffmpeg -f lavfi -i "sine=3000:duration=0.1" -af adelay=3000,apad -t 10
-y audio.wav


Step 3: Combine both files into one video, and the audio sources shall
be mixed:

ffmpeg -i video.mp4 -i audio.wav -filter_complex
"[0:a][1:a]amix=weights='1.0 1.0'" -shortest -y out.mp4

The output video has the correct length 6s, but I don't understand why
the 1kHz tone disappears after 4s and the last 2s are silence.

The console output is below.

Can not reproduce using nut container.


When I change the output filename to out.nut, then it works as expected 
(but with terrible image quality). Why doesn't it work with mp4 output?


Michael

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

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

Re: [FFmpeg-user] Submitting a Feature Request

2020-01-19 Thread Carl Eugen Hoyos
Am So., 19. Jan. 2020 um 21:00 Uhr schrieb Chris via ffmpeg-user
:

> > > ffmpeg with the command-line interface forces video levels to either 0 - 
> > > 255 or 16 - 235
> >
> > Ok.
> > Could you 1) repeat the usecase for other levels and 2) post the command 
> > line
> > that produces a file for this use-case but with wrong video levels.
>

> If I understand your question correctly, I am adjusting video levels by means 
> of an
> external C program and writing the video frames to a file using ffmpeg for
> compliance with EBU R 103.

How do you "write" the video frames?
Please provide the command line including the complete, uncut console output.

And please fix your mailer's quoting, Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Mix a video with an audio file

2020-01-19 Thread Paul B Mahol
On 1/19/20, Michael Koch  wrote:
> Hello,
>
> I've just found a problem that can be reproduced as follows:
>
> Step 1: Make a 6 seconds test video with 1kHz tone. The file is ok when
> played.
>
> ffmpeg -f lavfi -i testsrc2=size=vga -f lavfi -i sine=1000 -t 6 -y video.mp4
>
>
> Step 2: Make a 10 seconds audio file with silence and a short 3kHz tone
> at t=3s. The file is ok when played.
>
> ffmpeg -f lavfi -i "sine=3000:duration=0.1" -af adelay=3000,apad -t 10
> -y audio.wav
>
>
> Step 3: Combine both files into one video, and the audio sources shall
> be mixed:
>
> ffmpeg -i video.mp4 -i audio.wav -filter_complex
> "[0:a][1:a]amix=weights='1.0 1.0'" -shortest -y out.mp4
>
> The output video has the correct length 6s, but I don't understand why
> the 1kHz tone disappears after 4s and the last 2s are silence.
>
> The console output is below.

Can not reproduce using nut container.

> Michael
>
>
>
> F:\Test_Audio>c:\ffmpeg\ffmpeg -i video.mp4 -i audio.wav -filter_complex
> "[0:a][
> 1:a]amix=weights='1.0 1.0'" -shortest -y out.mp4
> ffmpeg version git-2020-01-15-0dc0837 Copyright (c) 2000-2020 the FFmpeg
> develop
> ers
>built with gcc 9.2.1 (GCC) 20200111
>configuration: --enable-gpl --enable-version3 --enable-sdl2
> --enable-fontconfi
> g --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d
> --enable-libb
> luray --enable-libfreetype --enable-libmp3lame
> --enable-libopencore-amrnb --enab
> le-libopencore-amrwb --enable-libopenjpeg --enable-libopus
> --enable-libshine --e
> nable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame
> --enable
> -libvpx --enable-libwavpack --enable-libwebp --enable-libx264
> --enable-libx265 -
> -enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib
> --enable-gmp --enab
> le-libvidstab --enable-libvorbis --enable-libvo-amrwbenc
> --enable-libmysofa --en
> able-libspeex --enable-libxvid --enable-libaom --enable-libmfx
> --enable-ffnvcode
> c --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec
> --enable-dxva2 -
> -enable-avisynth --enable-libopenmpt --enable-amf
>libavutil  56. 38.100 / 56. 38.100
>libavcodec 58. 65.103 / 58. 65.103
>libavformat58. 35.102 / 58. 35.102
>libavdevice58.  9.103 / 58.  9.103
>libavfilter 7. 71.100 /  7. 71.100
>libswscale  5.  6.100 /  5.  6.100
>libswresample   3.  6.100 /  3.  6.100
>libpostproc55.  6.100 / 55.  6.100
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
>Metadata:
>  major_brand : isom
>  minor_version   : 512
>  compatible_brands: isomiso2avc1mp41
>  encoder : Lavf58.35.102
>Duration: 00:00:06.02, start: 0.00, bitrate: 938 kb/s
>  Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
> 640x480 [
> SAR 1:1 DAR 4:3], 864 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
>  Metadata:
>handler_name: VideoHandler
>  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
> mono, fltp,
>   68 kb/s (default)
>  Metadata:
>handler_name: SoundHandler
> Guessed Channel Layout for Input Stream #1.0 : mono
> Input #1, wav, from 'audio.wav':
>Metadata:
>  encoder : Lavf58.35.102
>Duration: 00:00:10.00, bitrate: 705 kb/s
>  Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz,
> mono, s16,
> 705 kb/s
> Stream mapping:
>Stream #0:1 (aac) -> amix:input0 (graph 0)
>Stream #1:0 (pcm_s16le) -> amix:input1 (graph 0)
>amix (graph 0) -> Stream #0:0 (aac)
>Stream #0:0 -> #0:1 (h264 (native) -> h264 (libx264))
> Press [q] to stop, [?] for help
> [libx264 @ 029d7540] using SAR=1/1
> [libx264 @ 029d7540] using cpu capabilities: MMX2 SSE2Fast SSSE3
> SSE4.2
> AVX FMA3 BMI2 AVX2
> [libx264 @ 029d7540] profile High, level 3.0, 4:2:0, 8-bit
> [libx264 @ 029d7540] 264 - core 159 - H.264/MPEG-4 AVC codec -
> Copyleft
> 2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=3
> deblock=1
> :0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1
> me_rang
> e=16 chroma_me=1 trellis=1 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
> interla
> ced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2
> b_adapt=1 b_bias
> =0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25
> scenecut=40
> intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60
> qpmin=0 qpma
> x=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
> Output #0, mp4, to 'out.mp4':
>Metadata:
>  major_brand : isom
>  minor_version   : 512
>  compatible_brands: isomiso2avc1mp41
>  encoder : Lavf58.35.102
>  Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono,
> fltp, 69 k
> b/s (default)
>  Metadata:
>encoder : Lavc58.65.103 aac
>  Stream #0:1(und): Video: h264 (libx264) (avc1 / 0x31637661),
> yuv420p, 

Re: [FFmpeg-user] Submitting a Feature Request

2020-01-19 Thread Chris via ffmpeg-user



-Original Message-
From: Carl Eugen Hoyos 
To: FFmpeg user questions 
Sent: Sun, Jan 19, 2020 11:34 am
Subject: Re: [FFmpeg-user] Submitting a Feature Request

Am So., 19. Jan. 2020 um 20:25 Uhr schrieb Chris via ffmpeg-user
:

> ffmpeg with the command-line interface forces video levels to either 0 - 255 
> or 16 - 235

> Ok.
> Could you 1) repeat the usecase for other levels and 2) post the command line
> that produces a file for this use-case but with wrong video levels.

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

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


If I understand your question correctly, I am adjusting video levels by means 
of an external C program and writing the video frames to a file using ffmpeg 
for compliance with EBU R 103. This almost works but for the fact that ffmpeg 
is altering the video levels I have set. Is that much clear?
I am not reporting a "bug" or an "issue", but am requesting something that does 
not yet exist in ffmpeg.
out_range=full gives video levels in the range 0 - 255. That is the normal, 
expected behavior of the program and is not the issue here, hence it is not a 
"bug".

out_range=tv gives video levels in the range 16 - 235. That is likewise normal 
and expected behavior and not the issue.

I am requesting a new feature, out_range=unity, which would not alter the video 
levels, i.e. would not force them to 0 - 255 or 16 - 235 but instead would 
leave the values in the frame buffer alone.

There is no instance of ffmpeg producing the "wrong" video levels so I don't 
know what you would learn from the command line or the program output.

Does that make it clear?

___
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] Custom User Agent Header not working

2020-01-19 Thread Reindl Harald


Am 19.01.20 um 20:32 schrieb Temm:
> Alright, used ffmpeg-20200115-0dc0837-win64-static instead of stable.
> Problem persists

nobody right in his mind expected a chnage
___
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] Submitting a Feature Request

2020-01-19 Thread Carl Eugen Hoyos
Am So., 19. Jan. 2020 um 20:25 Uhr schrieb Chris via ffmpeg-user
:

> ffmpeg with the command-line interface forces video levels to either 0 - 255 
> or 16 - 235

Ok.
Could you 1) repeat the usecase for other levels and 2) post the command line
that produces a file for this use-case but with wrong video levels.

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

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

Re: [FFmpeg-user] Custom User Agent Header not working

2020-01-19 Thread Temm
On Sun, 19 Jan 2020 at 20:24, Carl Zwanzig  wrote:

> On 1/19/2020 11:11 AM, Temm wrote:
> > Sorry, but i am not sure what you mean by using the latest git head. Do
> you
> > mean i should build the latest ffmpeg from git myself?
>
> You can download daily windows builds from
> https://ffmpeg.zeranoe.com/builds/, select the one with a date
> ("20200115-") instead of "4.2.1".
>
> z!
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Alright, used ffmpeg-20200115-0dc0837-win64-static instead of stable.
Problem persists. Trying to download a local m3u8 to mp4 that links
http(s?) .ts chunks ignores user agent header for the requests of the ts
chunks.
Used command 'ffmpegL.exe -user_agent "abc123" -protocol_whitelist
file,http,https,tcp,tls,crypto  -i "local.m3u8" -c copy "out.mp4" -v trace'
Tell me if i should send the full trace output from latest or my local.m3u8
again.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

[FFmpeg-user] Mix a video with an audio file

2020-01-19 Thread Michael Koch

Hello,

I've just found a problem that can be reproduced as follows:

Step 1: Make a 6 seconds test video with 1kHz tone. The file is ok when 
played.


ffmpeg -f lavfi -i testsrc2=size=vga -f lavfi -i sine=1000 -t 6 -y video.mp4


Step 2: Make a 10 seconds audio file with silence and a short 3kHz tone 
at t=3s. The file is ok when played.


ffmpeg -f lavfi -i "sine=3000:duration=0.1" -af adelay=3000,apad -t 10 
-y audio.wav



Step 3: Combine both files into one video, and the audio sources shall 
be mixed:


ffmpeg -i video.mp4 -i audio.wav -filter_complex 
"[0:a][1:a]amix=weights='1.0 1.0'" -shortest -y out.mp4


The output video has the correct length 6s, but I don't understand why 
the 1kHz tone disappears after 4s and the last 2s are silence.


The console output is below.

Michael



F:\Test_Audio>c:\ffmpeg\ffmpeg -i video.mp4 -i audio.wav -filter_complex 
"[0:a][

1:a]amix=weights='1.0 1.0'" -shortest -y out.mp4
ffmpeg version git-2020-01-15-0dc0837 Copyright (c) 2000-2020 the FFmpeg 
develop

ers
  built with gcc 9.2.1 (GCC) 20200111
  configuration: --enable-gpl --enable-version3 --enable-sdl2 
--enable-fontconfi
g --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d 
--enable-libb
luray --enable-libfreetype --enable-libmp3lame 
--enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus 
--enable-libshine --e
nable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame 
--enable
-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 
--enable-libx265 -
-enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib 
--enable-gmp --enab
le-libvidstab --enable-libvorbis --enable-libvo-amrwbenc 
--enable-libmysofa --en
able-libspeex --enable-libxvid --enable-libaom --enable-libmfx 
--enable-ffnvcode
c --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec 
--enable-dxva2 -

-enable-avisynth --enable-libopenmpt --enable-amf
  libavutil  56. 38.100 / 56. 38.100
  libavcodec 58. 65.103 / 58. 65.103
  libavformat    58. 35.102 / 58. 35.102
  libavdevice    58.  9.103 / 58.  9.103
  libavfilter 7. 71.100 /  7. 71.100
  libswscale  5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
  Metadata:
    major_brand : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder : Lavf58.35.102
  Duration: 00:00:06.02, start: 0.00, bitrate: 938 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 
640x480 [

SAR 1:1 DAR 4:3], 864 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
  handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, 
mono, fltp,

 68 kb/s (default)
    Metadata:
  handler_name    : SoundHandler
Guessed Channel Layout for Input Stream #1.0 : mono
Input #1, wav, from 'audio.wav':
  Metadata:
    encoder : Lavf58.35.102
  Duration: 00:00:10.00, bitrate: 705 kb/s
    Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 
mono, s16,

705 kb/s
Stream mapping:
  Stream #0:1 (aac) -> amix:input0 (graph 0)
  Stream #1:0 (pcm_s16le) -> amix:input1 (graph 0)
  amix (graph 0) -> Stream #0:0 (aac)
  Stream #0:0 -> #0:1 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 029d7540] using SAR=1/1
[libx264 @ 029d7540] using cpu capabilities: MMX2 SSE2Fast SSSE3 
SSE4.2

AVX FMA3 BMI2 AVX2
[libx264 @ 029d7540] profile High, level 3.0, 4:2:0, 8-bit
[libx264 @ 029d7540] 264 - core 159 - H.264/MPEG-4 AVC codec - 
Copyleft
2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 
deblock=1
:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 
me_rang
e=16 chroma_me=1 trellis=1 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 
interla
ced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 
b_adapt=1 b_bias
=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 
scenecut=40
intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 
qpmin=0 qpma

x=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'out.mp4':
  Metadata:
    major_brand : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder : Lavf58.35.102
    Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, 
fltp, 69 k

b/s (default)
    Metadata:
  encoder : Lavc58.65.103 aac
    Stream #0:1(und): Video: h264 (libx264) (avc1 / 0x31637661), 
yuv420p, 640x48

0 [SAR 1:1 DAR 4:3], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
    Metadata:
  handler_name    : VideoHandler
  encoder : Lavc58.65.103 libx264
    Side data:
  cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame=  111 fps=0.0 q=28.0 size= 256kB time=00:00:02.36 

Re: [FFmpeg-user] Submitting a Feature Request

2020-01-19 Thread Chris via ffmpeg-user



-Original Message-
From: Carl Eugen Hoyos 
To: FFmpeg user questions 
Sent: Sun, Jan 19, 2020 10:43 am
Subject: Re: [FFmpeg-user] Submitting a Feature Request

Am So., 19. Jan. 2020 um 19:30 Uhr schrieb Chris via ffmpeg-user
:
>
> I described the desired feature in a post several weeks ago.

Please find out what top-posting means, avoid it here if you want support.

Is the issue you see reproducible with ffmpeg (the command line
interface), or only when using the libraries?

Are you seeing an issue with libswscale (this is what using out_range
indicate) or with the v210 encoder (this is what I remember)?

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

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
ffmpeg with the command-line interface forces video levels to either 0 - 255 or 
16 - 235, with no way of defeating this behavior. To the best of my knowledge 
it is not an issue with libswscale, but I could be wrong. I am requesting a 
feature to avoid ffmpeg's manipulation of video levels, i.e. out_range=unity.
___
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] Custom User Agent Header not working

2020-01-19 Thread Carl Zwanzig

On 1/19/2020 11:11 AM, Temm wrote:

Sorry, but i am not sure what you mean by using the latest git head. Do you
mean i should build the latest ffmpeg from git myself?


You can download daily windows builds from 
https://ffmpeg.zeranoe.com/builds/, select the one with a date 
("20200115-") instead of "4.2.1".


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

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

Re: [FFmpeg-user] Custom User Agent Header not working

2020-01-19 Thread Reindl Harald


Am 19.01.20 um 20:11 schrieb Temm:
> On Sun, 19 Jan 2020 at 19:49, Carl Eugen Hoyos  wrote:
> 
>> Am So., 19. Jan. 2020 um 19:33 Uhr schrieb Temm :
>>>
>>> Oh, sorry. I am using cmd on Windows10, using latest win ffmpeg build
>> from
>>> Zeranoe.
>>
>> Please test current FFmpeg git head and please do not use external
>> resources for the console output, always paste the console output in
>> the mail.
>>
>> And please find out what top-posting means and avoid it here.
>>
>> Carl Eugen
>>
>>
> Sorry, but i am not sure what you mean by using the latest git head. Do you
> mean i should build the latest ffmpeg from git myself?

yeah, thats's how endusers are treated here because ffmpeg developers
really believe that latest git solves more problems than it probably
makes and magically everything and you have to prove whatever don't
behave the same way in the latest source with the latest hot commit
___
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] Custom User Agent Header not working

2020-01-19 Thread Temm
On Sun, 19 Jan 2020 at 19:49, Carl Eugen Hoyos  wrote:

> Am So., 19. Jan. 2020 um 19:33 Uhr schrieb Temm :
> >
> > Oh, sorry. I am using cmd on Windows10, using latest win ffmpeg build
> from
> > Zeranoe.
>
> Please test current FFmpeg git head and please do not use external
> resources for the console output, always paste the console output in
> the mail.
>
> And please find out what top-posting means and avoid it here.
>
> Carl Eugen
>
>
Sorry, but i am not sure what you mean by using the latest git head. Do you
mean i should build the latest ffmpeg from git myself?
I also found out that it does send the headers to the .ts links in the
index.m3u8 if i use -user_agent "abc" and use a http/s url as -i input.
Is there any way to use custom headers for a local index.m3u8?
___
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] Custom User Agent Header not working

2020-01-19 Thread Carl Eugen Hoyos
Am So., 19. Jan. 2020 um 19:33 Uhr schrieb Temm :
>
> Oh, sorry. I am using cmd on Windows10, using latest win ffmpeg build from
> Zeranoe.

Please test current FFmpeg git head and please do not use external
resources for the console output, always paste the console output in
the mail.

And please find out what top-posting means and avoid it here.

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

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

Re: [FFmpeg-user] Submitting a Feature Request

2020-01-19 Thread Carl Eugen Hoyos
Am So., 19. Jan. 2020 um 19:30 Uhr schrieb Chris via ffmpeg-user
:
>
> I described the desired feature in a post several weeks ago.

Please find out what top-posting means, avoid it here if you want support.

Is the issue you see reproducible with ffmpeg (the command line
interface), or only when using the libraries?

Are you seeing an issue with libswscale (this is what using out_range
indicate) or with the v210 encoder (this is what I remember)?

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

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

Re: [FFmpeg-user] Custom User Agent Header not working

2020-01-19 Thread Temm
Oh, sorry. I am using cmd on Windows10, using latest win ffmpeg build from
Zeranoe.
Here is the full output with -v trace: https://pastebin.com/raw/W9hsjraT
I have also tried using -header and -user_agent instead of -user-agent, no
success.

On Sun, 19 Jan 2020 at 19:24, Carl Eugen Hoyos  wrote:

> Am So., 19. Jan. 2020 um 03:51 Uhr schrieb Temm :
> >
> > My command:
> > ffmpeg.exe -protocol_whitelist file,http,https,tcp,tls,crypto -user-agent
> > "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
> like
> > Gecko) Chrome/79.0.3945.130 Safari/537.36" -i "local.m3u8" "out.mp4"
>
> Please always provide the command line you tested together with the
> complete,
> uncut console output when asking for support here.
>
> Carl Eugen
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user 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] Submitting a Feature Request

2020-01-19 Thread Chris via ffmpeg-user
I described the desired feature in a post several weeks ago. That thread has 
now stalled with no progress being made. Here is the desired feature again:
We already have:



out_range=full  and out_range=tv



Why not have out_range=unity which does not alter the video levels at all?



I am trying to make video levels compliant with EBU R 103 which is RGB in the 
range 5 - 246. I have written a C program to do this which uses ffmpeg to 
import and export video frames, but ffmpeg makes it impossible because it 
overrides the video levels my program sets, forcing levels to 0 - 255 or 16 - 
235. I want ffmpeg to leave my levels alone.

-Original Message-
From: Carl Eugen Hoyos 
To: FFmpeg user questions 
Sent: Sun, Jan 19, 2020 10:02 am
Subject: Re: [FFmpeg-user] Submitting a Feature Request

Am So., 19. Jan. 2020 um 18:55 Uhr schrieb Chris via ffmpeg-user
:
>
> What is the best way to submit a feature request for ffmpeg that will not get 
> blown off or tossed aside?
> I have looked at the developer mailing list and it appears to be full of 
> patches — no feature requests.

Please do not post feature requests on the development mailing list.

You may open a ticket but it is better if you explain the issue here first,
this typically includes providing a command line you tested together with
the complete, uncut console output testing current FFmpeg git head.

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

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

Re: [FFmpeg-user] Custom User Agent Header not working

2020-01-19 Thread Carl Eugen Hoyos
Am So., 19. Jan. 2020 um 03:51 Uhr schrieb Temm :
>
> My command:
> ffmpeg.exe -protocol_whitelist file,http,https,tcp,tls,crypto -user-agent
> "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like
> Gecko) Chrome/79.0.3945.130 Safari/537.36" -i "local.m3u8" "out.mp4"

Please always provide the command line you tested together with the complete,
uncut console output when asking for support here.

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

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

Re: [FFmpeg-user] Submitting a Feature Request

2020-01-19 Thread Carl Eugen Hoyos
Am So., 19. Jan. 2020 um 19:02 Uhr schrieb Carl Eugen Hoyos
:
>
> Am So., 19. Jan. 2020 um 18:55 Uhr schrieb Chris via ffmpeg-user
> :
> >
> > What is the best way to submit a feature request for ffmpeg that will not 
> > get blown off or tossed aside?
> > I have looked at the developer mailing list and it appears to be full of 
> > patches — no feature requests.
>
> Please do not post feature requests on the development mailing list.
>
> You may open a ticket but it is better if you explain the issue here first,
> this typically includes providing a command line you tested together with
> the complete, uncut console output testing current FFmpeg git head.

If this is about v210 encoding, please explain your use-case.

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

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

Re: [FFmpeg-user] Submitting a Feature Request

2020-01-19 Thread Carl Eugen Hoyos
Am So., 19. Jan. 2020 um 18:55 Uhr schrieb Chris via ffmpeg-user
:
>
> What is the best way to submit a feature request for ffmpeg that will not get 
> blown off or tossed aside?
> I have looked at the developer mailing list and it appears to be full of 
> patches — no feature requests.

Please do not post feature requests on the development mailing list.

You may open a ticket but it is better if you explain the issue here first,
this typically includes providing a command line you tested together with
the complete, uncut console output testing current FFmpeg git head.

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

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

[FFmpeg-user] Submitting a Feature Request

2020-01-19 Thread Chris via ffmpeg-user
What is the best way to submit a feature request for ffmpeg that will not get 
blown off or tossed aside?
I have looked at the developer mailing list and it appears to be full of 
patches — no feature requests.
There is also the bug tracker but this is not really a bug, just a feature 
request.
I want to have unity video levels as described in a previous post, without the 
levels being forced to 0 - 255 or 16 - 235.
I would code it myself but it would be a very inefficient use of time while I 
unravel the inner workings of the libraries, the source code, the coding 
conventions, the compilation environment, etc. from the bottom of the learning 
curve.
Thank you.
___
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 there a bulk mode for ffprobe

2020-01-19 Thread Alexander Strasser
Hi Mike!

On 2020-01-17 08:59 -0800, Carl Zwanzig wrote:
> On 1/17/2020 3:32 AM, Mike Martin wrote:
> > Thats what I am doing atm (via perl open3) and I am only getting about 4.7
> > files per second. (30160 in 105 minutes)
> > This is what I am passing
> > "ffprobe", '-hide_banner', '-loglevel','0','-show_format',
> > '-show_streams','-print_format','flat', '-sexagesimal', "$file"
> > Any ideas to speed this up
>
> I think you need to actually time some invocations of ffmpeg and possibly
> profile them (to know where the time is going).
>
> With that many files, are they on local disk or network storage (NFS or 
> CIFS?)?
> Is it memory or processor constrained?
> How fast can anything open files on this system?
>
> Consider rolling up a program or script that simply opens a file, reads the
> first couple k bytes, and closes it. See how fast that can open all of those
> files. I'll guess it's not much faster than the 4.7/sec.
>
> (There are also other media analysis tools to try, I often use MediaInfo.)
>
> And please don't top-post on this mailing list.

You might also try parallizing the task by starting multiple ffprobe
processes at once. For some first experiments you could prepare a list
of files and use xargs:

time 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] Play video and simultaneously record audio

2020-01-19 Thread Michael Koch

Am 19.01.2020 um 13:54 schrieb Paul B Mahol:

On 1/19/20, Michael Koch  wrote:

Hello Gyan,


I did try the above example (with some changes) but it has another
problem: FFplay can't be stopped when the video has ended, and it
uses the full screen. Which means I can't see the console window and
can't close it. FFmpeg can only be stopped by the task manager.

Looks like your video resolution is equal to or greater than your
display. Add `-vf scale=iw/2:-1` to resize it.

ok, this works fine and now I can see the console window and close it
when the video has ended.


Add -autoexit to quit ffplay when it detects EOF.

This didn't work in my test. The FFplay window remains open and shows
the last frame, until I manually close the FFmpeg console window.
Pressing "q" or "esc" to close the FFplay window does only work if the
video is still running, but not if the video has already ended.

I've written a summary into my book in chapter 3.16 (but chapter
numbering may change in future):
http://www.astro-electronic.de/FFmpeg_Book.pdf

Book contains obsolete info about v360 filter, please fix it.


you mean the new fisheye output? I saw it, but I'm still waiting for new 
build on Zeranoe so that I can test it.


Michael

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

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

Re: [FFmpeg-user] Play video and simultaneously record audio

2020-01-19 Thread Paul B Mahol
On 1/19/20, Michael Koch  wrote:
> Hello Gyan,
>
>>> I did try the above example (with some changes) but it has another
>>> problem: FFplay can't be stopped when the video has ended, and it
>>> uses the full screen. Which means I can't see the console window and
>>> can't close it. FFmpeg can only be stopped by the task manager.
>>
>> Looks like your video resolution is equal to or greater than your
>> display. Add `-vf scale=iw/2:-1` to resize it.
>
> ok, this works fine and now I can see the console window and close it
> when the video has ended.
>
>> Add -autoexit to quit ffplay when it detects EOF.
>
> This didn't work in my test. The FFplay window remains open and shows
> the last frame, until I manually close the FFmpeg console window.
> Pressing "q" or "esc" to close the FFplay window does only work if the
> video is still running, but not if the video has already ended.
>
> I've written a summary into my book in chapter 3.16 (but chapter
> numbering may change in future):
> http://www.astro-electronic.de/FFmpeg_Book.pdf

Book contains obsolete info about v360 filter, please fix it.

>
> Thanks for your help,
> Michael
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
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] Play video and simultaneously record audio

2020-01-19 Thread Michael Koch

Hello Gyan,

I did try the above example (with some changes) but it has another 
problem: FFplay can't be stopped when the video has ended, and it 
uses the full screen. Which means I can't see the console window and 
can't close it. FFmpeg can only be stopped by the task manager.


Looks like your video resolution is equal to or greater than your 
display. Add `-vf scale=iw/2:-1` to resize it.


ok, this works fine and now I can see the console window and close it 
when the video has ended.



Add -autoexit to quit ffplay when it detects EOF.


This didn't work in my test. The FFplay window remains open and shows 
the last frame, until I manually close the FFmpeg console window. 
Pressing "q" or "esc" to close the FFplay window does only work if the 
video is still running, but not if the video has already ended.


I've written a summary into my book in chapter 3.16 (but chapter 
numbering may change in future):

http://www.astro-electronic.de/FFmpeg_Book.pdf

Thanks for your help,
Michael

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

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