Resolution attribute for video links?
- Scintilla
- (for EXTREME)
- Joined: Mon Mar 31, 2003 8:47 pm
- Status: Quo
- Location: New Jersey
- Contact:
Resolution attribute for video links?
It occurred to me today, why not let creators specify a resolution for each of their video links (optional)?
It seems to me that that's the only major video attribute that isn't listed so far... and I wouldn't be surprised if it was often a factor in people deciding which version of a video to get if multiple versions are offered (people with older computers wanting something they won't choke on, quality Nazis wanting highest clarity, etc.), and I wouldn't think it would be that hard to implement (not that I know anything about PHP).
It could even work for Local links if the file uploaded was an MPEG (like the other attributes do now)...
It seems to me that that's the only major video attribute that isn't listed so far... and I wouldn't be surprised if it was often a factor in people deciding which version of a video to get if multiple versions are offered (people with older computers wanting something they won't choke on, quality Nazis wanting highest clarity, etc.), and I wouldn't think it would be that hard to implement (not that I know anything about PHP).
It could even work for Local links if the file uploaded was an MPEG (like the other attributes do now)...
- AbsoluteDestiny
- Joined: Wed Aug 15, 2001 1:56 pm
- Location: Oxford, UK
- Contact:
- Scintilla
- (for EXTREME)
- Joined: Mon Mar 31, 2003 8:47 pm
- Status: Quo
- Location: New Jersey
- Contact:
-
- is
- Joined: Tue Jul 23, 2002 5:54 am
- Status: N͋̀͒̆ͣ͋ͤ̍ͮ͌ͭ̔̊͒ͧ̿
- Location: N????????????????
Re: Resolution attribute for video links?
Assuming the transcode toolset is installed on nago (or whereever this file can be accessed to most conveniently generate and store this data), it isn't hard. Here's what you get on standard output from tcprobe when you put it on an AVI file:Scintilla wrote:I wouldn't think it would be that hard to implement (not that I know anything about PHP)
Code: Select all
bash-2.05b$ tcprobe -i /mnt/usbdrive/amv/AqStud\(Scintilla\)-EvaBebop.avi
[tcprobe] RIFF data, AVI video
[avilib] V: 23.976 fps, codec=DX50, frames=2502, width=512, height=384
[avilib] A: 44100 Hz, format=0x55, bits=0, channels=2, bitrate=192 kbps,
[avilib] 2491 chunks, 2503528 bytes, CBR
[tcprobe] summary for /mnt/usbdrive/amv/AqStud(Scintilla)-EvaBebop.avi, (*) = not default, 0 = not detected
import frame size: -g 512x384 [720x576] (*)
frame rate: -f 23.976 [25.000] frc=1 (*)
audio track: -a 0 [0] -e 44100,0,2 [48000,16,2] -n 0x55 [0x2000] (*)
bitrate=192 kbps
length: 2502 frames, frame_time=41 msec, duration=0:01:44.354
I'm not sure what tool is currently being used to extract data about MPEGs. My intuition says mpeg3dump (from libmpeg3) but I could be wrong...
-
- is
- Joined: Tue Jul 23, 2002 5:54 am
- Status: N͋̀͒̆ͣ͋ͤ̍ͮ͌ͭ̔̊͒ͧ̿
- Location: N????????????????
[more]
Should the execution of an external program not be desired (for security reasons; it's a valid justification), it's possible to just interface to avilib (see avilib documentation) by writing a small PHP extension.
Should the execution of an external program not be desired (for security reasons; it's a valid justification), it's possible to just interface to avilib (see avilib documentation) by writing a small PHP extension.
- Flint the Dwarf
- Joined: Wed Jan 16, 2002 6:58 pm
- Location: Ashland, WI
- AbsoluteDestiny
- Joined: Wed Aug 15, 2001 1:56 pm
- Location: Oxford, UK
- Contact:
-
- is
- Joined: Tue Jul 23, 2002 5:54 am
- Status: N͋̀͒̆ͣ͋ͤ̍ͮ͌ͭ̔̊͒ͧ̿
- Location: N????????????????
- Scintilla
- (for EXTREME)
- Joined: Mon Mar 31, 2003 8:47 pm
- Status: Quo
- Location: New Jersey
- Contact: