I should add that with the below cmd, I can "see" what I need, but I don't understand how to extract what I need. ffprobe -i "video.mp4" -show_entries format=duration -v quiet -of csv="p=0" (The files are a collection from the past 15 years or so, some newly encoded, others converted years ago)Īt any rate, I found the following use of ffprobe to get duration, and was hoping that someone here who understands the complexities of using ffmpeg & ffprobe would be kind enough to assist me with finding the other values I need in a more straightforward way than the crazy code I'm using myself, created to climb through the full results of ffmpeg. Using the same input from the previous answer, we just change the output to a network stream: ffmpeg -f avfoundation -i ':1' -t 10 -f mpegts 'tcp://remotehostorIP:port' Where. The videos DO play,īut the massive amount of data that ffmpeg returns in has me baffled as to how parse the returned XML to find what I need with all the conditions that I seem to be encountering. The other method, is to broadcast the audio via TCP via a point-to-point connection. I've had some luck using ffmpeg and extracting the video bitrate, video width, video height, duration, and aspect ratio from them, but with an error ratio of about 5%, this still leaves me with an enormous number of files that I don't know how to deal with. I am but a lowly PHP developer that has been tasked with retrieving some basic information about 100's of thousands of video files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |