ffprobe

ffmpeg command line write output to a text file

久未见 提交于 2019-11-30 08:25:40
问题 I'm using this script for shot detection in ffmpeg. ffprobe -show_frames -of compact=p=0 -f lavfi "movie=test.mp4,select=gt(scene\,0.3)" I need to write the output into a text file in order to read the output from a c program. How can I do this? Any help is appreciated. 回答1: You redirect the output to a file: ffprobe -show_frames -of compact=p=0 -f lavfi "movie=test.mp4,select=gt(scene\,0.3)" > output.txt 2>&1 If you want separate files for stdout and stderr you can do: [..] > out.txt 2> err

How to find duration of a video file using mediainfo in seconds or other formats?

北战南征 提交于 2019-11-30 04:33:33
How can I find duration of a video file in miliseconds i.e. in integer in deterministic way. I have used ffprobe to get the duration but it doesn't give duration for all file formats. Harit Vishwakarma Use the following commands: i) To get the duration of video stream: $ mediainfo --Inform="Video;%Duration%" [inputfile] ii) To get the duration of the media file: $ mediainfo --Inform="General;%Duration%" [inputfile] iii) To get the duration of audio stream only: $ mediainfo --Inform="Audio;%Duration%" [inputfile] iv) To get values of more than one parameter: $ mediainfo --Inform="Video;%Width%,

How to find duration of a video file using mediainfo in seconds or other formats?

末鹿安然 提交于 2019-11-29 01:56:12
问题 How can I find duration of a video file in miliseconds i.e. in integer in deterministic way. I have used ffprobe to get the duration but it doesn't give duration for all file formats. 回答1: Use the following commands: i) To get the duration of video stream: $ mediainfo --Inform="Video;%Duration%" [inputfile] ii) To get the duration of the media file: $ mediainfo --Inform="General;%Duration%" [inputfile] iii) To get the duration of audio stream only: $ mediainfo --Inform="Audio;%Duration%"

Getting video dimension from ffmpeg -i

时间秒杀一切 提交于 2019-11-28 19:44:11
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, 25k tbn, 50 tbc Metadata: creation_time : 2010-01-24 00:55:16 Stream #0.1(und): Audio: aac, 44100 Hz,

ffprobe or avprobe not found. Please install one

无人久伴 提交于 2019-11-28 17:12:11
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/quick-mp3.com-JALAL-EL-HAMDAOUI-2007-ARRASSIATES-VOL2-F1P-9CDoxlQ.mp3 has already been downloaded [download

Using FFMPEG: How to do a Scene Change Detection? with timecode?

亡梦爱人 提交于 2019-11-27 19:08:20
Based on this article it seems that it is possible to use FFMPEG to detect scene change in videos: http://www.luckydinosaur.com/u/ffmpeg-scene-change-detector Now I have a video that displays a book text and when the text (word or sentence) is spoken it gets highlighted. Something like this audio book: https://youtu.be/lA7L6ZNVKjc I need to know the timestamp when the text gets highlighted (hence scene change), this will allow me to add timestamp tags on my youtube video, so it becomes easier for listeners to navigate through the audiobook. What is the magic command line that would do this?

Using ffprobe to check audio-only files

随声附和 提交于 2019-11-26 23:37:23
问题 Is there an ffprobe command I can run to see if an mov file that I have is audio-only or contains video as well? I have various mov files, some of which are audio dubs and some of which are full videos. 回答1: You can output stream information in JSON or XML: ffprobe -show_streams -print_format json input.mov You'll get an array of streams with a codec_type attribute with values like audio , video etc. 回答2: To output the codec_type ffprobe -loglevel error -show_entries stream=codec_type -of

Using FFMPEG: How to do a Scene Change Detection? with timecode?

旧街凉风 提交于 2019-11-26 19:38:03
问题 Based on this article it seems that it is possible to use FFMPEG to detect scene change in videos: http://www.luckydinosaur.com/u/ffmpeg-scene-change-detector Now I have a video that displays a book text and when the text (word or sentence) is spoken it gets highlighted. Something like this audio book: https://youtu.be/lA7L6ZNVKjc I need to know the timestamp when the text gets highlighted (hence scene change), this will allow me to add timestamp tags on my youtube video, so it becomes easier