[FFmpeg-user] How to decipher FFMEG version number?

2020-12-25 Thread Dan Bridges
I build FFMPEG under Win10 using media-autobuild_suite
(https://github.com/m-ab-s/media-autobuild_suite)

https://github.com/m-ab-s/media-autobuild_suite

Is it possible to decipher the version number:

ffmpeg version N-100471-g85bd703b3a-g5b48d2af43+1 Copyright (c)
2000-2020 the FFmpeg developers
  built with gcc 10.2.0 (Rev6, Built by MSYS2 project)

Dan.



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

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

Re: [FFmpeg-user] options of vidstabdetect video filter

2020-08-08 Thread Dan Bridges
On 8/08/2020 8:47 pm, PPRJ01 wrote:
> I am an ffmpeg user since november 2018 and I didn't pay attention to this 
> warning message that was in green color. It's the first time I use vidstab* 
> filters.
>
> I will continue doing tests because the video I received from a friend is a 
> very very shaky one (taken from a high speed boat).
>
If you are a Windows FFmpeg user, check out the 3-part message, starting
from https://forums.whirlpool.net.au/thread/3q68l4j9#r5 , where I post
some links to comparison videos and a "test workbench" to experiment
with vidstab settings.

Dan.

___
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] trouble installing ffmpeg

2020-07-22 Thread Dan Bridges
On 23/07/2020 7:18 am, Jake McGaker wrote:
> "'C:\ffmpeg' is not recognized as an internal or
> external command,"

This means that you are trying to run ffmpeg.exe from the the root
directory i.e. "c:\". What you need to do is put ffmpeg.exe (and any
associated AV utility programs) in a directory that's included in  the
directory list stored in in Windows PATH environmental variable. For
example, when I type path PATH at the cmd prompt to see what directories
are listed in my Windows PATH environmental variable:

PATH=C:\Mingw\media-autobuild_suite-master\local64\bin-video;C:\Mingw\media-autobuild_suite-master\local64\bin-audio;C:\ProgramData\Oracle\Java\javapath;C:\Program
Files
(x86);C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\GNU\GnuPG;C:\Program Files (x86)\WinMerge;C:\Program Files
(x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files
(x86)\QuickTime\QTSystem\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Common
Files\Acronis\VirtualFile\;C:\Program Files (x86)\Common
Files\Acronis\VirtualFile64\;C:\Program Files (x86)\Common
Files\Acronis\SnapAPI\;C:\Program Files\nodejs\;C:\Program
Files\gnuplot\bin;C:\WINDOWS\System32\OpenSSH\;C:\Program Files
(x86)\Gpg4win\..\GnuPG\bin;C:\Program
Files\dotnet\;C:\Users\Dan\AppData\Local\Microsoft\WindowsApps;d:\YouTube_dl;C:\Users\Dan\AppData\Roaming\npm;C:\Program
Files (x86)\AutoIt3;C:\Program Files
(x86)\AutoIt3\Aut2Exe;c:\utilities;C:\Program
Files\VideoLAN\VLC;C:\Program Files\smartmontools\bin

Because I'm using Autobuild to compile FFMPEG under Windows, I've got
"C:\Mingw\media-autobuild_suite-master\local64\bin-video" in this list
because that's where Autobuild creates ffmpeg.exe. Otherwise I'd have it
stored in "C:\utilities" which is where I place a host of small useful
programs.

Say I type FFMPEG and press Enter, the Windows command processor looks
for ffmpeg.com, ffmpeg.exe, ffmpeg.cmd, ffmpeg.bat, and I think
ffmpeg.vbs (Visual BASIC program). It looks for these programs first in
the current directory, then in my PATH list of directories.

To get instructions on how to alter of add to the list of  in your PATH:

* In Settings, in the search box, type PATH, and click on "Edit the
system environmental variables".
* Click on "Environmental Variables" button.
* In the"System  variables" box, select the "path" entry, and then 
click on the "Edit" button.
* Click on the "New" button and add the directory where ffmpeg.exe is
situated e.g. C:\Utilities

See here for a screengrab: 
https://dll.dropbox.com/s/622mvi71vw798vx/Editing_path_list.jpg

Note: in widows File Explorer you can create a directory ("New folder"
option) and then copy or move ffmpeg.exe to it.  To get to a cmd prompt
in this specific directory, navigate to it so it's showing in the File
Explorer's address bar. Then type in this box "cmd" and  press Enter.

Dan.



___
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] Remove everything but a single color (range)

2020-03-15 Thread Dan Bridges
>Is it possible to "remove" everything in a video except a specific
color (or maybe a range... ie close to a specific color. By "remove" I
mean covert every that is NOT the color(s) I want to black or
transparent. I have a video that contains a yellowish box that moves
about the screen. I want to isolate ONLY the yellowish box. Everything
else should become black or transparent.

Try the colorhold filter:

From http://paulbourke.net/miscellaneous/ffmpeg/FFmpeg_Book.pdf

The 3 parameters are:

"color" is the color to be preserved, can be specified by name or by RGB
values, for example "orange" can be replaced by #FFA500
"similarity" is a percentage, 0.01 means only the specified color is
preserved, 1.0 means all colors are preserved.
"blend" is a percentage, 0.0 makes pixels fully gray, higher values
result in more preserved color


ffmpeg -i input_filename  -vf colorhold="FBED54":0.01:0  output_filename

This produces tight colour discrimination.  If too tight, increase the
2nd parameter from 0.01 until you get what you want.

Note, this filter will only make the discriminated stuff gray, not black
or transparent.  Perhaps someone else will be able to help.

A screenshot from an example using similarity=0.5 (a fairly sloppy
match) and your colour:  
https://dl.dropbox.com/s/isipbbtb2bjj7wy/filtered.jpg

Dan.






___
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] ff* command lines that work

2020-03-09 Thread Dan Bridges
The 3 messages I link to show how you can use FFMPEG to resize and
combine 2 videos to create a L|R side-by-side comparison clip, say of
the effects of a filter.  I also add title overlays to the 2 clips. The
FFMPEG filter I was examining is vid.stab, an image stabilisation
filter.  There are links to a suitable jerky test clip, and two
processed examples.  A batchfile test-bench you can use for side-by-side
filter comparisons is included. This could be used as a template for
comparing the effect of other filters. 

Due to the large number of parameters than can be changed, you edit the
batchfile, rather than specifying them on a CLI.  So I keep the
batchfile open in a text editor (Notepad++) in a separate window as I
run the batchfile in a windowed console session.

https://forums.whirlpool.net.au/thread/3q68l4j9#r5

https://forums.whirlpool.net.au/thread/3q68l4j9#r6

https://forums.whirlpool.net.au/thread/3q68l4j9#r7

Dan.







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

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

Re: [FFmpeg-user] What argument(s) does 'ashowinfo' take?

2020-03-01 Thread Dan Bridges
On 2/03/2020 9:12 am, Mark Filipak wrote:
> ffprobe -ashowinfo -i g:\VIDEO_TS\VTS_01_1.VOB 

According to
https://hhsprings.bitbucket.io/docs/programming/examples/ffmpeg/audio_visualization/ashowinfo.html
I used this format  for showinfo and ashowinfo with a clip called
Dancing.MTS:

ffprobe -f lavfi movie=Dancing.MTS,showinfo

ffprobe version N-96726-g018a42790c Copyright (c) 2007-2020 the FFmpeg
developers
  built with gcc 9.2.0 (Rev2, Built by MSYS2 project)
  configuration:  --disable-autodetect --enable-libfdk-aac --enable-amf
--enable-bzlib --enable-cuda --enable-cuvid --enable-d3d11va
--enable-dxva2 --enable-iconv --enable-lzma --enable-nvenc --enable-zlib
--enable-sdl2 --disable-debug --enable-ffnvcodec --enable-nvdec
--enable-libvidstab --enable-libaom --enable-librav1e --enable-libwebp
--enable-gmp --enable-libmp3lame --enable-libopus --enable-libvorbis
--enable-libx264 --enable-libvidstab --enable-libtls
--extra-libs=-liconv --enable-gpl --enable-version3 --enable-nonfree
  libavutil  56. 40.100 / 56. 40.100
  libavcodec 58. 68.102 / 58. 68.102
  libavformat    58. 38.100 / 58. 38.100
  libavdevice    58.  9.103 / 58.  9.103
  libavfilter 7. 75.100 /  7. 75.100
  libswscale  5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
[Parsed_showinfo_1 @ 012446d14580] config in time_base: 1/9,
frame_rate: 50/1
[Parsed_showinfo_1 @ 012446d14580] config out time_base: 0/0,
frame_rate: 0/0
[Parsed_showinfo_1 @ 012446d14580] n:   0 pts:  8
pts_time:0.89 pos:  768 fmt:yuv420p sar:1/1 s:1920x1080 i:P
iskey:1 type:I checksum:E3888ABD plane_checksum:[0FAECC8C 03DF7F71
63473EB1] mean:[98 120 135] stdev:[50.3 6.7 8.0]
[Parsed_showinfo_1 @ 012446d14580] color_range:unknown
color_space:unknown color_primaries:unknown color_trc:unknown
[Parsed_showinfo_1 @ 012446d14580] n:   1 pts:  81800
pts_time:0.908889 pos:   346560 fmt:yuv420p sar:1/1 s:1920x1080 i:P
iskey:0 type:B checksum:86B433B7 plane_checksum:[9DC7175D 038FFE4B
CB771E00] mean:[98 120 135] stdev:[50.2 6.7 8.0]
[Parsed_showinfo_1 @ 012446d14580] color_range:unknown
color_space:unknown color_primaries:unknown color_trc:unknown
[Parsed_showinfo_1 @ 012446d14580] n:   2 pts:  83600
pts_time:0.928889 pos:   361536 fmt:yuv420p sar:1/1 s:1920x1080 i:P
iskey:0 type:B checksum:FC37B02E plane_checksum:[67BB7113 1B425B3B
0DE1E3D1] mean:[98 120 135] stdev:[50.2 6.7 8.0]
[Parsed_showinfo_1 @ 012446d14580] color_range:unknown
color_space:unknown color_primaries:unknown color_trc:unknown
[Parsed_showinfo_1 @ 012446d14580] n:   3 pts:  85400
pts_time:0.948889 pos:   235008 fmt:yuv420p sar:1/1 s:1920x1080 i:P
iskey:0 type:P checksum:42DF2300 plane_checksum:[A8FCA03F 6E49D2C2
A307AFE1] mean:[98 120 135] stdev:[50.2 6.7 8.0]
[Parsed_showinfo_1 @ 012446d14580] color_range:unknown
color_space:unknown color_primaries:unknown color_trc:unknown
[Parsed_showinfo_1 @ 012446d14580] n:   4 pts:  87200
pts_time:0.968889 pos:   493440 fmt:yuv420p sar:1/1 s:1920x1080 i:P
iskey:0 type:B checksum:D6326862 plane_checksum:[ECC2D9E1 2C334AF6
8158437C] mean:[98 120 135] stdev:[50.1 6.7 8.0]
[Parsed_showinfo_1 @ 012446d14580] color_range:unknown
color_space:unknown color_primaries:unknown color_trc:unknown
[Parsed_showinfo_1 @ 012446d14580] n:   5 pts:  89000
pts_time:0.99 pos:   513600 fmt:yuv420p sar:1/1 s:1920x1080 i:P
iskey:0 type:B checksum:49BAE374 plane_checksum:[F61498AB DE7EFB69
83AF4F51] mean:[98 120 135] stdev:[50.1 6.7 8.0]
[Parsed_showinfo_1 @ 012446d14580] color_range:unknown
color_space:unknown color_primaries:unknown color_trc:unknown
[Parsed_showinfo_1 @ 012446d14580] n:   6 pts:  90800
pts_time:1.00889 pos:   381696 fmt:yuv420p sar:1/1 s:1920x1080 i:P
iskey:0 type:P checksum:7B67A870 plane_checksum:[B90AD98C DEA99D56
205E317F] mean:[98 120 135] stdev:[50.0 6.7 8.1]
[Parsed_showinfo_1 @ 012446d14580] color_range:unknown
color_space:unknown color_primaries:unknown color_trc:unknown
[Parsed_showinfo_1 @ 012446d14580] n:   7 pts:  92600
pts_time:1.02889 pos:   645696 fmt:yuv420p sar:1/1 s:1920x1080 i:P
iskey:0 type:B checksum:B8174105 plane_checksum:[11F07654 9F2B11CC
7C96B8D6] mean:[98 120 135] stdev:[49.9 6.7 8.1]
[Parsed_showinfo_1 @ 012446d14580] color_range:unknown
color_space:unknown color_primaries:unknown color_trc:unknown
[Parsed_showinfo_1 @ 012446d14580] n:   8 pts:  94400
pts_time:1.04889 pos:   665280 fmt:yuv420p sar:1/1 s:1920x1080 i:P
iskey:0 type:B checksum:EA1C85FB plane_checksum:[4690B547 B47F1736
B488B96F] mean:[98 120 135] stdev:[49.9 6.7 8.1]
[Parsed_showinfo_1 @ 012446d14580] color_range:unknown
color_space:unknown color_primaries:unknown color_trc:unknown
[Parsed_showinfo_1 @ 012446d14580] n:   9 pts:  96200
pts_time:1.06889 pos:   533952 fmt:yuv420p sar:1/1 s:1920x1080 i:P
iskey:0 type:P checksum:3DF1CF37 plane_checksum:[10A1F217 DA346E75
4CDC6E9C] mean:[98 119 135] stdev:[49.8 6.7 8.1]

