Re: [FFmpeg-user] How to deal long length of options on some arguments?

2019-12-05 Thread Carl Zwanzig

On 12/5/2019 6:50 PM, 김민성 wrote:

As I said in email, -segment_time will split all segments have same length.
I want to split video segments non-uniformly, which requires additional
cutting and merging steps if I use -segment_time.
Actually, I don't think you said that. A clear definition of the problem is 
always helpful.


You may find it more workable to use a frame-server and pull the number of 
frames you want for each segment and reassemble them.


Also, please don't top-post on this list.

Late,r

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] How to deal long length of options on some arguments?

2019-12-05 Thread 김민성
As I said in email, -segment_time will split all segments have same length. 
I want to split video segments non-uniformly, which requires additional cutting 
and merging steps if I use -segment_time.
 
Thank you.
Minsung Kim
 
 
 
-Original Message-
From: "Carl Zwanzig"
To: ;
Cc:
Sent: 2019-12-06 (금) 09:53:06 (GMT+09:00)
Subject: Re: [FFmpeg-user] How to deal long length of options on some arguments?
 

Is there a specific reason to specify the absolute segment starts? It seems
like the process would be much easier if you use -segment_time instead.

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 mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Converting pictures to video

2019-12-05 Thread gga


On 5/12/19 21:07, Anwuli Okwuashi wrote:

Thank you,

Yes, the first command is the stata blog extrat, the second is mine.
Previous attempts had the value for the -b:v but still did not work.
I have 20 png files created using stata, I just need to convert them to
video/animation. With that, I'll appreciate any help.


ffmpeg prints out a lot of information upon running, which can help in 
debugging your problem.  If stata does not print any output (it means it 
is swallowing the stdout/stderr output), I suggest you first try the 
command from a command line prompt.  If you don't know what that is, 
search for cmd.exe.  The variables are specified with set commands and 
referred with %var% syntax. With that, you should be able to run ffmpeg 
from cmd.exe and see the output for it.  Send the output and command to 
the mailing list.



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

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

Re: [FFmpeg-user] Converting pictures to video

2019-12-05 Thread gga


On 5/12/19 21:07, Anwuli Okwuashi wrote:

Thank you,

Yes, the first command is the stata blog extrat, the second is mine.
Previous attempts had the value for the -b:v but still did not work.
I have 20 png files created using stata, I just need to convert them to
video/animation. With that, I'll appreciate any help.


On Thu, Dec 5, 2019, 5:49 PM gga  wrote:


On 5/12/19 18:11, Anwuli Okwuashi wrote:

Hello,
Newbie alert!
I am unable to recreate an animation I found on stata blog


https://blog.stata.com/2014/03/24/how-to-create-animated-graphics-using-stata/

   .

local GraphPath "C:\Users\jch\AnimatedGraphics\example\"
winexec "C:\Program Files\FFmpeg\bin\ffmpeg.exe" -i

`GraphPath'graph_%03d.png

  -b:v 512k `GraphPath'graph.mpg

   My code: ran without errors but no video was created
local GraphPath "C:\Users\analyst\Desktop\STATA\projects\animation\"
winexec "C:\FFmpeg\bin\ffmpeg.exe" -i `GraphPath'i_diff_%.png -b:v
`GraphPath'graph.mpg.

Any idea why mine isn't working? I use windows 10.

I have no idea about stata, but do you realize you posted two different
commands?  Also, the second command is missing the value for -b:v.


Also, the second command is missing the frame specifier.  You only have 
%.png instead of %03d.png (for 3 padded digits) or %d.png (for single 
digits).



___
ffmpeg-user mailing list
ffmpeg-user@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 deal long length of options on some arguments?

2019-12-05 Thread Carl Zwanzig


Is there a specific reason to specify the absolute segment starts? It seems 
like the process would be much easier if you use -segment_time instead.


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

Re: [FFmpeg-user] Converting pictures to video

2019-12-05 Thread Anwuli Okwuashi
Thank you,

Yes, the first command is the stata blog extrat, the second is mine.
Previous attempts had the value for the -b:v but still did not work.
I have 20 png files created using stata, I just need to convert them to
video/animation. With that, I'll appreciate any help.


On Thu, Dec 5, 2019, 5:49 PM gga  wrote:

>
> On 5/12/19 18:11, Anwuli Okwuashi wrote:
> > Hello,
> > Newbie alert!
> > I am unable to recreate an animation I found on stata blog
> >
> https://blog.stata.com/2014/03/24/how-to-create-animated-graphics-using-stata/
> >   .
> >
> > local GraphPath "C:\Users\jch\AnimatedGraphics\example\"
> > winexec "C:\Program Files\FFmpeg\bin\ffmpeg.exe" -i
> `GraphPath'graph_%03d.png
> >  -b:v 512k `GraphPath'graph.mpg
> >
> >   My code: ran without errors but no video was created
> > local GraphPath "C:\Users\analyst\Desktop\STATA\projects\animation\"
> > winexec "C:\FFmpeg\bin\ffmpeg.exe" -i `GraphPath'i_diff_%.png -b:v
> > `GraphPath'graph.mpg.
> >
> > Any idea why mine isn't working? I use windows 10.
> I have no idea about stata, but do you realize you posted two different
> commands?  Also, the second command is missing the value for -b:v.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@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] Converting pictures to video

2019-12-05 Thread gga


On 5/12/19 18:11, Anwuli Okwuashi wrote:

Hello,
Newbie alert!
I am unable to recreate an animation I found on stata blog
https://blog.stata.com/2014/03/24/how-to-create-animated-graphics-using-stata/
  .

local GraphPath "C:\Users\jch\AnimatedGraphics\example\"
winexec "C:\Program Files\FFmpeg\bin\ffmpeg.exe" -i `GraphPath'graph_%03d.png
 -b:v 512k `GraphPath'graph.mpg

  My code: ran without errors but no video was created
local GraphPath "C:\Users\analyst\Desktop\STATA\projects\animation\"
winexec "C:\FFmpeg\bin\ffmpeg.exe" -i `GraphPath'i_diff_%.png -b:v
`GraphPath'graph.mpg.

Any idea why mine isn't working? I use windows 10.
I have no idea about stata, but do you realize you posted two different 
commands?  Also, the second command is missing the value for -b:v.

___
ffmpeg-user mailing list
ffmpeg-user@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] Converting pictures to video

2019-12-05 Thread Anwuli Okwuashi
Hello,
Newbie alert!
I am unable to recreate an animation I found on stata blog
https://blog.stata.com/2014/03/24/how-to-create-animated-graphics-using-stata/
 .

local GraphPath "C:\Users\jch\AnimatedGraphics\example\"
winexec "C:\Program Files\FFmpeg\bin\ffmpeg.exe" -i `GraphPath'graph_%03d.png
-b:v 512k `GraphPath'graph.mpg

 My code: ran without errors but no video was created
local GraphPath "C:\Users\analyst\Desktop\STATA\projects\animation\"
winexec "C:\FFmpeg\bin\ffmpeg.exe" -i `GraphPath'i_diff_%.png -b:v
`GraphPath'graph.mpg.

Any idea why mine isn't working? I use windows 10.
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".

[FFmpeg-user] Extracting information from ffmpeg logs when streaming

2019-12-05 Thread Verachten Bruno
Hi there,

I'd like to extract the number of frames pushed when streaming with ffmpeg
to a RTMP server.
For the time being, I can see the number of frames in the console, and I
read that the -report option could redirect that information to a file.
I could then parse the file, and extract the frame numbers.
Is there anything more straightforward?

Thanks.
-- 
Bruno Verachten
___
ffmpeg-user mailing list
ffmpeg-user@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] Documentation for input -i options

2019-12-05 Thread Moritz Barsnick
On Thu, Dec 05, 2019 at 21:10:20 +0530, Gyan wrote:
> See ffmpeg -h demuxer=image2 to see its options, or on the web at

Funnily, of all self-documenting options, this one's default behavior
(and range) will look somewhat confusing to the user:

  -pattern_type  .D set pattern type (from 0 to 
INT_MAX) (default 4)
 glob_sequence   0.D select glob/sequence pattern type
 glob1.D select glob pattern type
 sequence2.D select sequence pattern type
 none3.D disable pattern matching

Note "(from 0 to INT_MAX) (default 4)".

We may want to suggest a fix for that. :-)

Explanation: The default '4' is actually interpreted as "some default
behavior, either 'none' or 'glob_sequence', depending on some stuff".

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

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

Re: [FFmpeg-user] Documentation for input -i options

2019-12-05 Thread Moritz Barsnick
On Thu, Dec 05, 2019 at 15:30:16 +, John Dexter wrote:
> On Thu, 5 Dec 2019 at 15:23, Gyan  wrote:
> > What specifically are you trying to do?
>
> Time-lapse from a whole bunch of images. I've found examples online of
> syntax I can use but no explanation exactly how this is working and how
> flexible this is.
> e.g. -i image%8d

This is basically the image2 demuxer.

> I'd like to know how I can specify which files are used and in which order.
> Maybe my question is where is the input URL functionality documented?

It's documented in the image2 demuxer's docs:
https://ffmpeg.org/ffmpeg-formats.html#image2-1

Look at the description of "pattern_type" and its restrictions.

If you want to specify an arbitrary list (random file names,
non-alphabetical order), it's probably easiest to rename the files - or
better, using a modern operating system, creating symbolic links - to
adhere to "somename%08d.suffix" in numerical order without gaps.

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

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

Re: [FFmpeg-user] Documentation for input -i options

2019-12-05 Thread Gyan



On 05-12-2019 09:00 pm, John Dexter wrote:

On Thu, 5 Dec 2019 at 15:23, Gyan  wrote:



On 05-12-2019 08:44 pm, John Dexter wrote:

Bizarrely am struggling to find a thorough documentation of -i and

relying

on examples online. Can anyone point me where in the online documentation
this is documented (not a man page) please? I know it supports
patterns e.g. for timelapse but I cannot find a reference.

All -i does is specify the input URL. Which options are applicable for
an input is determined by
the input format / codecs discovered by ffmpeg after probing the input.

What specifically are you trying to do?


Time-lapse from a whole bunch of images. I've found examples online of
syntax I can use but no explanation exactly how this is working and how
flexible this is.
e.g. -i image%8d
I'd like to know how I can specify which files are used and in which order.
Maybe my question is where is the input URL functionality documented?


For a sequence of images, the input URL serves as a pattern which is 
interpreted by the image sequence demuxer (image2).
See ffmpeg -h demuxer=image2 to see its options, or on the web at 
http://ffmpeg.org/ffmpeg-formats.html#image2-1

On linux, you should also have access to globbing support.

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

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

Re: [FFmpeg-user] Documentation for input -i options

2019-12-05 Thread John Dexter
On Thu, 5 Dec 2019 at 15:23, Gyan  wrote:

>
>
> On 05-12-2019 08:44 pm, John Dexter wrote:
> > Bizarrely am struggling to find a thorough documentation of -i and
> relying
> > on examples online. Can anyone point me where in the online documentation
> > this is documented (not a man page) please? I know it supports
> > patterns e.g. for timelapse but I cannot find a reference.
>
> All -i does is specify the input URL. Which options are applicable for
> an input is determined by
> the input format / codecs discovered by ffmpeg after probing the input.
>
> What specifically are you trying to do?
>

Time-lapse from a whole bunch of images. I've found examples online of
syntax I can use but no explanation exactly how this is working and how
flexible this is.
e.g. -i image%8d
I'd like to know how I can specify which files are used and in which order.
Maybe my question is where is the input URL functionality documented?

John

>
> Gyan
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@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] Documentation for input -i options

