Q. Using command line only, how to I retrieve the exact number of frames in a given video in Linux?
ffmpeg will return the duration in minutes and the framerate but duration*framerate does not give an exact number of frames.
I need to know the exact number of frames.
ffmpeg will return the duration in minutes and the framerate but duration*framerate does not give an exact number of frames.
I need to know the exact number of frames.
A. mplayer -identify -fps 1 VIDEOFILE
Then look at
ID_VIDEO_FPS=1.000
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=80
ID_AUDIO_BITRATE=224000
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_LENGTH=41819.00
Notice how the length, in seconds, is now the exact number of frames. (41819 frames)
If you need it to be interactive-less:
mplayer -msglevel all=0 -identify -fps 1 -vo null -frames 0 VIDEOFILE | grep ID_LENGTH
Or, for a program:
mplayer -identify -fps 1 -vo null -frames 0 -msglevel all=-1 VIDEO > moviedata
then to get the frame info:
grep ID_LENGTH moviedata
should do.
Thanks for that, now I know how to do it too!
~Purr
Then look at
ID_VIDEO_FPS=1.000
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=80
ID_AUDIO_BITRATE=224000
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_LENGTH=41819.00
Notice how the length, in seconds, is now the exact number of frames. (41819 frames)
If you need it to be interactive-less:
mplayer -msglevel all=0 -identify -fps 1 -vo null -frames 0 VIDEOFILE | grep ID_LENGTH
Or, for a program:
mplayer -identify -fps 1 -vo null -frames 0 -msglevel all=-1 VIDEO > moviedata
then to get the frame info:
grep ID_LENGTH moviedata
should do.
Thanks for that, now I know how to do it too!
~Purr
I have Fedora 10, a 80GB hard disk and want to add a new one of 640GB. How can i manage to transfer the data?
Q. I want to transfer the data of 80GB disk to the new one (an 'image' as it is known). I know that exists a specific command through the linux command line(the terminal). I also want to make a partition of the 640GB hard disk. Is there a command also for this?
Thanks!
Thanks!
A. Here are a couple of links for your question:
Best linux distribution featuring a GUI to run on a computer with included specs?
Q. I'm fairly computer illiterate, would any of you know of a Linux distribution that could run comfortably on an old computer with 64 ram, 600 mhz processor, 8mb video card...?
I'm horrible with Linux command line, so I'd need a GUI.
I'm horrible with Linux command line, so I'd need a GUI.
A. Try Puppy Linux. Its light on the system and should run fine on your computer specs. The only upgrade I would recommend is RAM. You should have 128MB or more.
If you have 256MB or more, you can even install and run Ubuntu Linux satisfactorily.
I have run Puppy Linux on my P-166MMX, 64MB, 20GB, 4MB VGA. It worked well.
If you have 256MB or more, you can even install and run Ubuntu Linux satisfactorily.
I have run Puppy Linux on my P-166MMX, 64MB, 20GB, 4MB VGA. It worked well.
Nec Projector Review
Plastic Shed Reviews
Ati Graphic Reviews
Nurse Uniforms Reviews
Cabochons Reviews
Inflatable Water Slides Reviews
Barcode Scanner Reviews
No comments:
Post a Comment