<commit_before>--- 
layout: post
title: Play only audio of movies with mplayer
date: 2012-09-16 19:54:36
categories: [ linux ]
---

I had a piece of very good music in an MP4 video file, so good that I'd like to loop it for a whole afternoon.
With [mplayer][mplayer], I could single cycle this file with option `-loop 0`.
Moreover, I wanted to play only the audio but not the video, so I searched the 'man page' of mplayer and found this:

<!-- more -->

``` bash
mplayer -loop 0 -novideo filename.mp4
```

Bingo!

PS. I also found [this post][extract-audio] very useful if you want to extract the audio from an mp4 file to mp3 file.

[mplayer]:          http://www.mplayerhq.hu/
[extract-audio]:    http://blog.edwards-research.com/2010/12/linux-extract-audio-from-mp4-video-audio-to-mp3-audio/<commit_msg>minor update<commit_after>--- 
layout: post
title: Play only audio of movies with mplayer
date: 2012-09-16 19:54:36
categories: [ linux ]
---

I had a piece of very good music in an MP4 video file, so good that I'd like to loop it for a whole afternoon.
With [mplayer][mplayer], I could single cycle this file with option `-loop 0`.
Moreover, I wanted to play only the audio but not the video, so I searched the 'man page' of mplayer and found this:

<!-- more -->

``` bash
mplayer -loop 0 -novideo filename.mp4
```

And voilà!

PS. I also found [this post][extract-audio] very useful if you want to extract the audio from an mp4 file to mp3 file.

[mplayer]:          http://www.mplayerhq.hu/
[extract-audio]:    http://blog.edwards-research.com/2010/12/linux-extract-audio-from-mp4-video-audio-to-mp3-audio/
{'fraction_non_alphanumeric': 0.11379097093382808, 'fraction_numerical': 0.03463203463203463, 'mean_word_length': 3.4573002754820936, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2014595', 'n_tokens_mistral': 559, 'n_tokens_neox': 511, 'n_words': 221}