Re: [FFmpeg-user] Which graphics card for FFmpeg + Linux?

2020-09-23 Thread Edward Park
Hi,

> I've searched the web for infos about which graphics card/GPU to get for 
> using FFmpeg's hardware encoding/decoding features, but the results where 
> either heavily dated or unclear.
> If someone can point me at something, I'd be very grateful :)
> 
> Sorry if this has been asked a million times before, but:
> ---
> Which graphics card would you suggest to buy for a new PC (AMD Ryzer CPU) 
> with the intention of FFmpeg running well with it?
> What would the developers suggest?
> ---
> 
> 
> I knew about [FFmpeg on nvidia 
> developer](https://developer.nvidia.com/ffmpeg), but I'd also be curious 
> about the status with AMD GPUs?

"FFmpeg’s hardware encoding/decoding features” is kinda too broad of a use 
case, with only that query I’d say get the best “pro” line card you can.

If you’re asking about Nvidia vs Radeon, green team will recommend Quadros and 
red (now blue) team will recommend FirePro and Radeon Pro :P

There is basically a reference implementation of the nvenc/dec for directly 
using the hardware on nvidia cards, but amd tends to take a different approach 
with their sdks, abstracting away as much as possible rather than directly 
working with specific hardware, so it might not be as clear when hardware 
acceleration is happening (amf might be wrapped around vcn, and used by 
directx, Mac frameworks, vulkan, etc)

Regards,
Ted Park

P.S. lol@“and RTFMs"

___
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] "cookies" option doesn't seem to work.

2020-09-23 Thread Benjamin Peng
Thank you Ted!

I totally overlooked the text and thought "path" and "domains" are just the
cookie content in that example.


On Wed, Sep 23, 2020 at 11:19 PM Benjamin Peng  wrote:

> I'm trying to set cookies for a HLS request.
>
> >ffmpeg -v 99 -cookies "test=blabla;" -i
> https://del.thumva.com/hls/20200621-0005-05/index_1.m3u8
>
> But the request doesn't actually include my cookie:
>
> [https @ 005f7100] request: GET /hls/20200621-0005-05/index_1.m3u8
> HTTP/1.1
> User-Agent: Lavf/58.51.100
> Accept: */*
> Range: bytes=0-
> Connection: close
> Host: del.thumva.com
> Icy-MetaData: 1
>
> If I use "headers" instead, it works fine:
>
> >ffmpeg -v 99 -headers "Cookie: test=blabla;" -i
> https://del.thumva.com/hls/20200621-0005-05/index_1.m3u8
>
> [https @ 00446040] request: GET /hls/20200621-0005-05/index_1.m3u8
> HTTP/1.1
> User-Agent: Lavf/58.51.100
> Accept: */*
> Range: bytes=0-
> Connection: close
> Host: del.thumva.com
> Icy-MetaData: 1
> Cookie: test=blabla;
>
> Why is it like this? Did I understand the "cookies" option wrong?
>
___
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] ffplay struggling with this station!

2020-09-23 Thread Mark Filipak (ffmpeg)

On 09/24/2020 12:52 AM, Edward Park wrote:

Hi,

I just realized that the station was public, so I just tried:
% ffplay -nodisp -vn 
"https://jrtv-live.ercdn.net/jrradio/englishradiovideo.m3u8”
no issues.

I did try without that buffer flag, but that had no effect. I’m going to try 
updating ffplay, and see if that helps.

Yeah also update the tls library before building and if that still doesn’t fix 
it it might be the connection speed?


Also, I’ve noticed that vlc had a 1000 ms “network cache”, and I wonder if that 
had anything to do with playing that station flawlessly.


That probably means something like it’s’ playing 1 second in the past, so if 
something happens and it can’t keep up in realtime there’s still 1 second to 
fix it before it skips.


That's exactly what it means, though I think the word "buffer" would be more 
appropriate.

cache [noun]: a temporary storage space or memory that allows fast access to 
data.

buffer [noun]: a storage device for temporarily holding data until the computer is ready to receive 
or process the data, as when a receiving unit has an operating speed lower than that of the unit 
feeding data to it.

___
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] ffplay struggling with this station!

2020-09-23 Thread Edward Park
Hi,

I just realized that the station was public, so I just tried:
% ffplay -nodisp -vn 
"https://jrtv-live.ercdn.net/jrradio/englishradiovideo.m3u8”
no issues.
> I did try without that buffer flag, but that had no effect. I’m going to try 
> updating ffplay, and see if that helps. 
Yeah also update the tls library before building and if that still doesn’t fix 
it it might be the connection speed?

> Also, I’ve noticed that vlc had a 1000 ms “network cache”, and I wonder if 
> that had anything to do with playing that station flawlessly. 

That probably means something like it’s’ playing 1 second in the past, so if 
something happens and it can’t keep up in realtime there’s still 1 second to 
fix it before it skips.

Regards,
Ted Park

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

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

Re: [FFmpeg-user] "cookies" option doesn't seem to work.

2020-09-23 Thread Edward Park
Hi,

> I'm trying to set cookies for a HLS request.
> 
>> ffmpeg -v 99 -cookies "test=blabla;" -i
> https://del.thumva.com/hls/20200621-0005-05/index_1.m3u8
> 
> But the request doesn't actually include my cookie:

See docs for http in ffmpeg-protocols.

> At the very least, each cookie must specify a value along with a path and 
> domain.  HTTP requests that match both the domain and path will automatically 
> include the cookie value in the HTTP Cookie header field. Multiple cookies 
> can be delimited by a newline.
> 
> The required syntax to play a stream specifying a cookie is:
> 
>   ffplay -cookies "nlqptid=nltid=tsn; path=/; domain=somedomain.com;” 
> http://somedomain.com/somestream.m3u8
> 

Regards,
Ted Park

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

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

[FFmpeg-user] "cookies" option doesn't seem to work.

2020-09-23 Thread Benjamin Peng
I'm trying to set cookies for a HLS request.

>ffmpeg -v 99 -cookies "test=blabla;" -i
https://del.thumva.com/hls/20200621-0005-05/index_1.m3u8

But the request doesn't actually include my cookie:

[https @ 005f7100] request: GET /hls/20200621-0005-05/index_1.m3u8
HTTP/1.1
User-Agent: Lavf/58.51.100
Accept: */*
Range: bytes=0-
Connection: close
Host: del.thumva.com
Icy-MetaData: 1

If I use "headers" instead, it works fine:

>ffmpeg -v 99 -headers "Cookie: test=blabla;" -i
https://del.thumva.com/hls/20200621-0005-05/index_1.m3u8

[https @ 00446040] request: GET /hls/20200621-0005-05/index_1.m3u8
HTTP/1.1
User-Agent: Lavf/58.51.100
Accept: */*
Range: bytes=0-
Connection: close
Host: del.thumva.com
Icy-MetaData: 1
Cookie: test=blabla;

Why is it like this? Did I understand the "cookies" option wrong?
___
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] ffplay struggling with this station!

2020-09-23 Thread Firas Shahin via ffmpeg-user
Ted,

I did try without that buffer flag, but that had no effect. I’m going to try 
updating ffplay, and see if that helps. 

Also, I’ve noticed that vlc had a 1000 ms “network cache”, and I wonder if that 
had anything to do with playing that station flawlessly. 

Firas

> On Sep 23, 2020, at 17:59, Edward Park  wrote:
> 
> Hi,
> 
>> I use the following command to play the station: 
>> $ ffplay -nodisp -vn -fflags nobuffer -fflags discardcorrupt -flags 
>> low_delay https://jrtv-live.ercdn.net/jrradio/englishradiovideo.m3u8
> 
> 
> I think “-fflags nobuffer” tells ffplay not to buffer? So there will be 
> nothing to play every time ffmpeg finishes playing a segment and only then 
> starts fetching the next segment.
> 
> But I also thought if you use -fflags multiple times without a plus sign 
> before the flag only the last one was used, so I’m not sure.
> 
> And I’m pretty sure low_delay is only a thing in some video decoders.
> 
> Regards,
> Ted Park
> 
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

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

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

Re: [FFmpeg-user] ffplay struggling with this station!

2020-09-23 Thread Edward Park
Hi,

> I use the following command to play the station: 
> $ ffplay -nodisp -vn -fflags nobuffer -fflags discardcorrupt -flags low_delay 
> https://jrtv-live.ercdn.net/jrradio/englishradiovideo.m3u8


I think “-fflags nobuffer” tells ffplay not to buffer? So there will be nothing 
to play every time ffmpeg finishes playing a segment and only then starts 
fetching the next segment.

But I also thought if you use -fflags multiple times without a plus sign before 
the flag only the last one was used, so I’m not sure.

And I’m pretty sure low_delay is only a thing in some video decoders.

Regards,
Ted Park

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

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

Re: [FFmpeg-user] ffplay struggling with this station!

2020-09-23 Thread Carl Zwanzig

Hello,

Please limit the use of "!"...

On 9/23/2020 3:19 PM, Firas Shahin via ffmpeg-user wrote:
ffplay version 3.2.15-0+deb9u1 Copyright (c) 2003-2020 the FFmpeg developers  built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516 
That's quite an old version, you'll need to try with an up-to-date build, 
preferable from the "git head" (see https://ffmpeg.org/download.html). Also, 
be careful in posting from yahoo as its html->plaintext converter loses 
line-ends; this makes the output much harder to read.


Later,

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

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

[FFmpeg-user] ffplay struggling with this station!

2020-09-23 Thread Firas Shahin via ffmpeg-user
Hi,
I have had this problem streaming a specific radio station where every time a 
new TS is opened (fetched), the "aq" value drops to zero from 20KB which 
produces a "skip" effect every fixed period of time!
VLC plays THIS station properly, and I have NO problem playing a bunch of other 
radio stations perfectly using the same command!

I use the following command to play the station: 
$ ffplay -nodisp -vn -fflags nobuffer -fflags discardcorrupt -flags low_delay 
https://jrtv-live.ercdn.net/jrradio/englishradiovideo.m3u8


And this is what I get:

ffplay version 3.2.15-0+deb9u1 Copyright (c) 2003-2020 the FFmpeg developers  
built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516  configuration: 
--prefix=/usr --extra-version=0+deb9u1 --toolchain=hardened 
--libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu 
--enable-gpl --disable-stripping --enable-avresample --enable-avisynth 
--enable-gnutls --enable-ladspa --enable-libass --enable-libbluray 
--enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 
--enable-libflite --enable-libfontconfig --enable-libfreetype 
--enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame 
--enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse 
--enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr 
--enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame 
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp 
--enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx 
--enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 
--enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv 
--enable-libx264 --enable-shared  libavutil      55. 34.101 / 55. 34.101  
libavcodec     57. 64.101 / 57. 64.101  libavformat    57. 56.101 / 57. 56.101  
libavdevice    57.  1.100 / 57.  1.100  libavfilter     6. 65.100 /  6. 65.100  
libavresample   3.  1.  0 /  3.  1.  0  libswscale      4.  2.100 /  4.  2.100  
libswresample   2.  3.100 /  2.  3.100  libpostproc    54.  1.100 / 54.  
1.100[hls,applehttp @ 0x7febd920] Opening 
'https://jrtv-live.ercdn.net/jrradio/englishradiovideo-1598748970.ts' for 
readingInput #0, hls,applehttp, from 
'https://jrtv-live.ercdn.net/jrradio/englishradiovideo.m3u8':  Duration: N/A, 
start: 66699.679111, bitrate: N/A  Program 0     Metadata:      variant_bitrate 
: 0    Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 
640x360 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc    Metadata:      
variant_bitrate : 0    Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 
44100 Hz, stereo, fltp    Metadata:      variant_bitrate : 0[hls,applehttp @ 
0x7febd920] Opening 
'https://jrtv-live.ercdn.net/jrradio/englishradiovideo-1598748980.ts' for 
reading[hls,applehttp @ 0x7febd920] Opening 
'https://jrtv-live.ercdn.net/jrradio/englishradiovideo-1598748990.ts' for 
reading[hls,applehttp @ 0x7febd920] Opening 
'https://jrtv-live.ercdn.net/jrradio/englishradiovideo-1598749000.ts' for 
reading^C736.65 M-A:  0.000 fd=   0 aq=   20KB vq=    0KB sq=    0B f=0/0  

 Thank you for your help
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] bwdif filter question

2020-09-23 Thread Mark Filipak (ffmpeg)

On 09/23/2020 05:27 PM, Paul B Mahol wrote:

On Wed, Sep 23, 2020 at 04:26:27PM -0400, Mark Filipak (ffmpeg) wrote:

On 09/23/2020 03:53 PM, Carl Eugen Hoyos wrote:

Am Di., 22. Sept. 2020 um 00:47 Uhr schrieb Mark Filipak (ffmpeg)
:


On 09/21/2020 06:07 PM, Carl Eugen Hoyos wrote:

Am Mo., 21. Sept. 2020 um 14:16 Uhr schrieb Mark Filipak (ffmpeg)
:



Here is what you wrote:
"The following makes little sense, it is just meant as an example:
$ ffmpeg -f lavfi -i testsrc2,field -vf bwdif -f null -"

That "explains" nothing. Worse, it seems crass and sarcastic.


No.
This was an example to show you how you can feed one field to
a filter in our system, this is what you had asked for ...


I didn't ask for that.


This is not true:

How can a frame contain just one field?


I did not ask for an example to see "how you can feed one field to a
filter". I asked how a frame can contain just one field. You have yet to
answer that. I think it's impossible. You may be referring to a frame that
is deinterlaced and cut in half (e.g. from 720x576 to 720x288), in which
case the frame contains no field.

You wrote: "(If you provide only one field, no FFmpeg deinterlacer will
produce useful output.)". Of course I agree with the "no...useful output"
part, however, how can a person "provide only one field"? That implies that
"provide only one field" is an option. I think that's impossible, so I asked
you how it was possible. I did not ask how to implement that impossibility
on the command line (which I think is likewise impossible). It is along
these lines that misunderstanding and confusion and novice angst ensues.

Am I nitpicking? I think not. You are an authority. When an authority uses
loose language, misunderstanding and confusion and angst must follow. But
MPEG and ffmpeg seems to be primed to require loose language. That needs to
end.


Try to read and follow separatefields, weave and doubleweave filters 
documentation.


Thank you, Paul. I do try to read them. Is there something specific to which 
you can point?
All inputs are accepted and appreciated. I'm sure we both endeavor to make 
ffmpeg better.
___
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] Which graphics card for FFmpeg + Linux?

2020-09-23 Thread Peter B.

Hi everyone!

I've searched the web for infos about which graphics card/GPU to get for 
using FFmpeg's hardware encoding/decoding features, but the results 
where either heavily dated or unclear.

If someone can point me at something, I'd be very grateful :)

Sorry if this has been asked a million times before, but:
---
Which graphics card would you suggest to buy for a new PC (AMD Ryzer 
CPU) with the intention of FFmpeg running well with it?

What would the developers suggest?
---


I knew about [FFmpeg on nvidia 
developer](https://developer.nvidia.com/ffmpeg), but I'd also be curious 
about the status with AMD GPUs?




Thank you very much in advance!
Peter B.


--
# Some related links:
https://stackoverflow.com/questions/44510765/gpu-accelerated-video-processing-with-ffmpeg
https://www.phoronix.com/scan.php?page=news_item&px=FFmpeg-OpenVINO-GPU
https://www.reddit.com/r/ffmpeg/comments/hhdibw/how_to_use_ffmpeg_upscale_with_amd_gpu_on_linux/
___
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] Correct conversion of yuvj420p?

2020-09-23 Thread Peter B.

Hi Ted,

On 11.09.20 14:03, Ted Park wrote:

My problem is, that I have literally hundreds (actually more than 1000+) of
these H.264/yuvj420p files that are to be auto-converted to archival FFV1,
but because of the "j" the "pix_fmt +" option cannot be used, which throws
all those files into error - and I'd like to fix this :)

