LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-27-2009, 02:02 PM   #1
Rob00
LQ Newbie
 
Registered: Oct 2009
Posts: 13

Rep: Reputation: 0
Any way to search for video files that use a specific encoding?


Is there an app or find parameter that can search for video files using a specific (DivX for example) encoding?

On Windows, you can do this, so I was hoping there would be some way on Linux whether it's with find or another app.

I think my question made sense, but to make sure:

I want to find all (*.avi OR *.divx) on my file system with the DiVX fourcc tag (i think that's what its called)
 
Old 10-27-2009, 02:12 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
you can use file
Code:
file movie.avi | grep DiVX
 
Old 10-27-2009, 02:47 PM   #3
Rob00
LQ Newbie
 
Registered: Oct 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks, that seems to be a useful command, but is there a way to go through an entire file system from / ? When I typed file *.avi it just does the current directory.
 
Old 10-27-2009, 03:13 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Perhaps something like
Code:
for i in `find / -name *.avi`; do file $i | grep DViX; done
 
Old 10-27-2009, 04:38 PM   #5
Rob00
LQ Newbie
 
Registered: Oct 2009
Posts: 13

Original Poster
Rep: Reputation: 0
That almost works but there are lots of spaces and it delimits spaces.

Is there an easy way to make it work with spaces without using SED? If I do have to use SED, how do I replace a space with
"\ "
? I tried but couldn't figure it out. I know how to use sed a little but, but not that well.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Search tools (Affinity, Tracker Search Tool, etc.) not working - don't find any files Adamantus Linux - Newbie 1 03-29-2009 11:21 PM
How to use grep to search for a specific variable.. memo007 Linux - Software 4 02-24-2007 05:52 PM
video encoding from uploaded files dtra Linux - Software 5 04-14-2005 01:05 AM
Encoding Video Files help cferris Red Hat 1 11-03-2004 11:03 PM
how to search files with specific contents ? sachinh Linux - Security 4 07-22-2004 08:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration