Re: [FFmpeg-user] replace several lines by one using the filter_complex

2020-07-09 Thread Gyan Doshi



On 10-07-2020 01:01 am, Leonardo via ffmpeg-user wrote:

$ ffmpeg -i video.mp4 -vf "trim=start=7:end=1173,setpts=PTS-STARTPTS" -af 
"atrim=start=7:end=1173,asetpts=PTS-STARTPTS" part1.mp4


$ ffmpeg -i video.mp4 -vf "trim=start=1260:end=1430,setpts=PTS-STARTPTS" -af 
"atrim=start=1260:end=1430,asetpts=PTS-STARTPTS" part2.mp4


After this I create a file input.txt (duration found with ffprobe):
file 'part1.mp4'
duration 1166.02file 'part2.mp4'duration 170.02


And finish with


$ ffmpeg -f concat -i input.txt -c copy video_final.mp4


This sequence of steps work as expected but I would like to know if it is possible to use 
the filter_complex with only "one line command" to achieve same result ?


Yes, using the concat filter.

ffmpeg -i video.mp4 -filter_complex 
"[0:v]trim=start=7:end=1173,setpts=PTS-STARTPTS[v1];[0:v]trim=start=1260:end=1430,setpts=PTS-STARTPTS[v2];[0:a]atrim=start=7:end=1173,asetpts=PTS-STARTPTS[a1];[0:a]atrim=start=1260:end=1430,asetpts=PTS-STARTPTS[a2];[v1][a1][v2][a2]concat=n=2:v=1:a=1"
 merged.mp4

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] replace several lines by one using the filter_complex

2020-07-09 Thread Leonardo via ffmpeg-user
Hello,

I have a video that I need to extract two parts of it and merge together those 
parts. I can accomplish this using the TRIM/ATRIM filter together with the 
concat demuxer:


$ ffmpeg -i video.mp4 -vf "trim=start=7:end=1173,setpts=PTS-STARTPTS" -af 
"atrim=start=7:end=1173,asetpts=PTS-STARTPTS" part1.mp4


$ ffmpeg -i video.mp4 -vf "trim=start=1260:end=1430,setpts=PTS-STARTPTS" -af 
"atrim=start=1260:end=1430,asetpts=PTS-STARTPTS" part2.mp4


After this I create a file input.txt (duration found with ffprobe):
file 'part1.mp4'
duration 1166.02file 'part2.mp4'duration 170.02


And finish with 


$ ffmpeg -f concat -i input.txt -c copy video_final.mp4


This sequence of steps work as expected but I would like to know if it is 
possible to use the filter_complex with only "one line command" to achieve same 
result ?

Kind regards,
Leonardo
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Virtual camera

2020-07-09 Thread Madovsky


On 7/9/2020 6:10 AM, Nicolas George wrote:

Simon Brown (12020-07-09):

I was wondering if there is any way to use FFmpeg to create a virtual
camera for a PC/Mac from an H264 stream source.  I know FFmpeg can use
directshow as an input device.

No, FFmpeg cannot do that.

You may be able to achieve that with the vivid video driver:
https://www.kernel.org/doc/html/v4.12/media/v4l-drivers/vivid.html
and use ffmpeg to feed it, but I have not managed to get it to work. Not
a FFmpeg issue.

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

this virtual device is working with ffmpeg
https://github.com/umlaeute/v4l2loopback
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] write output of find_rect to a file?

2020-07-09 Thread Valentin Schweitzer
> Unfortunately I can't compile ffmpeg myself on my Windows system.

If you are comfortable with compiling FFmpeg in general but lack
the tools on Windows, you could try the media-autobuild suite.
https://github.com/m-ab-s/media-autobuild_suite

If you need to recompile FFmpeg you can keep your ffmpeg_options.txt,
mpv_options.txt and media-autobuild_suite.ini files to reuse your
settings.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Virtual camera

2020-07-09 Thread Nicolas George
Simon Brown (12020-07-09):
> I was wondering if there is any way to use FFmpeg to create a virtual
> camera for a PC/Mac from an H264 stream source.  I know FFmpeg can use
> directshow as an input device.

No, FFmpeg cannot do that.

You may be able to achieve that with the vivid video driver:
https://www.kernel.org/doc/html/v4.12/media/v4l-drivers/vivid.html
and use ffmpeg to feed it, but I have not managed to get it to work. Not
a FFmpeg issue.

Regards,

-- 
  Nicolas George


signature.asc
Description: PGP signature
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

[FFmpeg-user] Virtual camera