2019-12-05 Thread Gyan



On 05-12-2019 08:44 pm, John Dexter wrote:

Bizarrely am struggling to find a thorough documentation of -i and relying
on examples online. Can anyone point me where in the online documentation
this is documented (not a man page) please? I know it supports
patterns e.g. for timelapse but I cannot find a reference.


All -i does is specify the input URL. Which options are applicable for 
an input is determined by

the input format / codecs discovered by ffmpeg after probing the input.

What specifically are you trying to do?

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

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

[FFmpeg-user] Documentation for input -i options

2019-12-05 Thread John Dexter
Bizarrely am struggling to find a thorough documentation of -i and relying
on examples online. Can anyone point me where in the online documentation
this is documented (not a man page) please? I know it supports
patterns e.g. for timelapse but I cannot find a reference.

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

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

[FFmpeg-user] Dealing with Corrupted H264 RTP streams

2019-12-05 Thread Paul Belanger
Hello,

I'm using the ffmpeg library in an application to receive streams from
network
cameras via RTSP. However, since these cameras are on a network with poor
bandwidth (a weak wi-fi connection), I'm having issues where the video feed
appears to 'smear' along the bottom of the frame.

I'm confident that the cause of this 'smearing' is RTP packets being
dropped by
the network and leading to corrupted IDR frames. Unfortunately, using tcp
transport with RTSP is not an option as the video is somewhat latency
sensitive.

Looking over the help pages for my local ffmpeg binary (ffmpeg version
3.4.6-0ubuntu0.18.04.1), I noticed that the h264 decoder has an "enable_er"
option that supposedly enables some form of 'error resilience' in the
decoder.

I have two questions:

1.  What does the "enable_er" option of the h264 decoder actually do?
2.  Are there any other options available that might help mask corrupted IDR
frames?

Thank you,

Paul Belanger
___
ffmpeg-user mailing list
ffmpeg-user@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 deal long length of options on some arguments?

2019-12-05 Thread 김민성
Hello.
 
I am trying to set command like below:
 
ffmpeg -i in.mp4 \
-force_key_frames [verymanycheckpoints] \ 
-segment_times [verymanycheckpoints] \
-segment_list segmentlist.txt \
-f segment \
-reset_timestamps 1 \
out%03d.mp4 \
 
Current bottleneck is "[very...many...checkpoints]", which is possibly can be 
very long argument.
 
Using trim filter for splitting many segments is impossible. (ffmpeg runs out 
of memory, I think)
Therefore, I think I have to use segment muxer to split video non-uniformly.
 
But every OS have character limits for single command, which is vulnerable for 
people like me(who can potentially make 10,000+ segments).
 
How can I pass option "segment_times" and "force_key_frames" by file?
(If it's impossible, I can split video uniformly and cut again from those 
fragments anyway, but I would be happy if there is any direct straightforward 
way to handle this issue.)

Thanks for reading this.
Minsung Kim
___
ffmpeg-user mailing list
ffmpeg-user@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] Get parameter defaults?

2019-12-05 Thread Moritz Barsnick
On Thu, Dec 05, 2019 at 13:17:29 +, John Dexter wrote:
> Is there a way to get/find all ffmpeg parameter defaults at once, as a man
> page or in online docs or something, so i I can see it as a list? It'd be
> useful to familiarise myself with defaults behaviour.

Yes, the ffmpeg options system is basically self-documenting:

$ ffmpeg -h full

It doesn't always say what these defaults actually imply. Sometimes
it's just "-1" = "default behavior".

If it's relevant and not obvious, the actual default behavior should be
mentioned in the docs. If it isn't feel free to ask and/or file a
ticket.

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

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

[FFmpeg-user] Get parameter defaults?

2019-12-05 Thread John Dexter
Is there a way to get/find all ffmpeg parameter defaults at once, as a man
page or in online docs or something, so i I can see it as a list? It'd be
useful to familiarise myself with defaults behaviour.

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

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