setrange affects the frames, not any end result SPS i think. Leaving it out 
doesn’t set the parameters? Does it convert to limited range by default?


I'm still looking for a way to automatically transcode yuvj420p files 
along with other pix_fmts to FFV1, while keeping "-pix_fmt +" to make 
sure no silent conversions are happening.


Does anyone have a suggestion?


I currently have to fish out all yuvj420p files, because they require a 
different recipe than all other source files. This behavior doesn't seem 
technically necessary. Why do "yuv420p+colorinfo" files (created with 
FFmpeg) revert back to being interpreted as yuvj420p? I thought it's 
deprecated?

Not complaining, I'd just like to understand this behavior :)

How do I create a non-yuvj420p file - while keeping colorinfo proper?
btw: MediaInfo shows no difference between yuv420p+colorinfo and 
yuvj420p. Here's a related thread:

https://github.com/MediaArea/MediaInfo/issues/484


As long as the content hashcodes of the image data is identical and the 
color interpretation metadata set to correct values (=identical to the 
source), according to ffprobe - my _Archival Spidersenses(tm)_ are 
satisfied.


Am I overlooking something?



Also, what are some of the benefits of reencoding footage for archival? I can 
maybe think of being able to detect partial corruption and possibly a increase 
in data/bitrate, but not much else.


Data format normalization is a thing.
It even helps to rewrap the container with "-c copy". Stabilizes 
behavior when dealing with different applications. Normalizing the 
codecs without loss is an additional plus.


Imagine dealing with thousands of recordings in the colorful rainbow 
variety of media formats over several decades from several sources. It's 
great fun actually! (when getting the time and resources to hack a bunch 
of bytes into making sense ;))


You wouldn't believe how many "dialects" of H.264/MP4 I encounter on a 
daily basis.


Yes it significantly increases the datarate, but it makes it possible to 
actually make our archival content as seamlessly accessible as possible. 
There's lots of custom ffmpeg-auto-transcode scripts running to fill 
archive's websites. In order to keep the data corruption at zero, we use 
content- and file-hashcodes to validate any changes to the archival 
recordings.

That's also great fun, actually! :)



Still grateful for a "-pix_fmt +" suggestion :)
Thanks!
Peter B.
___
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] bwdif filter question

2020-09-23 Thread Paul B Mahol
On Wed, Sep 23, 2020 at 04:26:27PM -0400, Mark Filipak (ffmpeg) wrote:
> On 09/23/2020 03:53 PM, Carl Eugen Hoyos wrote:
> > Am Di., 22. Sept. 2020 um 00:47 Uhr schrieb Mark Filipak (ffmpeg)
> > :
> > > 
> > > On 09/21/2020 06:07 PM, Carl Eugen Hoyos wrote:
> > > > Am Mo., 21. Sept. 2020 um 14:16 Uhr schrieb Mark Filipak (ffmpeg)
> > > > :
> > 
> > > > > Here is what you wrote:
> > > > > "The following makes little sense, it is just meant as an example:
> > > > > $ ffmpeg -f lavfi -i testsrc2,field -vf bwdif -f null -"
> > > > > 
> > > > > That "explains" nothing. Worse, it seems crass and sarcastic.
> > > > 
> > > > No.
> > > > This was an example to show you how you can feed one field to
> > > > a filter in our system, this is what you had asked for ...
> > > 
> > > I didn't ask for that.
> > 
> > This is not true:
> > > How can a frame contain just one field?
> 
> I did not ask for an example to see "how you can feed one field to a
> filter". I asked how a frame can contain just one field. You have yet to
> answer that. I think it's impossible. You may be referring to a frame that
> is deinterlaced and cut in half (e.g. from 720x576 to 720x288), in which
> case the frame contains no field.
> 
> You wrote: "(If you provide only one field, no FFmpeg deinterlacer will
> produce useful output.)". Of course I agree with the "no...useful output"
> part, however, how can a person "provide only one field"? That implies that
> "provide only one field" is an option. I think that's impossible, so I asked
> you how it was possible. I did not ask how to implement that impossibility
> on the command line (which I think is likewise impossible). It is along
> these lines that misunderstanding and confusion and novice angst ensues.
> 
> Am I nitpicking? I think not. You are an authority. When an authority uses
> loose language, misunderstanding and confusion and angst must follow. But
> MPEG and ffmpeg seems to be primed to require loose language. That needs to
> end.

Try to read and follow separatefields, weave and doubleweave filters 
documentation.

> ___
> 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] Segment at Scene Change

2020-09-23 Thread adam smith via ffmpeg-user

> I would like to segment and create a sequence of ts files that are split 
> based on a scene change threshold, and have a separate ts file for each song.

You could probably do this in two passes. 
The first using the select filter to find the timing of each new image. 
The second pass using the durations of the timings found to output relevant 
segments using -ss to set the start and -t to set the duration. 


___
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] Howto specify needed options for ffmpeg

2020-09-23 Thread Carl Eugen Hoyos
Am Mi., 23. Sept. 2020 um 17:24 Uhr schrieb Thomas Seilund via
ffmpeg-user :

> Now I write to udp and not to a local file with this command:
>
> raspivid -t 0 -b 1000 -n -o udp://239.255.42.42:5004
> Connecting to 239.255.42.42:5004...connected, sending video...
>
>
> On the same host I read from udp with this command - video is never
> displayed
>
> ffplay -f h264 -i udp://239.255.42.42:5004

