Archive for the Multimedia Category

Command to rename jpeg/jpg files by date/time

Posted in Multimedia | No Comments »

Hi all,

sometimes I like to rename my photos by date/time

so I use the command jhead to do the work, just running:

$ jhead -n%Y%m%d-%H%M%S *.jpg

This command renames all files with the jpg extension with its time/date stamp in the format YYYYMMDD-HHMMSS.jpg

Reference:

http://www.linux.com/articles/56588

How to extract video from a DVD

Posted in Multimedia | No Comments »

Hi,

today I will teach you how to extract video from a DVD using the mencoder.

Note: The mencoder’s configurations used are compatibles with Creative Zen Vision:M.

Extracting title 1:

$ mencoder dvd://1 -o dvd-title1.avi -vf scale=320:240 -oac mp3lame -ovc xvid -xvidencopts bitrate=800

Extracting title 1 with subtitle lang:

$ mencoder dvd://1 -slang en -o dvd-title1.avi -vf scale=320:240 -oac mp3lame -ovc xvid -xvidencopts bitrate=800

Extracting chapters 2,3,4:

$ mencoder dvd://1 -chapter 2-4 -slang en -o dvd-chapters_2-4.avi -vf scale=320:240 -oac mp3lame -ovc xvid -xvidencopts bitrate=800

Extracting only chapter 2:

$ mencoder dvd://1 -chapter 2-2 -slang en -o dvd-chapter_2.avi -vf scale=320:240 -oac mp3lame -ovc xvid -xvidencopts bitrate=800

Playing VOB, DVD ISO or IMG files with mplayer

Posted in Multimedia | No Comments »

Hi,

Today I will teach how to play VOB, DVD ISO or IMG files using the mplayer.

Play DVD video from a directory with VOB files:

$ mplayer dvd://1 -dvd-device /path/to/directory/

Play a DVD ISO file:

$ mplayer -dvd-device img.iso dvd://1

Reference:

$ man mplayer

Playing DVD with mplayer

Posted in Multimedia | No Comments »

Hi,

today I will teach you how to play DVD media using the mplayer.

Quickstart DVD playing:

$ mplayer dvd://1

Play from a different DVD device:

$ mplayer dvd://1 -dvd-device /dev/dvd2

Play only title 3:

$ mplayer dvd://3

Play only titles 3, 4, 5:

$ mplayer dvd://3-5

Play only chapters 2, 3, 4:

$ mplayer dvd://1 -chapter 2-4

Play only chapter 2:

$ mplayer dvd://1 -chapter 2-2

Play from chapter 4:

$ mplayer dvd://1 -chapter 4

Reference:

$ man mplayer

Using mencoder to save your webcam stream

Posted in Multimedia | No Comments »

this is to save your webcam stream:

$ mencoder tv:// -tv driver=v4l2:width=60:height=40:fps=60:device=/dev/video0 -nosound -ovc
lavc -lavcopts vcodec=mjpeg -o test.avi

You just need mplayer with v4l2 support compiled in.

Using mplayer to watch your webcam

Posted in Multimedia | No Comments »

This is to watch your webcam in the mplayer:

$ mplayer tv:// -tv driver=v4l2:width=60:height=40:fps=90:device=/dev/video0 -nosound

You just need mplayer with v4l2 support compiled in.

Converting Youtube Video to Creative Zen Vision:M

Posted in Multimedia | 1 Comment »

= Converting .flv to .avi using mencoder =

Hi all,
today I will teach you how to convert youtube’s videos
.flv format to Creative Zen Vision:M’s videos .avi format
using the mencoder Linux/Debian command.

# mencoder file1.flv -o test1.avi -vf scale=320:240 -oac mp3lame -ovc xvid -xvidencopts bitrate=800

If you get any error message from codec xvid, you need compile the MPlayer with xvid codec support.

Get the Mplayer source code and the “Binary Codec Packages”
from http://www.mplayerhq.hu/design7/dload.html

Extract the “Codecs” and put it in the directory /usr/lib/win32
Extract the MPlayer source code in some directory.

Install the libxvidcore-dev Package From
#mirros multimidia
deb http://debian-multimedia.org/ etch main
deb http://ftp.debian-unofficial.org/debian etch main contrib non-free

# apt-get update
# apt-get install libxvidcore-dev

Compile the Mplayer
Into the MPlayer source directory run:
../MPlayer-1.0rc1$ ./configure --prefix=/usr/local --enable-gui --enable-xvid --enable-largefiles --enable-menu --enable-gif --enable-png --enable-jpeg --with-win32libdir=/usr/lib/win32
../MPlayer-1.0rc1$ make

And as root run:
../MPlayer-1.0rc1# make install

Try again:

# mencoder file1.flv -o test1.avi -vf scale=320:240 -oac mp3lame -ovc xvid -xvidencopts bitrate=800

Thanks,
God bless you … :D

Creative Zen Vision:M 60G Linux Problem

Posted in Multimedia | No Comments »

Hi all,
I had a problem with the Creative Zen Vision:M 60G

usb 4-5: new high speed USB device using ehci_hcd and address 5
usb 4-5: configuration #1 chosen from 1 choice
usb 4-5: can’t set config #1, error -110

The firmware version 1.11.04 doesn’t response to set config command
and stay crazy …

It was working on Window$, I don’t know how! but the problem
is with the firmware 1.11.04, it has a bug.

Check your firmware in:
Sistem->Information->Version: 1.11.04

Update it to the more new version!!
I updated it to version 1.21.02 and it is working fine now!!!

Thanks for Creative for selling a messed up device .. :P !!!
Best regards to Linux guys!!

Converting youtube videos using ffmpeg

Posted in Multimedia | No Comments »

Hi all,

today I will teach you how to convert youtube’s video(.flv format) using ffmpeg.

/* ffmpeg supported formats */

$ ffmpeg -formats

/* Converting from flv to avi */

$ ffmpeg -i /tmp/foo_video.flv /tmp/foo_video.avi

/* Converting from flv to mpeg */

$ ffmpeg -i /tmp/foo_video.flv /tmp/foo_video.mpeg

Downloading youtube videos using firefox

Posted in Firefox, Multimedia | 2 Comments »

Hi all,

Today I will teach you how to download youtube videos using firefox.

When you are watching some video in the youtube using the firefox as browser, the firefox

do the download of the video to the /tmp directory:

$ ls -lrt /tmp/Flash*

-rw------- 1 ragner ragner 47567 2007-09-21 11:04 FlashKWfKkh
...
-rw------- 1 ragner ragner 44672 2007-09-21 11:04 FlashB4rS0

Note: The videos keeps in the /tmp while they are opened in the firefox.

So to get the videos from youtube you just need to wait the firefox load all the video and run:

$ ls -lrt /tmp/Flash*

-rw——- 1 ragner ragner 47567 2007-09-21 11:04 FlashKWfKkh

$ file /tmp/FlashKWfKkh /* To the the file format */

/tmp/FlashKWfKkh: Macromedia Flash Video

So save the file

$ cp /tmp/FlashKWfKkh /home/ragner/videos_youtube/foo_videos.flv

$ mplayer /home/ragner/videos_youtube/foo_videos.flv

Advantage: It is not necessary a new plugin for that. [:P]

God bless you … [:D]