Re: [FFmpeg-user] Converting pictures to video

2019-12-09 Thread Dan Bridges
On 10/12/2019 5:09 am, Anwuli Okwuashi wrote:
> winexec "C:\FFmpeg\bin\ffmpeg.exe" -report -f concat -safe 0 -i
> "C:\Users\analyst\Desktop\STATA\projects\animation3\graph_%d.png" -maxrate
> 3k -y
> "C:\Users\analyst\Desktop\STATA\projects\animation3\map_video1.mpg"

When you use the concat demuxer , after "-i", (the input file(s)
option), don't use: *graph_%d.png*

Instead, use the name of the text file you've created that contains
either 1- or 2 entries for every image filename you wish to load. This
way, the group of image filenames does not need to be contiguous in its
numbering or start its numbering within 0-4 of the index value.

https://trac.ffmpeg.org/wiki/Concatenate

If you look at my post you will see that I have presented a batchfile
called *create_list.bat*:

@echo off SETLOCAL EnableDelayedExpansion if exist mylist.txt del
mylist.txt for %%I in ("Sequence Directory\*.png") do (echo file '%%~fI'
>> mylist.txt & echo duration 0.04 >> mylist.txt) start /i mylist.txt

The way it is currently written, it looks a directory-level down from
the current directory for a sub-directory called "Sequence directory".
This is just an example. You could alter it to suit yourself.

In my example, I had create_list.bat and ffmpeg.exe in "C:\test
directory". So, when executing create_list.bat from there, it is looking
for all the .png files I've placed in "C:\test directory\Sequence
directory" and then creating a name-sorted list in the current directory
("C:\test directory") called *mylist.txt*. Finally, it was loading this
text file in the Windows-associated  program, notepad.exe., for
examination and modification*.  *This final step is an optional process.*
*

In my example, the first 4 image files in this sorted list which would
be read by the concat demuxer and loaded into ffmpeg were:

file 'C:\test directory\Sequence directory\Replacement.png' duration
0.04 file 'C:\test directory\Sequence directory\Sequence_0083.png'
duration 0.04 file 'C:\test directory\Sequence
directory\Sequence_0086.png' duration 0.04 file 'C:\test
directory\Sequence directory\Sequence_0089.png' duration 0.04

Once you have created your list of image filenames, you use it this way
(an example):*
*

*ffmpeg.exe -f concat -safe 0 -i "C:\test directory\mylist.txt" -maxrate
3k -y "C:\test directory\Sequence directory"\map_video6.mpg*

In your case your directory structure appears not to be separating your
working directory from your data (image) directory. This is OK if you
only a few image files, but gets messy when you have thousands of images.

Assuming you want create_list.bat to operate from the "animation3"
directory you would alter its contents to:

@echo off SETLOCAL EnableDelayedExpansion if exist mylist.txt del
mylist.txt for %%I in (*.png") do (echo file '%%~fI' >> mylist.txt &
echo duration 0.04 >> mylist.txt) start /i mylist.txt


And then your ffmpeg.exe command line would be:

***winexc "C:\Users\analyst\Desktop\STATA\projects\animation3\mylist.txt"
-maxrate 3k -y
"C:\Users\analyst\Desktop\STATA\projects\animation3\map_video1.mpg"*

Dan.*
*

*
*

**






___
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-06 Thread Dan Bridges
On 7/12/2019 11:49 am, Anwuli Okwuashi wrote:
> [image2 @ 01d077c4a440] Could find no file with path
> 'C:\Users\analyst\Desktop\STATA\projects\animation3\graph%02d.png' and
> index in the range 0-4


I created a 1500x1000 1000-image set: Sequence_000.png ->
Sequence_999.png. This loads fine using at the start of the command line:

ffmpeg -i Sequence_%03d.png

This will also work if the sequence numbers are inside the filename:

ffmpeg -i 0191107-154%03d-214.png

