ffmpeg - Invalid report file level (windows) - windows

ffmpeg is giving me an error and I couldn't get much help googling it, besides a thread on ffmpeg mailing list dated 5 years ago which doesn't address the exact same problem.
No matter which ffmpeg version or build for windows I use, the error is always:
c:\>ffmpeg.exe
Invalid report file level
I've been using ffmpeg on the same computer for years and I've no idea where the problem started and how to debug it. Any help is welcome.
Notes:
No antivirus is running
ffmpeg.exe is on windows path
I've tried installing ffmpeg with choco install
ffmpeg but it reports the same error.

If the environment variable FFREPORT is set, ffmpeg will parse it to set loglevel for the verbosity of the log report and also its location. What you've encountered is a parse failure of that system variable.
So, either unset it using set FFREPORT= or set it to a different string. See -report under https://ffmpeg.org/ffmpeg.html#Generic-options

Related

Ffmpeg can't open m3u8 link

Ffmpeg can't play https://live.webcamromania.ro/WR051/wrcam_051/playlist.m3u8. It gives an Input/Output error. With other links it works fine.
[tls # 0x7fb19f405bc0] IO Error: -9806 http://live.webcamromania.ro/WR051/wrcam_051/playlist.m3u8: Input/output error
This output means, that the TLS (https) is not accepted. This could be because the TLS of the webserver is invalid (seems here not the case) or because FFmpeg was compiled with and old / outdated SSL library.
Depending on your operating system, check for the latest updates of the SSL library and re-compile FFmpeg or check that you're using the latest version of FFmpeg.
For future questions show the full command you're using and also the full output. This helps us to give you more detailed information and better help.

Pydub can't find ffmpeg although it's installed and in path

I'm attempting to open some MP3 files to find their lengths (as part of a larger project). I've installed pydub and ffmpeg has been installed via brew. ffmpeg is available in my path, and typing ffmpeg in a terminal launches it successfully - the audio file I'm referencing is present and I can run ffmpeg -i on it to get information about it. The program can open and play the audio file (using pygame), so I'm sure it's not a file issue.
However, attempting to open any files with AudioSegment leads to 'Couldn't find ffmpeg or avconv - defaulting to ffmpeg but may not work' being displayed, and any attempt to open a file using AudioSegment leads to an exception.
I've tried setting the path to ffmpeg explicitly using AudioSegment.converter - both trying to point to '/usr/local/bin/ffmpeg' and also to the true location (the previous one is a symlink).
from pydub import AudioSegment
AudioSegment.converter = '/usr/local/bin/ffmpeg' # tried with and without
print(len(AudioSegment.from_mp3('mp3_audio.mp3')))
I get FileNotFoundError: [Errno 2] No such file or directory: 'ffprobe': 'ffprobe'
This was hard work to figure out. But here it is.
On Mac, run brew install ffmpeg
Then you need to find where it has written the binary to. It will be buried in /usr/local/Cellar directory and will be based on the version number of the install. In my case it was
/usr/local/Cellar/ffmpeg/4.2.1_2/bin/ffmpeg
You then need to add this path into your Python script as follows
from pydub import AudioSegment
AudioSegment.converter = '/usr/local/Cellar/ffmpeg/4.2.1_2/bin/ffmpeg'

D3.js, trouble initiating shp2json - encoding-indexes error

I'm trying to follow the tutorial Mike Bostock did for Command Line Cartography (which is a great help). Right after installing shapefile and running the shp2json step [shp2json cb_2014_06_tract_500k.shp -o ca.json] I get this error message:
“error: Decoder not present. Did you forget to include encoding-indexes.js first?” an error message which originates from the text-encoding package from NPM.
In trying to diagnoise the problem, I figured I should manually install text-encoding as it's in the shp2json dependency list but, didn't appear to be loading. I also reinstalled node to downgrade from 7.3.0 to 6.9.2 and a number of other things (my hacking around looking for a solution for a few hours) but, am stuck. Is this just a matter of updating a package.json?
I’m using Windows7, the env variables is set I believe correctly to \Users\myAccount\AppData\Roaming\npm. I’ve installed all packages globally as well. Thanks for any insight.
I had the same problem when running the "#prepublish" script here. Then I noticed that Mike's shapefile repo has this information in the README:
# shp2json --encoding *encoding*
Specify the dBASE table file character encoding. Defaults to “windows-1252”.
So I experimented and changed that script to:
shp2json --encoding utf-8 cb_${YEAR}_${STATE}_tract_500k.shp
Note that in this line above my state and year variables had been defined higher in the script (I was using Texas[48], not California[06]).
Also, I was getting another error asking for d3-array. So I installed that, too.
Problem solved (at least in terms of processing the data and getting it to render in the browser). Others issues, like projection, remain. Obviously.

ffmpeg/ffprobe show_frames option

I recently installed ffmpeg version 0.8.5-4:0.8.5 on my Ubuntu Linux box.
When I execute "ffprobe -show_frames http://test.com/test.mp4" I get the following error:
Unrecognized option 'show_frames'
I have tried installed all sorts of ffmpeg dependent packages to fix this without any success.
Can someone help to resolve this error by telling me what I need to install exactly to fix this?
Thanks
You're using a crippled, fake version of "ffprobe" that originates from libav, not FFmpeg:
Ubuntu switched from FFmpeg to libav because the Debian/Ubuntu ffmpeg package maintainer is a libav developer. The intentional usage of the names "ffmpeg" and "ffprobe" for something not from FFmpeg was disappointing, and is misguiding to users and misrepresents the work of the FFmpeg developers. Also see Who can tell me the difference and relation between ffmpeg, libav, and avconv?
This bizarro "ffprobe" does not have the -show_frames option. You have three options:
Compile ffmpeg and/or ffprobe
Use Jon Severinsson's FFmpeg PPA
Use a static build of ffmpeg
All three methods will provide a real, working ffprobe. Use the static build if you're lazy.
Uninstalled the current version of ffmpeg(This was a static build downloaded from the ffmpeg site: http://ffmpeg.gusari.org/static/32bit/
show_frames option was deprecated in this version.
Download and installed the latest version from:http://www.ffmpeg.org/releases/ffmpeg-1.1.3.tar.bz2

how to link ffmpeg to php.ini

hi i am using mac osx with mamp and i was wondering how i can link ffmpeg to php.ini so that i can use it with php exec() ?
the directory that ffmpeg got installed in is /users/sarmenhb/ffmpeg although i wish it didnt get installed here and got installed somewhere more appropriate, i sadly have no clue how to change the system to know where the new location is.
i read a few articles telling me to put something like extensions = /users/sarmenhb/ffmpeg/ffmpeg.so but looking in the directory i dont see a so file. i do see ffmpeg as a console app is that an so file itself?
thanks
ps: i did a test of ffmpeg in console from a flv file to a mp4 file and the audio didnt work on the new file. do i have to install something?
You can use the full path when executing ffmpeg:
exec("/users/sarmenhb/ffmpeg");

Resources