ffprobe

How to split a video that has weird keyframes “pkt_pts_time=N/A”?

风流意气都作罢 提交于 2019-12-25 00:14:58
问题 I can run a command like this on normal videos (h264 on mkv): avconv -i videofile.avi -c copy -flags +global_header -segment_time 60 -f segment "videofile-part."%03d".mp4" but on videos with this format and container (the ones I have at least) it will fail: MPEG-4 on a .avi file if I probe it I get key frames that are ignored by the splittter: ffprobe videofile.avi -show_entries frame=key_frame,pict_type,pkt_pts_time -select_streams v -of compact -v 0 | grep frame=1 (from this tip https:/

Populate field values in a VB form by parsing ffprobe output

人盡茶涼 提交于 2019-12-24 12:51:39
问题 Ok. I am attempting to grab pertinent media information from video files. To do this, I run ffprobe from my script. Something like this: Shell("cmd /c [ffpath]\ffprobe.exe -probesize 1000000 -hide_banner -i ""[path]\[video].mp4"" >""[path]\[video]_probe.log"" 2>&1") Which creates a file containing something like this: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '[path]\[video].mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.8.102

Get duration from multiple video files?

寵の児 提交于 2019-12-23 04:29:17
问题 I want to extract video duration metadata from every video file in a specified directory and then view the total duration. I need to extract the data from as much as thousands of videos overall. In Windows I can view the total duration for many files manually when selecting them in the explorer and going into details. For 1500 mp4 files it takes about 20 seconds to make the calculations and view the total time. It's relatively much faster then what I'm currently getting when iterating with

Ffprobe with print json doesn't print anything

不羁岁月 提交于 2019-12-22 09:04:05
问题 I am trying to get information about a movie (resolution, frame rate, bit rate, codecs, duration etc) in a human readable way. I found this commnad: ffprobe -v quiet -print_format json -show_format -show_streams somefile.asf In this Stack Overflow question: Get ffmpeg information in friendly way But it doesn't work for me. When I try it in a terminal, the output is empty: richard@richard-desktop:~/projects/hello-python$ ffprobe -v quiet -print_format json -show_format -show_streams tests/test

get video fps using FFProbe

天涯浪子 提交于 2019-12-22 08:12:23
问题 I am new in ffprobe my aim is get video fps and store into java program. my code store xml files but i want store directly like int fps=30; ffprobe -v quiet -print_format xml -show_format -show_streams "/video/small/small.avi" > "/video/small/test.xml" this is my code. 回答1: This will print the video FPS: ffprobe -v error -select_streams v -of default=noprint_wrappers=1:nokey=1 -show_entries stream=r_frame_rate file.mp4 回答2: I found calculate fps in another method that is.. String query =

Get mime type for MediaSource.isTypeSupported

回眸只為那壹抹淺笑 提交于 2019-12-22 04:39:25
问题 How do I get the Mime type I need to pass to MediaSource.isTypeSupported with ffprobe/ffmpeg? For instance, on my computer, that returns true : MediaSource.isTypeSupported('video/mp4; codecs="avc1.64000d,mp4a.40.2"') while that doesn't MediaSource.isTypeSupported('video/mp4') I'm not sure how to get what would correspond to the avc1.64000d,mp4a.40.2 part for a given video. Here is a larger list of what this part may look like. ffprobe -show_streams -i video.mp4 returns a number of interesting

ffprobe Fastest way to read video packets

感情迁移 提交于 2019-12-20 06:30:27
问题 I've been using ffprobe to read packets from video streams for analysis. However it's painfully slow. A 30min 720p video takes roughly 8min to read. I'm using the following command at the moment: ffprobe.exe -i video.mp4 -show_entries packet=size,pts_time,flags,duration_time This gives me the following information for every packet: [PACKET] pts_time=1981.392000 duration_time=0.032000 size=1536 flags=K_ [/PACKET] I did read a fair bit in the documentation but it looks like this is just it or

Getting metadata for MOV video

眉间皱痕 提交于 2019-12-19 04:09:48
问题 I' ve a .MOV video sent by a phone messanger app. Can I retrieve the real creation data of the file and the author? I tried with ffprobe, mediainfo and similar tool but give me only the date when I download it. 回答1: I wrote a quick Python script that can obtain the creation and modification timestamps, since those are easy to find. Finding the author is a bit harder because it can be stored in several different ways. Example usage: $ ./mov-timestamps.py file.mov creation date: 2013-03-29 16

Getting video dimension from ffmpeg -i

别来无恙 提交于 2019-12-17 23:37:00
问题 How would I get the height and width of a video from ffmpeg 's information output. For example, with the following output -- $ ffmpeg -i 1video.mp4 ... Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/david/Desktop/1video.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 2010-01-24 00:55:16 Duration: 00:00:35.08, start: 0.000000, bitrate: 354 kb/s Stream #0.0(und): Video: h264 (High), yuv420p, 640x360 [PAR 1:1 DAR 16:9], 597 kb/s, 25 fps, 25 tbr,

ffprobe or avprobe not found. Please install one

谁说胖子不能爱 提交于 2019-12-17 17:32:27
问题 i want to add tags to mp3 converted by youtube-dl & ffmpeg : youtube-dl -o '/Output/qpgTC9MDx1o.mp3' qpgTC9MDx1o -f bestaudio --extract-audio --metadata-from-title "%(artist)s - %(title)s" 2>&1 i have this error in output result : [youtube] qpgTC9MDx1o: Downloading webpage [youtube] qpgTC9MDx1o: Extracting video information [youtube] qpgTC9MDx1o: Downloading js player en_US-vfluGO3jj [youtube] qpgTC9MDx1o: Downloading DASH manifest [download] /var/www/vhosts/mp3-y.com/httpdocs/Mp3_Output