But if you rename the first 5 files to:  _Sequence_000.png ... 
_Sequence_004.png it will fail because the first file starting with
Sequence is now Sequence_005.png.

Renaming _Sequence_004.png -> Sequence_004.png  will allow the remaining
995 files in the sequence to load.

If you can not batch rename the sequence to start from 00 or if it is a
non-contiguous list because you deleted some damaged/missing images, you
can tell FFMPEG to load a list of filenames. This has to be in a
particular 1 or 2-line format (if including  image duration).

For example, I've deleted the first 83 images, substituted a
Replacement.png, and the remaining image names jump by 3. Then I created
a list of filenames.

To create such a list in Windows, I use create_list.bat, here designed
to look in the "Sequence Directory", beneath the current directory
("C:\test directory"), where the images files are situated, create a
2-line name-sorted list where the 2nd line is the duration in secs (1
frame at 25fps = 40ms), and then load this list in the associated text
editor so you can delete or move blocks, change durations etc., if required.

@echo off
SETLOCAL EnableDelayedExpansion
if exist mylist.txt del mylist.txt
for %%I in ("Sequence Directory\*.png") do (echo file '%%~fI' >>
mylist.txt & echo duration 0.04 >> mylist.txt)  
start /i mylist.txt

The first 4 files in the list:

file 'C:\test directory\Sequence directory\Replacement.png' 
duration 0.04
file 'C:\test directory\Sequence directory\Sequence_0083.png' 
duration 0.04
file 'C:\test directory\Sequence directory\Sequence_0086.png' 
duration 0.04
file 'C:\test directory\Sequence directory\Sequence_0089.png' 
duration 0.04

If you decrease the duration below 0.04 @25fps FFMPEG will start to drop
frames. Conversely, if you go above 0.04, it will start to replicate frames.

To use this list:

ffmpeg.exe -f concat -safe 0 -i "C:\test directory\mylist.txt" -maxrate
3k -y "C:\test directory\Sequence directory"\map_video6.mpg


Dan.











*
*

___
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] Can't get -i mylist.txt working under Windows 10

2019-03-29 Thread Dan Bridges
Trying to concatenate some mp4 files. All the same (just copies of the
same test files).

myfile.txt contains:

Sequence_.mp4
Sequence_0001.mp4
Sequence_0002.mp4


As per https://trac.ffmpeg.org/wiki/Concatenate

Test cmd line:

ffmpeg -f concat -safe 0 -i mylist.txt -c copy combined.mp4


Output:

ffmpeg version N-93434-g7366174086 Copyright (c) 2000-2019 the FFmpeg
developers
  built with gcc 8.3.0 (Rev2, Built by MSYS2 project)
  configuration:  --disable-autodetect --enable-amf --enable-bzlib
--enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2
--enable-iconv --enable-lzma --enable-nvenc --enable-schannel
--enable-zlib --enable-sdl2 --disable-debug --enable-ffnvcodec
--enable-nvdec --enable-gmp --enable-libmp3lame --enable-libopus
--enable-libvorbis --enable-libx264 --enable-libdav1d
--extra-libs=-liconv --enable-gpl --enable-version3
  libavutil  56. 26.100 / 56. 26.100
  libavcodec 58. 47.105 / 58. 47.105
  libavformat    58. 26.101 / 58. 26.101
  libavdevice    58.  7.100 / 58.  7.100
  libavfilter 7. 48.100 /  7. 48.100
  libswscale  5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
[concat @ 01f267407b40] Line 1: unknown keyword 'Sequence_.mp4'
mylist.txt: Invalid data found when processing input


Also occurring when there are single  or double inverted commas around
filenames in mylist.txt.  Is this doable under Windows?

Dan.



___
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 use ffprobe with Windows7

2018-11-22 Thread Dan Bridges
On 22/11/2018 7:00 PM, Michael Koch wrote:
>
>> Yes, open CMD,then drag and drop the batch file into the terminal window
>> and press Enter.
>> Or just run ffprobe directly in the terminal.
>
> I was looking for a faster solution, without having to write video's
> name and path into the batch file, or into the CMD window. Just drag
> and drop and then I'd like to see the output of ffprobe.

The fastest solution is to create a shortcut icon on your desktop with
this target line:

C:\Windows\System32\cmd.exe /K ffprobe

This assumes ffprobe.exe is in your executable PATH list. Otherwise,
fully specially the path to it e.g