In general, you should not force the input format.

You should be able to record the udp stream with tcpdump,
you can then investigate the output file.

> ffplay version N-97152-g52523b6963 Copyright (c) 2003-2020 the FFmpeg
> developers built with gcc 8 (Raspbian 8.3.0-6+rpi1)
>   configuration: --extra-libs='-lpthread -lm' --enable-gpl
> --enable-libass --enable-libfreetype --enable-libmp3lame
> --enable-libvorbis --enable-libx264 --disable-doc --enable-nonfree

Is this binary distributed somewhere?

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] need help with making an "in sync" screen recording.

2020-09-23 Thread Carl Eugen Hoyos
Am Mi., 23. Sept. 2020 um 13:59 Uhr schrieb Amon Gibson Albuquerque
Nunes :
>
> OK. so first of all i wanted to record some footage of a game i've bought 
> from a digital storefront. as i experimented on which parameters and 
> arguments i would use to record said footage i came up with this.
>
> ffmpeg -thread_queue_size 2048 -f gdigrab -draw_mouse 0 -framerate 30 
> -show_region 0 -i desktop -thread_queue_size 2048 -f dshow -i audio="Mixagem 
> estéreo (Conexant SmartAudio HD)" -vf "crop=512:303:0:40,scale=1024:606" -af 
> "adelay=1000|1000" -f vob -codec:v mpeg2video -q 1 -g 1 -bitrate 4000 
> -maxrate 5000 -codec:a pcm_s16be gameplay_footage_01.mpg

(Very old documentation explains that -q 1 should not be used.)
Complete, uncut console output missing.

The option -bitrate has no effect in your command line.

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] bwdif filter question

2020-09-23 Thread Mark Filipak (ffmpeg)

On 09/23/2020 03:53 PM, Carl Eugen Hoyos wrote:

Am Di., 22. Sept. 2020 um 00:47 Uhr schrieb Mark Filipak (ffmpeg)
:


On 09/21/2020 06:07 PM, Carl Eugen Hoyos wrote:

Am Mo., 21. Sept. 2020 um 14:16 Uhr schrieb Mark Filipak (ffmpeg)
:



Here is what you wrote:
"The following makes little sense, it is just meant as an example:
$ ffmpeg -f lavfi -i testsrc2,field -vf bwdif -f null -"

That "explains" nothing. Worse, it seems crass and sarcastic.


No.
This was an example to show you how you can feed one field to
a filter in our system, this is what you had asked for ...


I didn't ask for that.


This is not true:

How can a frame contain just one field?


I did not ask for an example to see "how you can feed one field to a filter". I asked how a frame 
can contain just one field. You have yet to answer that. I think it's impossible. You may be 
referring to a frame that is deinterlaced and cut in half (e.g. from 720x576 to 720x288), in which 
case the frame contains no field.


You wrote: "(If you provide only one field, no FFmpeg deinterlacer will produce useful output.)". Of 
course I agree with the "no...useful output" part, however, how can a person "provide only one 
field"? That implies that "provide only one field" is an option. I think that's impossible, so I 
asked you how it was possible. I did not ask how to implement that impossibility on the command line 
(which I think is likewise impossible). It is along these lines that misunderstanding and confusion 
and novice angst ensues.


Am I nitpicking? I think not. You are an authority. When an authority uses loose language, 
misunderstanding and confusion and angst must follow. But MPEG and ffmpeg seems to be primed to 
require loose language. That needs to end.

___
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] (no subject)

2020-09-23 Thread vinod kc
Hi,
I have a video with 45 minutes duration. This video contains 2-5 breaks.
Each break time lasts 10 seconds. At this time, the screen is completely
black. But, we can see a watermark and time code clearly. So I want to get;
1. The start and end time of this black screen break.
2. The time code on this black screen frame.
I hope somebody can help me with this. Now, i have this code and i can
create a text file with this.
-
ffmpeg -i video.mp4 -vf blackdetect=d="8":pic_th="0.90":pix_th="0.10" -an
-f null - 2> logfile.txt
---
But this code will only find the start time & end time  of each break. I
want the time code also. And one more thing. Those numeric values in that
code is the result of my trial and error experiment. I don't know what are
they. I hope someone will give a clarity on this subject. Thanks in advance.
-Vinod Chandran.


Virus-free.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
___
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] bwdif filter question

2020-09-23 Thread Carl Eugen Hoyos
Am Di., 22. Sept. 2020 um 00:47 Uhr schrieb Mark Filipak (ffmpeg)
:
>
> On 09/21/2020 06:07 PM, Carl Eugen Hoyos wrote:
> > Am Mo., 21. Sept. 2020 um 14:16 Uhr schrieb Mark Filipak (ffmpeg)
> > :

> >> Here is what you wrote:
> >> "The following makes little sense, it is just meant as an example:
> >> $ ffmpeg -f lavfi -i testsrc2,field -vf bwdif -f null -"
> >>
> >> That "explains" nothing. Worse, it seems crass and sarcastic.
> >
> > No.
> > This was an example to show you how you can feed one field to
> > a filter in our system, this is what you had asked for ...
>
> I didn't ask for that.

This is not true:
> How can a frame contain just one field?

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] xfade filter - custom expressions

2020-09-23 Thread Edward Park
Hi,