2020-07-09 Thread Simon Brown
I was wondering if there is any way to use FFmpeg to create a virtual
camera for a PC/Mac from an H264 stream source.  I know FFmpeg can use
directshow as an input device.

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

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

[FFmpeg-user] Solved : Re: New and question with -i option

2020-07-09 Thread François-Marie BILLARD

thank's all is fine now

François-marie
Le 09/07/2020 à 11:38, Gyan Doshi a écrit :



On 09-07-2020 02:50 pm, François-Marie BILLARD wrote:

Hello,

i'm new on this list and would use ffmpeg for making a video from 
pictures.


I have used this command line; with 54 pictures from DSC_0527.JPG :

ffmpeg -f image2 -i DSC_05%2d.JPG -start_number 0527 -r 12 -vcodec 
mpeg4 -b 15000k ouverture_four.mp4




i have this error, when i launch the command in the directory with the 
pictures :


[image2 @ 0x55b7146af8c0] Could find no file with path 
'DSC_05%2d.JPG' and index in the range 0-4

DSC_05%2d.JPG: No such file or directory


It should be

     ffmpeg -f image2 -start_number 27 -i DSC_05%2d.JPG -r 12 -vcodec 
mpeg4 -b 15000k ouverture_four.mp4


`-start_number` qualifies the input so it belongs before the 
corresponding input `-i`


  In ` DSC_05%2d`, 05 is a literal and so not recognized as part of the 
numbering pattern.


Also, `-r 12` will cause ffmpeg to drop 13 out of every 25 images, since 
ffmpeg assumes a default frame rate of 25 for image sequences.
You can override it by adding -framerate 12 for this input. (And then 
drop -r 12)


     ffmpeg -f image2 -start_number 27 -framerate 12 -i DSC_05%2d.JPG 
-c:v mpeg4 -b:v 15000k ouverture_four.mp4



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



--
François-Marie
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] New and question with -i option

2020-07-09 Thread Gyan Doshi



On 09-07-2020 02:50 pm, François-Marie BILLARD wrote:

Hello,

i'm new on this list and would use ffmpeg for making a video from 
pictures.


I have used this command line; with 54 pictures from DSC_0527.JPG :

ffmpeg -f image2 -i DSC_05%2d.JPG -start_number 0527 -r 12 -vcodec 
mpeg4 -b 15000k ouverture_four.mp4




i have this error, when i launch the command in the directory with the 
pictures :


[image2 @ 0x55b7146af8c0] Could find no file with path 
'DSC_05%2d.JPG' and index in the range 0-4

DSC_05%2d.JPG: No such file or directory


It should be

    ffmpeg -f image2 -start_number 27 -i DSC_05%2d.JPG -r 12 -vcodec 
mpeg4 -b 15000k ouverture_four.mp4


`-start_number` qualifies the input so it belongs before the 
corresponding input `-i`


 In ` DSC_05%2d`, 05 is a literal and so not recognized as part of the 
numbering pattern.


Also, `-r 12` will cause ffmpeg to drop 13 out of every 25 images, since 
ffmpeg assumes a default frame rate of 25 for image sequences.
You can override it by adding -framerate 12 for this input. (And then 
drop -r 12)


    ffmpeg -f image2 -start_number 27 -framerate 12 -i DSC_05%2d.JPG 
-c:v mpeg4 -b:v 15000k ouverture_four.mp4



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] New and question with -i option

2020-07-09 Thread François-Marie BILLARD

Hello,

i'm new on this list and would use ffmpeg for making a video from pictures.

I have used this command line; with 54 pictures from DSC_0527.JPG :

ffmpeg -f image2 -i DSC_05%2d.JPG -start_number 0527 -r 12 -vcodec 
mpeg4 -b 15000k ouverture_four.mp4




i have this error, when i launch the command in the directory with the 
pictures :


[image2 @ 0x55b7146af8c0] Could find no file with path 'DSC_05%2d.JPG' 
and index in the range 0-4

DSC_05%2d.JPG: No such file or directory

thank's for your help

--
François-Marie

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

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

Re: [FFmpeg-user] Compiling on an aarch64 machine

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

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

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

Moritz

[*] Wild guesstimate.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Compiling on an aarch64 machine

2020-07-09 Thread Verachten Bruno
> Could this behaviour be considered as a bug? If so, I can file it.

> What would you like to report where?
>
The fact that FFMpeg does not compile without this trick of exporting an
empty CFLAGS variable on aarch64 there: https://trac.ffmpeg.org/ .
If you consider this is not a bug, that's perfect for me, but in my point
of view, that should be written somewhere... If not in FFMpeg
documentation, I'll write it down in a blog post.

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