Reputation
481
Top tag
Next privilege 500 Rep.
Access review queues
Badges
2 7 19
Newest
 Critic
Impact
~57k people reached

  • 0 posts edited
  • 0 helpful flags
  • 75 votes cast
Jan
5
comment How do I get the number of frames in a video on the linux command line?
That's pretty good. In my experience, it doesn't take that long. A 40 minute file takes about <3seconds to run though. Remember that the "^M" is not the 2 characters ^ and M, you have to press Control-V, and then enter. Instead of your command I used: ffmpeg -i somefile.avi -vcodec copy -f rawvideo -y /dev/null 2>&1 | tr "^M" '\n' | grep '^frame=' | perl -pe 's/^frame=\s*([0-9]+)\s.*$/\1/' | tail -n 1 Your command fails if there's no space after the "frames="
Dec
21
comment Command-line video concatenation and recompression?
For me, mencoder is in the mencoder ubuntu package.
Dec
18
revised How do I get the number of frames in a video on the linux command line?
added tcprobe output
Dec
18
comment How do I get the number of frames in a video on the linux command line?
That looks like a good answer, and works for some files, but for some VOB files I have, I don't have that data in the output. I've updated the question with the output I get
Dec
17
awarded  Teacher
Dec
17
asked How do I get the number of frames in a video on the linux command line?
Dec
17
answered Command-line video concatenation and recompression?
Dec
17
answered Command line tools for copying parts of video
Dec
17
answered Video players that have frame by frame playback feature
Dec
10
awarded  Editor
Sep
23
asked Ubuntu - No touchpad tab in my Mouse preferences
Aug
28
awarded  Student
Aug
28
comment Recommend me a good video format to encode my video
um? Which is? Sorry I don't know much about video codecs...
Aug
28
asked Recommend me a good video format to encode my video
Aug
10
awarded  Supporter
Aug
10
awarded  Autobiographer