Posts Tagged ‘mplayer’

Create a wav file from an exotic audio format

Saturday, July 5th, 2008

When you need to retrieve a sound from a ugly format (like realaudio, windows media audio, and other proprietary things), mplayer is your best friend :

mplayer -ao pcm:file=output.wav your_file_or_url

It works fine with rtsp: and other bad protocols.

Playlist : Take care with .ram files and other playlist formats. In this case, the url content is only a text with the stream url. mplayer provides again a solution :

mplayer -ao pcm:file=output.wav -playlist file_or_url_playlist

Video : Add the option -vo null if the initial document contains video, the video part will be ignored.

Compress resulted file : The created wav file must be compressed cautiously. Most of the time, you’ve retrieved a sound already very compressed. If you create a ogg file with a low quality, you may experience problems. Use a lossless compression when possible, like flac.

RailsCasts on my Nokia 800

Wednesday, October 24th, 2007

I’ve just discovered RailsCasts. I have now more than 70 videos to watch … A good occasion to run the n800 mplayer :-)

A great software combinaison : DownloadHelper to download the movies in a directory, 770-encode.pl to re-encode them for the n800.

A small example with the last RailsCasts episode, here is a 30 second sample of RailsCasts - episode 76 - scope_out for Nokia 800.

I wrote a small wrapper maemo-video-encode-all to encode video files in batch.

A small scp to copy reencoded video files on your nokia SD and enjoy :-)

La télé sur votre Nokia 800

Tuesday, May 15th, 2007

Comme beaucoup d’utilisateurs de tablette internet Nokia l’expliquent (comme morpheuz), il est possible d’adapter une video pour qu’elle soit visible sur votre Nokia via un streaming http. Il suffit d’un ordinateur avec vlc et d’avoir mplayer sur votre Nokia 800. Votre vlc va recupérer la video, la recompresser (avec un codec mois lourd à décoder pour votre Nokia) et la mettre à disposition en http. Il reste à votre Nokia de venir chercher le flux video avec mplayer.

Pour les FreeBoxiens, il est tout à fait possible de récupérer un flux de FreeBox TV.

Ca donne ca sur votre ordinateur :
vlc "rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=235" --sout '#transcode{vcodec=mp1v,vb=384,fps=25.0,scale=0.5,acodec=mpga, ab=64,channels=1}:duplicate{dst=std{access=http,mux=mpeg1, dst=:8080}}'

Sur votre Nokia, lancez mplayer http://<ip de l'ordi>:8080 et bonne soirée sur Arte ;o)

Ca fonctionne très bien avec un dvd. On peut aussi exploiter l’interface http de vlc pour contrôler vlc à distance.