C:\Windows\System32\cmd.exe /K C:\ffmpeg\ffprobe

You can then drag your MP4 on to this icon Which you could call "Run
ffprobe".

The /K switch will keep the command prompt window open afterwards.
You can type EXIT to close it.

Alternately, change your "Run ffprobe.bat" batchfile to this:

@echo off
c:\ffmpeg\ffprobe %1
pause

The %1 takes the name of the filename you drag-and-drop onto the
batchile icon, if running from the desktop, or type after the batchfile,
if operating from the CLI.
Then, drag your MP4 on to this icon, and press Enter to close the window
when finished.

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

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

[FFmpeg-user] Replacing an audio stream in an MP4

2018-05-06 Thread Dan Bridges
I'm a heavy user of the Vegas 12 video editor. I record junior soccer
matches with 2 cameras and two extra ext. sound recorders. Sometimes I
notice a mixing balance problem in a rendered MP4 and need just to
replace a remixed version of the audio stream in the MP4. Vegas won't
output just a raw AAC file. But it will output a MP4 containing just the
audio.

So what I want to do is create a Windows desktop icon of a batchfile
where I can drag-and-drop an affected MP4. The batchfile will then look
for the presence of "replacement.mp4", the AAC-only MP4,  in the same
directory as the affected MP4. (I'll always use the same name for the
fixed audio file.)  If found, it will then perform the following
sequence of FFMPEG commands (using "test.mp4" as an example of an 
AVC+AAC MP4 which needs to have its audio stream replaced):

ffmpeg -i test.mp4 -an -c:v copy  test.h264
ffmpeg -i replacement.mp4 -vn -c:a copy replacement.aac
ffmpeg -i test.h264 -i replacement.aac -c copy test_replacement.mp4

The compression formats and stream indices will always be the same so I
don't need to do any checking for that.

1. Is this the most efficient way to perform this task?  Could I mux the
AVC stream in test.mp4 with the AAC stream in replacement.mp4 without
first demuxing them. That is, could this all be performed in one FFMPEG
command?

2. I get these warnings during the muxing:

"Timestamps are unset in a packet for stream 0. This is deprecated and
will stop working in the future. Fix your code to set the timestamps
properly" 

and a lot of "pts has no value". The audio appears to be in sync in the
18 minute clip I produced, so I don't think these warning are
significant here. What do you think?

1 minutes versions of test.mp4 (720p50) and replacement.mp4 are
available here:

https://dl.dropboxusercontent.com/s/z7a7dh1dgqohx17/test.mp4
https://dl.dropboxusercontent.com/s/s6cax255fugc3ny/replacement.mp4

Dan.








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

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

Re: [FFmpeg-user] mpeg2video encode gop structure

2018-03-14 Thread Dan Bridges
On 14/03/2018 1:37 PM, 冯良怀 wrote:
> ffmpeg.exe -i L:\input.mp4 -vcodec mpeg2video -g 12 -bf 2 -flags +cgop 
> -sc_threshold 10 -y L:\output.m2v

I tried this.  I used the following ffprobe line:

ffprobe -v quiet  -select_streams v  -of csv -show_frames -show_entries
frame=pict_type,coded_picture_number  -read_intervals %+#24 output.m2v >
test.txt

1. Here is the order of frames before sorting. I presume this is how
they're stored in the stream.

I    B    B    P    B    B    P    B    B    P    I    B    B    P   
B    B    P    B    B    P    I    B    B    P


2. Here  is the order of frames after sorting on coded_picture_number. I
presume this is the order the frames need to be decoded in:

I    P    B    B    P    B    B    P    B    B    I    P    B    B   
P    B    B    P    B    B    I    P    B    B


When discussing GOP structure, which order is used?


Dan.

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

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

Re: [FFmpeg-user] MTS to MP4 lossless conversion issues

2017-07-10 Thread Dan Bridges
I too get

*track 1: codec frame size is not set* with 1080p60 .MTS media when
remuxed as .MP4 But VLC shows the converted .MP4 as 60p (59.94Hz).
Tested with Win64 FFMPEG version N-86504-gc557718bea and VLC 2.2.6

Dan.

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

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

[FFmpeg-user] Filter chain query

2016-11-04 Thread Dan Bridges
Instead of

-vf file1,filter2

can I use

-vf filter1  -vf filter2?  

I'm creating a FFMPEG command line based on EVs, with filtering based on
the values of VOutputFrameSize and VFilter EVs.


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

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