> "XY - The coordinates of the current sample." - Is the transition defined
> by selecting a color/state for each pixel?
> 
> "WH - The width and height of the image." - OK.
> 
> "P - Progress of transition effect." - Looking at the source, this is a
> float. Ranging from 0-1 I assume(?)
> 
> "PLANE - Currently processed plane." - Not sure what this means. How many
> planes are there? I'd say at least 2, one for each input. Are there more?
> 
> "A - Return value of first input at current location and plane." - This
> would return something like first_input[x][y] if the input were treated as
> an array? But I still don't understand what the plane refers to OR what the
> value returned would be. Would it be 0 or 1, or some color value?
> 
> "a0(x, y) a1(x, y) a2(x, y) a3(x, y) - Return the value of the pixel at
> location (x,y) of the first/second/third/fourth component of first input."
> - What does 'component' refer to? 1234 == RGBA ?
> 
> Is there an example that illustrates how to use a custom expression to
> achieve a meaningful transition?

I’m not sure how to write equations for separate components on the command line 
either, but using your interpretation as reference, tried out 
expr='A*P+B*(1-P)’ and got a basic working fade, at least looking at it 
visually with a couple sources.

Regards,
Ted Park

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

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

Re: [FFmpeg-user] bwdif filter question

2020-09-23 Thread Mark Filipak (ffmpeg)

On 09/23/2020 12:19 PM, Greg Oliver wrote:

On Tue, Sep 22, 2020 at 1:14 PM Mark Filipak (ffmpeg) 
wrote:

-snip-


He has repeatedly posted to either understand or define better
the internals of ffmpeg itself...


Thanks for the kind words.

Yaknow, I'm not special or a wizard. I suffer the same assumptions as everyone. As I work on my 
glossary, I'm amazed when I realize something that I had wrong, but had worked on steadily for weeks 
without actually seeing.


Let me give you an example. Last night I realized no matter whether a stream is frame or TFF 
(top_field_first) or BFF (bottom_field_first), that macroblock samples have exactly the same order; 
that it's the order that these samples are read out by the decoder that determines whether the 1st 
sample goes to line 1 or line 2, and whether the 4 luminance blocks are concurrent (aka "progressive").


In other words, TFF and BFF are not formats. They are access methods!!

That realization caused me to dump a raft of seemingly clever, seemingly insightful diagrams that 
had taken weeks of revisions to hone. I realized that those diagrams were crap and just reinforced 
concepts that seem reasonable and are universally accepted but that can't survive close scrutiny.


That kind of insight (which makes me think I'm stupid for not seeing it immediately) will be in the 
glossary. The existing stuff not only implies that fields exist -- fields do not exist (no such 
structure, at least not in streams) and it took me a month of learning how to parse macroblocks to 
discover that -- the existing stuff implies that TFF and BFF are differing formats, but they're not 
formats at all!


I contend that ordinary users can understand the differences between (hard) structure and (soft) 
description, and between a format and a method. I think ordinary users are so hungry to get real 
information that they're willing beg and plead and (nearly) debase themselves.

___
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] bwdif filter question

2020-09-23 Thread Greg Oliver
On Tue, Sep 22, 2020 at 1:14 PM Mark Filipak (ffmpeg) 
wrote:

> I could use some help in my efforts. Due to my ignorance, it's taking me
> weeks to figure out things
> that should be resolved in minutes. In 5 days, I'll be 74 years old. With
> corona virus and age, I
> don't know how much longer I'll be around, but I'm sure I can help the
> ffmpeg project if the
> principals in the project will just stop sniping at me and share knowledge.
>
> Thank you for your oh-so valuable contributions. I will study AVFrame to
> see how I can use it to
> better communicate.


I must say that I am by no means an ffmpeg expert (or even an advanced
user).  I am on more mailing lists than your average person though. The
fact that "troll" keeps coming up in response to Mark's posts is quite
annoying.  He has repeatedly posted to either understand or define better
the internals of ffmpeg itself.  His posts are always well defined and
pointed - if that is hard for you who want to define it as trolling to
understand, then you should kick rocks.  I personally learn more about
ffmpeg from his posts (and therefore the responses from understandable
others) than I would otherwise from reading outdated wiki and docs.

If you feel threatened by people who desire knowledge or otherwise demand
(subtlety) proper definitions of technology - maybe you should troll
elsewhere.  I have never experienced a post on this list that maintains
otherwise.

Please quit making me read the BS that accompanies most of the intelligent
questions or contradiction responses - I find it very  educational in the
least.
___
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] Howto specify needed options for ffmpeg

2020-09-23 Thread Thomas Seilund via ffmpeg-user
Dear All

I don't know how to read a h264 network stream with ffmpeg.


I create the stream on a Raspberry Pi with this command:

raspivid -t 0 -b 1000 -n -o test.h264


I am able to view the video with ffplay:

ffplay -i test.h264 
ffplay version N-97152-g52523b6963 Copyright (c) 2003-2020 the FFmpeg
developers built with gcc 8 (Raspbian 8.3.0-6+rpi1)
  configuration: --extra-libs='-lpthread -lm' --enable-gpl
--enable-libass --enable-libfreetype --enable-libmp3lame
--enable-libvorbis --enable-libx264 --disable-doc --enable-nonfree
libavutil  56. 42.102 / 56. 42.102 libavcodec 58. 77.101 / 58.
77.101 libavformat58. 42.100 / 58. 42.100 libavdevice58.
9.103 / 58.  9.103 libavfilter 7. 77.101 /  7. 77.101
  libswscale  5.  6.101 /  5.  6.101
  libswresample   3.  6.100 /  3.  6.100
  libpostproc55.  6.100 / 55.  6.100
