SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Not sure whether should this thread in here, but since I'm using Slackware package to do all these stuff, I think may be it's good to ask it here as other distro might have different situation.
I tried using ffmpeg to convert my .rmvb file to avi, but it's all ending with a choppy video. Here are some of the command options I tried:
[NULL @ 0x806ede0] Unsupported video codec
[rm @ 0x80693a0] max_analyze_duration 5000000 reached at 5014000
The reason I'm converting it to msmpeg4 is because that's the format supported by my Pioneer DVD player. I did recompile the source again to make it output the video as libxvid codec but sadly the result is still choppy.
I could use menconder to produce the video without this choppy issue, but I'm wondering whether ffmpeg could achieve the same good result or not. The mencoder command I use is as followed:
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152
Rep:
Could you post a link to the sample file you are using ( if it's not TOO big ), have you tried a different video if you do and don't get the choppiness you may have a corrupt file
Could you post a link to the sample file you are using ( if it's not TOO big ), have you tried a different video if you do and don't get the choppiness you may have a corrupt file
hi keith,
Thanks for the reply
About whether the file is corrupted or not, no worries, this is the first thing all IT personnel should check before they debug further. I have tried with other rmvb files, they are returning the same choppiness. And as you can see, I have no problem converting that using menconder I'm in the office now, all my files are back home, so I will post up the sample rmvb tonight (I think it should be less than 2MB)
But have you able to successfully converted a rmvb file before to avi using ffmpeg ?
Is the avi container necessary for your device? An mp4 container might be worth a try....
hi andrew.46,
I would love to, but sadly my Pioneer DVD player is only able to take avi container. I know I could just buy a new media player available now in the market, but I would like to try from a linux engineer point in solving this
The unsupported codec message is most likely for a data stream.
Look at an *.rmvb file with ffprobe or MediaInfo.
For example, what is the frame rate of the input. What looks good for the output on your player.
Determine the options, such as frame rate, size, codec, bitrate that you prefer for your player, and then explicitly use them for the output parameters.
When you don't specify the bitrate in ffmpeg, directly or indirectly, the default will be too slow. Maybe you do want a low bitrate preview. For other options, such as screen size, aspect ratio and frame rate, the input values may be carried over to the output. These values may cause problems with your dvd player.
Last edited by jschiwal; 12-04-2011 at 10:01 PM.
Reason: typo
Appreciated a lot for the trying, this give more clue to the problem. I downloaded that video and gave it a try and still getting a choppy video. Here is what I got:
My output has been dropped 582 unit of frame, so apparently it will be choppy. Now the question is why does it dropping the frame ? There must be something lack in my system that causing ffmpeg not able to read the input stream correctly, especially when it complaint [NULL @ 0x80799a0] Unsupported video codec Do I need to install something to make ffmpeg recognize RMVB codec ?
Good idea. Let me try compile that during the weekend and see how it goes.
By the mean time, if anyone using alien bob's build could produce the AVI from the RMVB without the choppy problem, please share with us and we will see which part of my compiled binaries went wrong. Appreciated for the sharing.
sorry, have you tried if you got the problem also with alien bob's prebuilt static packages?
ponce,
I have tried. Alien bob's prebuilt package is not having libmp3lame included. So we definitely need to change the Slackbuild option and compile ourselves to have mp3 supported
The total frame should be 899 as what achieved by andrew.64, so yours is same with me, only got the end result with 317 frame and 582 is dropped, in which 65% of your original frame has been dropped. How can your result not choppy ? Have you tried the original RMVB and compare the difference ? Do you mind to try another more obvious sample: Sample.Made.of.honor.2008.Sub.R5.rmvb ? This one will have a obvious choppiness if it's having a lot less frame than the original.
Alien bob's prebuilt package is not having libmp3lame included. So we definitely need to change the Slackbuild option and compile ourselves to have mp3 supported
In his standard packages the mp3 format is not supported for encoding but they actually decode it.
BTW, I think you missed this folder, in which Eric puts packages without these restrictions
EDIT: I tried the sample above: it seems during conversion to mp4 the fps are set to 12 (the original got 23 fps) and that can be related to the dropping of frames.
You can try forcing the encoder an higher framerate with the '-r' option (I suggest 25 or 30) to see if it's related to the percieved choppiness.
Last edited by ponce; 12-07-2011 at 02:05 AM.
Reason: tried sample above
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.