LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-20-2011, 02:36 PM   #1
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
How to convert stereo flv video to mono?


So I've got an flv video with horrible stereo sound (sound is good, but the stereo is very bad), which I listen to with my headphones. I need to make it mono in GNU/Linux since I have no Windows. Or with any Web-service, I don't know... Please suggest any tool to do so.
 
Old 03-20-2011, 03:41 PM   #2
DJ Shaji
Member
 
Registered: Dec 2004
Location: Yo Momma's house
Distribution: Fedora Rawhide, ArchLinux
Posts: 518
Blog Entries: 15

Rep: Reputation: 106Reputation: 106
Use ffmpeg:
Quote:
ffmpeg -i input.flv -vcodec copy -acodec aac -ab 64k -ac 1 output.avi
Or, you can just use MPlayer

Quote:
mplayer -af pan=1:0.7:0.7 input.flv
 
1 members found this post helpful.
Old 03-21-2011, 04:21 AM   #3
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
Thanks. And how do I do it with MP4 video file using ffmpeg?
Tried your command, the error is:
Code:
Seems stream 1 codec frame rate differs from container frame rate: 59.83 (29917/500) -> 29.92 (29917/1000)
 
Old 03-21-2011, 06:33 AM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Can you run 'ffmpeg -i' on the video and post the output.
 
Old 03-21-2011, 10:47 AM   #5
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
Code:
FFmpeg version git-2611e52, Copyright (c) 2000-2011 the FFmpeg developers
  built on Feb  6 2011 10:00:04 with gcc 4.5.2 20110127 (prerelease)
  configuration: --prefix=/usr --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-libfaac --enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora --enable-postproc --enable-shared --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libschroedinger --enable-libopenjpeg --enable-version3 --enable-nonfree --enable-runtime-cpudetect --disable-debug
  libavutil    50. 36. 0 / 50. 36. 0
  libavcore     0. 16. 1 /  0. 16. 1
  libavcodec   52.108. 0 / 52.108. 0
  libavformat  52. 94. 0 / 52. 94. 0
  libavdevice  52.  2. 3 / 52.  2. 3
  libavfilter   1. 74. 0 /  1. 74. 0
  libswscale    0. 12. 0 /  0. 12. 0
  libpostproc  51.  2. 0 / 51.  2. 0

Seems stream 1 codec frame rate differs from container frame rate: 59.83 (29917/500) -> 29.92 (29917/1000)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'I-changed-the-filename.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isomavc1mp42
    creation_time   : 2010-06-24 17:27:32
  Duration: 00:08:04.23, start: 0.000000, bitrate: 522 kb/s
    Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16, 122 kb/s
    Metadata:
      creation_time   : 2010-06-24 17:27:32
    Stream #0.1(und): Video: h264, yuv420p, 480x360 [PAR 1:1 DAR 4:3], 397 kb/s, 29.92 fps, 29.92 tbr, 29917 tbn, 59.83 tbc
    Metadata:
      creation_time   : 2010-06-24 17:27:32
At least one output file must be specified
 
Old 03-21-2011, 11:51 AM   #6
DJ Shaji
Member
 
Registered: Dec 2004
Location: Yo Momma's house
Distribution: Fedora Rawhide, ArchLinux
Posts: 518
Blog Entries: 15

Rep: Reputation: 106Reputation: 106
What happens when you try to encode this file? The error message you gave shouldn't be fatal ...
 
Old 03-21-2011, 01:17 PM   #7
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Yeah something like:

Code:
ffmpeg -i input.mp4 -vcodec copy -acodec aac -ab 122k -ac 1 output.mp4
 
Old 03-21-2011, 02:02 PM   #8
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
Code:
$ ffmpeg -i 1.mp4 -vcodec copy -acodec aac -ab 122k -ac 1 output.mp4
FFmpeg version git-2611e52, Copyright (c) 2000-2011 the FFmpeg developers
  built on Feb  6 2011 10:00:04 with gcc 4.5.2 20110127 (prerelease)
  configuration: --prefix=/usr --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-libfaac --enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora --enable-postproc --enable-shared --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libschroedinger --enable-libopenjpeg --enable-version3 --enable-nonfree --enable-runtime-cpudetect --disable-debug
  libavutil    50. 36. 0 / 50. 36. 0
  libavcore     0. 16. 1 /  0. 16. 1
  libavcodec   52.108. 0 / 52.108. 0
  libavformat  52. 94. 0 / 52. 94. 0
  libavdevice  52.  2. 3 / 52.  2. 3
  libavfilter   1. 74. 0 /  1. 74. 0
  libswscale    0. 12. 0 /  0. 12. 0
  libpostproc  51.  2. 0 / 51.  2. 0

Seems stream 1 codec frame rate differs from container frame rate: 59.83 (29917/500) -> 29.92 (29917/1000)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isomavc1mp42
    creation_time   : 2010-06-24 17:27:32
  Duration: 00:08:04.23, start: 0.000000, bitrate: 522 kb/s
    Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16, 122 kb/s
    Metadata:
      creation_time   : 2010-06-24 17:27:32
    Stream #0.1(und): Video: h264, yuv420p, 480x360 [PAR 1:1 DAR 4:3], 397 kb/s, 29.92 fps, 29.92 tbr, 29917 tbn, 59.83 tbc
    Metadata:
      creation_time   : 2010-06-24 17:27:32
encoder 'aac' is experimental and might produce bad results.
Add '-strict experimental' if you want to use it.
Or use the non experimental encoder 'libfaac'.
That's all I got with my MP4 file... Nothing happens, no encoding.
 
  


Reply



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
[SOLVED] What program can I use to convert stereo MP3 to mono? Mr. Alex Linux - Software 1 06-01-2010 04:48 AM
configuring ALSA for stereo to mono ubercow Linux - Software 0 05-13-2008 07:05 AM
how to convert stereo mp3 to mono wav? Beck24 Linux - Software 2 07-11-2006 08:04 PM
Alsa stereo to mono mix kdogksu Linux - Software 1 11-30-2005 11:37 PM

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

All times are GMT -5. The time now is 05:03 PM.

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