[FFmpeg-user] ffprobe for text files?
Paul B Mahol
onemda at gmail.com
Tue Nov 20 18:47:59 EET 2018
On 11/20/18, Chad Davis <Chad.Davis at bothellwa.gov> wrote:
> Hello-
>
> Here's a newbie ffprobe question:
>
> I noticed that ffprobe supports txt files. For kicks, I created a sample
> text file titled "test.txt" that contained "Test." I ran ffprobe (ffprobe
> -v error -show_format -show_streams test.txt) and got this:
>
> [STREAM]
> index=0
> codec_name=ansi
> codec_long_name=ASCII/ANSI art
> profile=unknown
> codec_type=video
> codec_time_base=1/25
> codec_tag_string=[0][0][0][0]
> codec_tag=0x0000
> width=640
> height=400
> coded_width=640
> coded_height=400
> has_b_frames=0
> sample_aspect_ratio=0:1
> display_aspect_ratio=0:1
> pix_fmt=pal8
> level=-99
> color_range=N/A
> color_space=unknown
> color_transfer=unknown
> color_primaries=unknown
> chroma_location=unspecified
> field_order=unknown
> timecode=N/A
> refs=1
> id=N/A
> r_frame_rate=25/1
> avg_frame_rate=25/1
> time_base=1/25
> start_pts=N/A
> start_time=N/A
> duration_ts=1
> duration=0.040000
> bit_rate=N/A
> max_bit_rate=N/A
> bits_per_raw_sample=N/A
> nb_frames=N/A
> nb_read_frames=N/A
> nb_read_packets=N/A
> DISPOSITION:default=0
> DISPOSITION:dub=0
> DISPOSITION:original=0
> DISPOSITION:comment=0
> DISPOSITION:lyrics=0
> DISPOSITION:karaoke=0
> DISPOSITION:forced=0
> DISPOSITION:hearing_impaired=0
> DISPOSITION:visual_impaired=0
> DISPOSITION:clean_effects=0
> DISPOSITION:attached_pic=0
> DISPOSITION:timed_thumbnails=0
> [/STREAM]
> [FORMAT]
> filename=test.txt
> nb_streams=1
> nb_programs=0
> format_name=tty
> format_long_name=Tele-typewriter
> start_time=N/A
> duration=0.040000
> size=5
> bit_rate=1000
> probe_score=50
> [/FORMAT]
>
> I guess I don't understand why ffprobe would support text files. I also
> don't understand why a text file could have a width, height or duration. Am
> I missing something?
You are missing big picture.
More information about the ffmpeg-user
mailing list