ffprobe

FFmpeg check channels of a 7.1 audio for silence

时光总嘲笑我的痴心妄想 提交于 2019-12-13 12:23:20
问题 This is a follow-up question from my previous question asked here, where I needed to look for silence within a specific audio track. Here is the ffmpeg life-saver solution where helps to get some metadata: ffmpeg -i file -map 0:a:1 -af astats -f null - But I have other type of input .mp4 files where they have one single track of 8 (i.e. 7.1) audio channels. Apparently these files are transcoded from an original file (somehow the 4 track stereos are squished into these files). Now similar to

Using ffprobe/ffmpeg to extract individual frames and types in encode order

喜你入骨 提交于 2019-12-13 02:43:48
问题 I am able to extract keyframes using ffmpeg. Something like this that I have been using: ffmpeg -i input.mp4 -vf "select='eq(pict_type\,I)" -vsync vfr -qscale:v 2 I-thumbnails-%02d.png -vf "select='eq(pict_type\,B)" -vsync vfr -qscale:v 2 B-thumbnails-%02d.png -vf "select='eq(pict_type\,P)" -vsync vfr -qscale:v 2 P-thumbnails-%02d.png Now the issue is, I would like these extracted frames to be in encode order, if possible, the way they are extracted should have a timestamp or any way to know

ffprobe how to retrieve both audio and video info and output to single line?

纵然是瞬间 提交于 2019-12-12 04:15:28
问题 I can use the following to retrieve the audio and video codec and the video frame height: ffprobe -v quiet -show_entries stream=index,codec_name,height -of csv input.mp4 But the output is on two lines and includes text that I don't need like so: stream,0,h264,720 stream,1,mp3 The only output I want is to be in the form of: mp3,h264,720 I've tried using -show_entries twice in the same command line, but it ignores the first call every time. I've also tried using ffprobe -v quiet -select_streams

Using FFProbe within a Python script

穿精又带淫゛_ 提交于 2019-12-12 02:19:07
问题 I am fairly new to python, this is my first real project and I have come to a roadblock. What I have here is a .wmv file, I am using FFprobe to extract the duration in seconds from the .wmv file. When I run the following command in the CMD: ffprobe -i Video2.wmv -show_entries format=duration -v quiet -of csv="p=0" I get successful output. However, when I use os.system, like this: os.system('ffprobe -i Video2.wmv -show_entries format=duration -v quiet -of csv="p=0"') I get the following output

ffprobe show_frames for multiple videos

自古美人都是妖i 提交于 2019-12-11 11:53:27
问题 Is there any way that I can see frames for multiple videos at same time in one file? I know how to do that for one video - ffprobe -show_frames http://myvirtualdirectory/myvideo.mp4 > output.txt I have so many videos in my virtual directory - so I want to see all the videos frames at one file. And is there any way that I can see frames from my local directory - and not from virtual directory like (http://.... ) 回答1: Learn to use shell scripts. Identify your local directory and make a simple

My video has no keyframes, How it is possible?

夙愿已清 提交于 2019-12-10 20:06:44
问题 When I run the following line on my video it only outputs P frames and B frames and no I frame, ffprobe -select_streams v -show_frames -show_entries frame=pict_type -of csv 00000.MTS How is it possible for a video not to have I frames. Here is the link to the video. According to this tutorial's definition, P frames are just built upon previous frames, If there is no other frame to build upon how can we use P frames? Output of ffprobe -i 00000.MTS is: ... Input #0, mpegts, from '00000.MTS':

ffmpeg, stretch audio to x seconds

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 19:21:54
问题 I am trying to make an audio file be exactly x second. So far i tried using the atempo filter by doing the following calculation Audio length / desired length = atempo. But this is not accurate, and I am having to tweak the tempo manually to get it to an exact fit. Are there any other solutions to get this work ? Or am I doing this incorrectly? My original file is a wav file, and my output in an mp3 Here is a sample command ffmpeg -i input.wav -codec:a libmp3lame -filter:a "atempo=0.9992323"

Using OpenSSL to decrypt a .ts file

99封情书 提交于 2019-12-09 23:08:22
问题 Everything is in the same directory. M3u8 File : #EXTM3U #EXT-X-ALLOW-CACHE:NO #EXT-X-TARGETDURATION:10 #EXT-X-MEDIA-SEQUENCE:0 #EXT-X-KEY:METHOD=AES-128,URI=MyKeyFile.key #EXTINF:10, aes_ts_files/filesequence0000000.ts #EXTINF:10, aes_ts_files/filesequence0000001.ts #EXTINF:10, aes_ts_files/filesequence0000002.ts #EXTINF:10, aes_ts_files/filesequence0000003.ts #EXTINF:10, aes_ts_files/filesequence0000004.ts #EXTINF:10, aes_ts_files/filesequence0000005.ts #EXTINF:10, aes_ts_files

Getting FFProbe Information With Python

邮差的信 提交于 2019-12-08 20:13:41
问题 I've been attempting to figure this out for forever now (I'm new to programming) and I can't figure it out. I'm attempting to build a script that will test the file, and give me output from which I can get information like "Audio Format" that I can then put into the filename. However, I can't even get the script to return any file info. I've hit a wall at inserting an input file... So at this point I just need help getting it to spit out info based on the argvs I've thrown in. Hopefully I'll

Unable to load FFProbe driver for FFmpeg

孤人 提交于 2019-12-08 15:58:51
问题 Hi i am trying to install php-ffmpeg. Can someone guide me or correct me in my steps. I installed the composer on windows and then traversed to my folder i had created to run install ffmpeg cmd After running this command a composer.json , composer.lock file were created along with a vendor folder. Later installed the Shared FFMpeg build for 64bit from here http://ffmpeg.zeranoe.com/builds/ and form this folder copied the bin folder to my directory to set the ffmpeg and ffprobe path during