Input #0, h264, from 'test.h264':  0KB vq=0KB sq=0B f=0/0   
  Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080,
25 fps, 25 tbr, 1200k tbn, 50 tbc Switch subtitle stream from #-1 to
#-1 vq=   55KB sq=0B f=0/0 nan M-V:nan fd=   2 aq=0KB vq=
54KB sq=0B f=0/0   


Now I write to udp and not to a local file with this command:

raspivid -t 0 -b 1000 -n -o udp://239.255.42.42:5004
Connecting to 239.255.42.42:5004...connected, sending video...


On the same host I read from udp with this command - video is never
displayed

ffplay -f h264 -i udp://239.255.42.42:5004
ffplay version N-97152-g52523b6963 Copyright (c) 2003-2020 the FFmpeg
developers built with gcc 8 (Raspbian 8.3.0-6+rpi1)
  configuration: --extra-libs='-lpthread -lm' --enable-gpl
--enable-libass --enable-libfreetype --enable-libmp3lame
--enable-libvorbis --enable-libx264 --disable-doc --enable-nonfree
libavutil  56. 42.102 / 56. 42.102 libavcodec 58. 77.101 / 58.
77.101 libavformat58. 42.100 / 58. 42.100 libavdevice58.
9.103 / 58.  9.103 libavfilter 7. 77.101 /  7. 77.101
  libswscale  5.  6.101 /  5.  6.101
  libswresample   3.  6.100 /  3.  6.100
  libpostproc55.  6.100 / 55.  6.100
[udp @ 0xae600dd0] attempted to set receive buffer to size 393216 but
it only ended up set as 327680 [h264 @ 0xae611a80] non-existing PPS 0
referenced sq=0B f=0/0 Last message repeated 1 times
[h264 @ 0xae611a80] decode_slice_header error
[h264 @ 0xae611a80] no frame!
[h264 @ 0xae611a80] non-existing PPS 0 referenced
Last message repeated 2 times
[h264 @ 0xae611a80] decode_slice_header error
[h264 @ 0xae611a80] no frame!
[h264 @ 0xae611a80] non-existing PPS 0 referenced
[h264 @ 0xae611a80] decode_slice_header error
[h264 @ 0xae611a80] no frame!
[h264 @ 0xae611a80] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0xae611a80] decode_slice_header error
[h264 @ 0xae611a80] no frame!
[h264 @ 0xae611a80] non-existing PPS 0 referenced sq=0B f=0/0   
Last message repeated 2 times
[h264 @ 0xae611a80] decode_slice_header error
[h264 @ 0xae611a80] no frame!o ffmpeg-user@ffmpeg.org.
[h264 @ 0xae611a80] non-existing PPS 0 referenced
[h264 @ 0xae611a80] decode_slice_header error
[h264 @ 0xae611a80] no frame!


If I probe the stream I get this:

ffprobe -f h264 -i udp://239.255.42.42:5004
.
.
.
[h264 @ 0x37fbe20] no frame!
[h264 @ 0x37fbe20] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x37ea9d0] decoding for stream 0 failed
[h264 @ 0x37ea9d0] Could not find codec parameters for stream 0 (Video:
h264, none): unspecified size Consider increasing the value for the
'analyzeduration' and 'probesize' options Input #0, h264, from
'udp://239.255.42.42:5004': Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264, none, 25 fps, 25 tbr, 1200k tbn, 50 tbc
pi@raspberrypi:~/temp/camera $ 


It there any way I can specify all needed options for ffmpeg so
ffmpeg will be able to work with the stream? I don't know how to use
the analyzeduration and probesize options.

Thanks

Thomas S
___
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 Marco Mircoli
Thanks Motitz,
   this is a one pass norm.
Is there a way to implement 2 pass?
Thanks.
S.


Il giorno mer 23 set 2020 alle ore 14:42 Moritz Barsnick 
ha scritto:

> 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".
___
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 Libre Curk

Hey !

Thank you for your answer ! I think I did a lot of mistake in my shell...

It's working like I wrote it, as you said : "basically correct". I'll 
add : "definitly correct" ! Hope that thread will help peoples. Because 
I was driving nuts all morning long.


The main problem I had is that it was going down the line. With this 
symbole to write more ">".


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

[FFmpeg-user] HOW TO APPLY LOUDNESS R128 PROFILE

2020-09-23 Thread Marco Mircoli
Hello',
I'm a newbie.
Just bought a php script that use ffmpeg.
it converts to mp3/96 all media uploaded in a unique format.
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 :-(
Consider is a web script with server call, so it would be nice to have just
one call (or command)
as here below:
$shell = shell_exec("$ffmpeg_b -i $audio_file_full_path -map 0:a:0 -b:a
96k $audio_output_mp3 2>&1");
Thanks in advance.
S.
___
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] need help with making an "in sync" screen recording.

2020-09-23 Thread Amon Gibson Albuquerque Nunes
OK. so first of all i wanted to record some footage of a game i've bought from 
a digital storefront. as i experimented on which parameters and arguments i 
would use to record said footage i came up with this.

ffmpeg -thread_queue_size 2048 -f gdigrab -draw_mouse 0 -framerate 30 
-show_region 0 -i desktop -thread_queue_size 2048 -f dshow -i audio="Mixagem 
estéreo (Conexant SmartAudio HD)" -vf "crop=512:303:0:40,scale=1024:606" -af 
"adelay=1000|1000" -f vob -codec:v mpeg2video -q 1 -g 1 -bitrate 4000 
-maxrate 5000 -codec:a pcm_s16be gameplay_footage_01.mpg

however when playing up the recorded file(gameplay_footage_01.mpg) through 
ffplay the audio is out-of-sync *fast*, as in at one point the audio came up 4 
seconds too early.

i want the video(gdigrab) and audio(stereo mix) part to be in sync with each 
other so i can have a decent recording in my hands. is there any way i can 
actually do that?
___
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] KLV in ffmpeg

2020-09-23 Thread Mar Andrés López
Dear all,

I guess I found the problem why it was not working. My KLV stream is the stream 
1
See the log,
[mpegts @ 026b6a21c380] start time for stream 1 is not set in 
estimate_timings_from_pts

How can I set the start time just for the stream 1??

>>ffmpeg -i testklv.mpg
ffmpeg version 4.3 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 9.3.1 (GCC) 20200621
  configuration: --enable-gpl --enable-version3 --enable-sdl2 
--enable-fontconfig --enable-gnutls --enable-iconv --enable-libass 
--enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame 
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg 
--enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr 
--enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx 
--enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 
--enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp 
--enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc 
--enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom 
--enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec 
--enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc 
--enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
  libavutil  56. 51.100 / 56. 51.100
  libavcodec 58. 91.100 / 58. 91.100
  libavformat58. 45.100 / 58. 45.100
  libavdevice58. 10.100 / 58. 10.100
  libavfilter 7. 85.100 /  7. 85.100
  libswscale  5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc55.  7.100 / 55.  7.100
[mpegts @ 026b6a21c380] start time for stream 1 is not set in 
estimate_timings_from_pts
Input #0, mpegts, from 'testklv.mpg':
  Duration: 00:00:04.00, start: 1.96, bitrate: 4574 kb/s
  Program 1
Metadata:
  service_name: Service01
  service_provider: FFmpeg
Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), 
yuv420p(tv, progressive), 1024x768 [SAR 1:1 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 
50 tbc
Side data:
  cpb: bitrate max/min/avg: 0/0/0 buffer size: 1130496 vbv_delay: N/A
Stream #0:1[0x101]: Data: klv (KLVA / 0x41564C4B)



De: Mar Andrés López
Enviado: miércoles, 23 de septiembre de 2020 11:11:24
Para: ffmpeg-user@ffmpeg.org
Asunto: KLV in ffmpeg


Dear all,


I am having so many issues trying to clip a video with KLV. When I edit a video 
with KLV I lose the KLV.


I have read about -map 0 option, from my understading it copies all the streams 
of a video from the input 0.


The command I have tried and it is not working is the following:


ffmpeg -ss 00:01:00.000 -t 00:04:00.000 -re -i video.mpg -map 0 -c copy -f 
mpegts out.mpg


When I use a video player that displays KLV the KLV is not displayed for 
out.mpg,


¿Do you have any help please?


A lot of thanks.




P Please consider the environment before printing this e-mail.
___
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".

[FFmpeg-user] Fwd: linux ubuntu - batch list commande - two pass

2020-09-23 Thread Libre Curk

Hey !


I'd like to get the full power of the VP9, but I need to use batch list 
to not lose anytime.

*Basicly how to batch 2 pass encoding with a command ?**
*
Actually, I'm doing like so for my proxy and 1 pass :

 * for f in *.MOV ; do ffmpeg -i "$f" -c:v prores -profile:v 0 -c:a
   copy proxy/"${f%.*}.MOV; done

So I tried :

 * 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

But it's kinda not working there... Any help / solution ?

King regards !

___
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] KLV in ffmpeg

2020-09-23 Thread Mar Andrés López
Dear all,


I am having so many issues trying to clip a video with KLV. When I edit a video 
with KLV I lose the KLV.


I have read about -map 0 option, from my understading it copies all the streams 
of a video from the input 0.


The command I have tried and it is not working is the following:


ffmpeg -ss 00:01:00.000 -t 00:04:00.000 -re -i video.mpg -map 0 -c copy -f 
mpegts out.mpg


When I use a video player that displays KLV the KLV is not displayed for 
out.mpg,


¿Do you have any help please?


A lot of thanks.




P Please consider the environment before printing this e-mail.
___
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] xfade filter - custom expressions

2020-09-23 Thread Peter
Hello,

Can someone help me to understand the xfade filter documentation regarding
custom expressions. I'm not really sure how to express a transition given
the variables provided.

"XY - The coordinates of the current sample." - Is the transition defined
by selecting a color/state for each pixel?

"WH - The width and height of the image." - OK.

"P - Progress of transition effect." - Looking at the source, this is a
float. Ranging from 0-1 I assume(?)

"PLANE - Currently processed plane." - Not sure what this means. How many
planes are there? I'd say at least 2, one for each input. Are there more?

"A - Return value of first input at current location and plane." - This
would return something like first_input[x][y] if the input were treated as
an array? But I still don't understand what the plane refers to OR what the
value returned would be. Would it be 0 or 1, or some color value?

"a0(x, y) a1(x, y) a2(x, y) a3(x, y) - Return the value of the pixel at
location (x,y) of the first/second/third/fourth component of first input."
- What does 'component' refer to? 1234 == RGBA ?

Is there an example that illustrates how to use a custom expression to
achieve a meaningful transition?

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