Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Slackware Linux Help > Convert video?

Forgot Password?
 Slackware Linux Help   For help and Discussion about Slackware linux

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-11-2009   #1 (permalink)
Just Joined!
 
Join Date: Jul 2007
Posts: 62
Convert video?

After a lot of trouble trying to convert one video format to another, I finally resort to asking on a forum.

I'm trying to convert: "Microsoft ASF"

into: "ISO Media, MPEG v4 system, version 2"

How can I do this? I've tried various commands with mencoder and ffmpeg, to no avail.

I've managed to convert ASF into: "RIFF (little-endian) data, AVI, 480 x 498, 23.98 fps, video: FFMpeg MPEG-4, audio: DivX (mono, 44100 Hz)"

But my embedded device will not play this format (Nokia N82), however, it will play files that are "ISO Media, MPEG v4 system, version 2" -- which is my reason for wanting to convert into this format.
corge is offline  


Reply With Quote
Old 07-12-2009   #2 (permalink)
Linux Engineer
 
b2bwild's Avatar
 
Join Date: Jul 2008
Location: Behind You!
Posts: 1,064
Send a message via MSN to b2bwild Send a message via Skype™ to b2bwild
Try these commands.
Quote:
ffmpeg -i "/path/to/input/video.asf" -f mpeg -vcodec mpeg2video -ar 44100 "/path/to/output/video.mp4"
or

Quote:
mencoder "/path/to/input/video.asf" -of mpeg -mpegopts format=mpeg2 -ovc lavc -oac lavc -lavcopts vcodec=mpeg4:autoaspect -srate 44100 -o "/path/to/output/video.mp4"
You will have to install required libraries like libavcodedc
__________________
Microsoft isn't bad its just stupid.

Read my Blog at --> Penguin Inside Subscribe Feed
b2bwild is offline   Reply With Quote
Old 07-12-2009   #3 (permalink)
Just Joined!
 
Join Date: Jul 2007
Posts: 62
Quote:
Originally Posted by b2bwild View Post
Try these commands.


or



You will have to install required libraries like libavcodedc
Hi, thanks for those one-liners, excellent -- but I seem unable to install the required codecs; on the ffmpeg website it is stated the libavcodec is included in the release, which I downloaded, compiled and installed, but still I get the following error:

Code:
Error while opening codec for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
corge is offline   Reply With Quote
Old 07-12-2009   #4 (permalink)
Linux User
 
Join Date: Jun 2008
Location: Acadiana
Posts: 334
0. It always helps if you know what you are doing. Great info about containers, video and audio can be found here:
Common myths - Avidemux2
1. I'm a die-hard CLI user myself. Working with video is something where GUI comes handy. Because you really need to see what you do. Thus, my favorite is Avidemux:
Main Page - Avidemux2
Segfault is offline   Reply With Quote
Old 07-12-2009   #5 (permalink)
Just Joined!
 
Join Date: Jul 2007
Posts: 62
Quote:
Originally Posted by Segfault View Post
0. It always helps if you know what you are doing. Great info about containers, video and audio can be found here:
Common myths - Avidemux2
1. I'm a die-hard CLI user myself. Working with video is something where GUI comes handy. Because you really need to see what you do. Thus, my favorite is Avidemux:
Main Page - Avidemux2
That was actually a very interesting read, thanks.

I'm trying to compile Avidemux now.
corge is offline   Reply With Quote
Old 07-12-2009   #6 (permalink)
Just Joined!
 
Join Date: Jul 2007
Posts: 62
Unfortunately it doesn't work, after some fiddling it did compile, but it segfaults when I try to do any operations on the ASF video, it dumps core with a long memory range and backtrace.

I used Avidemux 2.5.0 and followed the "Compile instructions" at the website.
corge is offline   Reply With Quote
Old 07-12-2009   #7 (permalink)
Linux User
 
Join Date: Jun 2008
Location: Acadiana
Posts: 334
Try stable 2.4.x. What exactly is this ASF? My Avidemux can open WMV. Is it the same thing?
Segfault is offline   Reply With Quote
Old 07-12-2009   #8 (permalink)
Just Joined!
 
Join Date: Jul 2007
Posts: 62
Quote:
Originally Posted by Segfault View Post
Try stable 2.4.x. What exactly is this ASF? My Avidemux can open WMV. Is it the same thing?
I'll try that, and yes, it is WMV, the "file" util tells me that in turn is "Microsoft ASF".
corge is offline   Reply With Quote
Old 08-01-2009   #9 (permalink)
Just Joined!
 
Join Date: Jul 2007
Posts: 62
As I'm still unable to get this working, I was just curious if there isn't simply some simple one-liner I can type that will do it; how hard can this be?
corge is offline   Reply With Quote
Old 08-01-2009   #10 (permalink)
Linux User
 
Join Date: Jun 2008
Location: Acadiana
Posts: 334
What it is your embedded device wants? This 'ISO Media, MPEG v4 system, version 2' is kind of vague. There are three things, container, video and audio. My guess is these should be:

MPEG-4 Part 14 container
H.264/MPEG-4 AVC Video
AAC audio

... but this is just a guess.
You are right, it's easy ... if you know what you need. Take a file that works, open it in Avidemux and look at properties.

I just converted a file using Avidemux-2.5, does it play in your device?
3.3 MB test file
Segfault is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 11:54 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2