Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
107 user(s) are online (89 user(s) are browsing Forums)

Members: 1
Guests: 106

Mr_byte, more...

Support us!

Headlines

 
  Register To Post  

(1) 2 »
DVDs, AVIs, and video work on the A1
Not too shy to talk
Not too shy to talk


See User information
Hi,

I've been playing around with DVDs on my A1. There doesn't seem to be much talk about what I was trying to do, so I thought I might say a few words about my progress and perhaps anyone else can comment.

What I'm idealling trying to do it convert DVDs to AVIs, or "rip". However, my interest is backing up my own DVDs rather than copying commercial titles.

That being said, the only success I've had so far has been with a VOB from a commercial disc!

I started out with FFMpeg and FFMpeg GUI. I don't seem to be able to extract audio from VOBs; only by disabling audio can I extract a video stream.

I have been unable to extract video streams from DVDs recorded with my Panasonic DMR-ES35V recorder. Although DVPlayer can play them fine, FFMpeg reports them as being only a fraction of their true size (176x144 intead of 720x576) and cannot extract a video stream, it reports "no key frame" and "illegal MBA").

Using PeVOBill I was able to copy a VOB from a commercial disc to my HD, and then, with FFMpeg I was able to extract 19 minutes with no audio.

I then started playing around with mencoder. I now had the reverse problem, with Mencoder I can only extract audio. Any attempt to extract video results in a crash. I also cannot seem to extract audio as MP3 either, only AC3.

Anyway, I went back to the VOB ex-PeVOBill and was able to extract the AC3 audio, and then finally mux it together with the video extracted by FFMpeg. Finally, some success, I was able to copy 19 minutes of video and audio (albeit not exactly the material I wanted in the first place!). However, the resulting file is 660 MB, compared to the 1GB of the original VOB. After doing some reading on the handy links specified in the FFMpeg guide, I learned that I could crop the video to remove the overscan and reduce the filesize. This worked, but not by much- I now have a 550MB file. I could maybe also scale it, but so far I haven't tried that.

MP3 audio would also reduce filesize, but I can't seem to extract MP3 audio. Am I missing a library? I have the OS4 version of mpega.library in libs. Or are the versions of FFMpeg/Mencoder not compiled to use MP3?

I tried to replicate this on another disc, this time one of my own that FFMpeg is able to correctly identify the size of. However, when I try to extract a video stream, FFMpeg crashes.

That's where I'm up to so far. I guess I don't know too much about what I'm doing. There are some pages on the Net that are informative, but they're written for Linux users. For example,

mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o /dev/null
mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vpass=2 \
-oac copy -o output.avi

dvd://2 seems to be the Linux DVD device. I substituted the path to the VOB and used NIL: for /dev/null, but the result was a crash.

It would be nice to hear from anyone else who has tried doing this sort of thing.

Go to top
Re: DVDs, AVIs, and video work on the A1
Quite a regular
Quite a regular


See User information
@daveyw

Quote:

daveyw wrote:
my interest is backing up my own DVDs rather than copying commercial titles..


greetings there

I dabbled quite alot in this area too, trouble is AmigaOSx.x is quite void of any specialised software in this area. Tried to get some coders interested in some of the opensource solutions etc, even tried to compile a few myself (something I will look at in the next year perhaps when I start seriously learning to code)

I quite often back up dvds but by a different technique, I have a DVD Recorder. I plug certain brand of DVD player into the back (one that doesn't support copy protection) and record it on the DVD Recorder, it records it in mpeg and mp3 audio. You then burn this to a DVDR or DVDRW.

I often considered then transferring this to my Amiga and then converting that but never really got around to doing that... I know that would work fine and we don't have to worry about ripping any commerical disks...

good luck, be watching this thread with interest

~Yes I am a Kiwi, No, I did not appear as an extra in 'Lord of the Rings'~
1x AmigaOne X5000 2.0GHz 2gM RadeonR9280X AOS4.x
3x AmigaOne X1000 1.8GHz 2gM RadeonHD7970 AOS4.x
Go to top
Re: DVDs, AVIs, and video work on the A1
Not too shy to talk
Not too shy to talk


See User information
@daveyw
Quote:

Am I missing a library? I have the OS4 version of mpega.library in libs.

mpega.library is only a mp3 decoder library, it is not used by FFmpeg/Memcoder.

Go to top
Re: DVDs, AVIs, and video work on the A1
Home away from home
Home away from home


See User information
@daveyw
Unless you use a *modern* codec like XviD or DivX (or MPEG4), I don't think you should expect much of a file reduction, since DVD videos are already MPEG compressed (albeit not fantastically).

Author of the PortablE programming language.
Go to top
Re: DVDs, AVIs, and video work on the A1
Just popping in
Just popping in


See User information
@daveyw

To get audio with your video stream using ffmpeg try setting the audio codec to copy. At least it works here - sort of - Mplayer plays the clip with sound but the JC Matthews digital photo frame only plays the video although it should handle sound as well

Rex

Go to top
Re: DVDs, AVIs, and video work on the A1
Just popping in
Just popping in


See User information
@daveyw

Quote:

daveyw wrote:
I then started playing around with mencoder. I now had the reverse problem, with Mencoder I can only extract audio. Any attempt to extract video results in a crash. I also cannot seem to extract audio as MP3 either, only AC3.

I'm currently working on a new release of mencoder. The version I uploaded on os4depot seem to crash with some parameters. Regarding the crash, have you ran mencoder with a high enough stack? "Stack 10000000" should be enough. If it still crashes, could you please post the command line which makes it crash, so that I can reproduce the bug?

Thanks
Varthall

Go to top
Re: DVDs, AVIs, and video work on the A1
Quite a regular
Quite a regular


See User information
Quote:

daveyw wrote:


I started out with FFMpeg and FFMpeg GUI. I don't seem to be able to extract audio from VOBs; only by disabling audio can I extract a video stream.


As already mentioned if your using ffmpegGUI then you need to set the audio codec to "Copy". Our version of ffmpeg doesn't seem to be able to read the DVD's audio files.

To reduce the file size significantly you can try the following using the following setting in ffmpegGUI.

Load the DVD(pal) or DVD(ntsc) settings from the Quick Setup menu.

Set the video bitrate to "2040k". (SVCD quality)
Set the audio codec to "Copy".
Set the "Duration" to 20 sec. (for testing)
Set the input and output filenames.
Click "Start"

If you like the results set the "Duration" back to zero and encode away!

This will reduce the video quality from DVD to SVCD quality but it reduced my 20 second clip from 15.2Megs to 5.7Megs.
It plays fine in DvPlayer and MPlayer.

If you don't like the resulting video quality try a higher video bitrate but of course the file size will be bigger.
DVD's are typically done with a bitrate of about 6000k to 8000k.

Hope this helps.

Go to top
Re: DVDs, AVIs, and video work on the A1
Quite a regular
Quite a regular


See User information
Quote:

Varthall wrote:

I'm currently working on a new release of mencoder. The version I uploaded on os4depot seem to crash with some parameters. Regarding the crash, have you ran mencoder with a high enough stack? "Stack 10000000" should be enough. If it still crashes, could you please post the command line which makes it crash, so that I can reproduce the bug?

Hmmmm....if you get a recent version of mencoder working on OS4 I just might be tempted to convert ffmpegGUI to mencoderGUI someday.

Go to top
Re: DVDs, AVIs, and video work on the A1
Just popping in
Just popping in


See User information
@ktadd

I have already released a couple of months ago a first port of the recent 1.0rc2 version of mencoder (though it is now classified as "obsolete", so I should try porting a SVN version as well): http://os4depot.net/index.php?functio ... e=video/edit/mencoder.lha

I'm trying to fix any left bug/crash as well and to release a new version.

Varthall

Go to top
Re: DVDs, AVIs, and video work on the A1
Not too shy to talk
Not too shy to talk


See User information
@Varthall

Quote:

Varthall wrote:
I'm currently working on a new release of mencoder. The version I uploaded on os4depot seem to crash with some parameters. Regarding the crash, have you ran mencoder with a high enough stack? "Stack 10000000" should be enough. If it still crashes, could you please post the command line which makes it crash, so that I can reproduce the bug?

Thanks
Varthall


Thanks, setting the stack worked! The line
mencoder Misc:Raw/VIDEO_TS/VTS_01_1.VOB -o misc:raw/Disc.avi -ovc lavc -lavcopts vcodec=mpeg4 -oac copy
now works!

I think there could be a lip-sync problem, though. I'll investigate.

Unfortunately, Mencoder can't seem to handle DVD that were created by my Panasonic DVD recorder.

Go to top
Re: DVDs, AVIs, and video work on the A1
Not too shy to talk
Not too shy to talk


See User information
@ktadd

Quote:

As already mentioned if your using ffmpegGUI then you need to set the audio codec to "Copy". Our version of ffmpeg doesn't seem to be able to read the DVD's audio files.

To reduce the file size significantly you can try the following using the following setting in ffmpegGUI.

Load the DVD(pal) or DVD(ntsc) settings from the Quick Setup menu.

Set the video bitrate to "2040k". (SVCD quality)
Set the audio codec to "Copy".
Set the "Duration" to 20 sec. (for testing)
Set the input and output filenames.
Click "Start"

If you like the results set the "Duration" back to zero and encode away!

This will reduce the video quality from DVD to SVCD quality but it reduced my 20 second clip from 15.2Megs to 5.7Megs.
It plays fine in DvPlayer and MPlayer.

If you don't like the resulting video quality try a higher video bitrate but of course the file size will be bigger.
DVD's are typically done with a bitrate of about 6000k to 8000k.

Hope this helps.


Thanks, and thanks for the new version of FFMpegGui! I'm having a little success now!

However, it seems that if I set the start off-set to anything other than 10, nothing gets encoded.

Still, my main goal is to encode my own DVDs. If I've created a DVD by just pressing record, it seems these DVDs can't be read by FFMpeg/Mencoder. However, if I've made a DVD by the recorder's direct dubbing feature (copying VHS->DVD), then it works (this is the actually a disc I've just tested now with FFMpeg and Mencoder).

BTW, your documentation refers to a couple of Quick Set-ups that don't seem to be included, such as Video Frames -> Jpegs.

Go to top
Re: DVDs, AVIs, and video work on the A1
Quite a regular
Quite a regular


See User information
@daveyw

Quote:

daveyw wrote:
Still, my main goal is to encode my own DVDs. If I've created a DVD by just pressing record, it seems these DVDs can't be read by FFMpeg/Mencoder. However, if I've made a DVD by the recorder's direct dubbing feature (copying VHS->DVD), then it works (this is the actually a disc I've just tested now with FFMpeg and Mencoder).


I'm a little confused, are you taking about the physical DVD? Or are you taking about the file format? If you are taking about the physical DVD then copy across the files first or try a different DVD medium. If you are taking about the file format then check to see if you can't change how your DVD recorder records its recording. eg My DVD recorder can record audio in PCM (default) or Mp3 (needs to be selected) The video is always MPeg.

Or maybe I am way off the track and therefore, do not worry

~Yes I am a Kiwi, No, I did not appear as an extra in 'Lord of the Rings'~
1x AmigaOne X5000 2.0GHz 2gM RadeonR9280X AOS4.x
3x AmigaOne X1000 1.8GHz 2gM RadeonHD7970 AOS4.x
Go to top
Re: DVDs, AVIs, and video work on the A1
Quite a regular
Quite a regular


See User information
@daveyw

Quote:

Thanks, and thanks for the new version of FFMpegGui! I'm having a little success now!

If you like that just wait a bit. Andrea compiled a new verson of ffmpeg which has support for several new formats included the much asked for AAC audio among others. I've modified ffmpeg to support some some of the differences from the old version of ffmpeg and added support for new formats and codecs as well. It's in beta testing right now but things look good so far.
Quote:

However, it seems that if I set the start off-set to anything other than 10, nothing gets encoded.

I've seen some strange things happen with the start offset, especially with mpeg4 formats. Not sure it there is anyting I can do about it but I'm investigating.
Quote:

Still, my main goal is to encode my own DVDs. If I've created a DVD by just pressing record, it seems these DVDs can't be read by FFMpeg/Mencoder. However, if I've made a DVD by the recorder's direct dubbing feature (copying VHS->DVD), then it works (this is the actually a disc I've just tested now with FFMpeg and Mencoder).

Not sure what is going on there. Can you send me a 1 minute clip or so that I could take a look at. PM me if you want me to take a look.
Quote:

BTW, your documentation refers to a couple of Quick Set-ups that don't seem to be included, such as Video Frames -> Jpegs.

Hmmm....I guess my documentation isn't clear. Under 'Select Setup' choose the load option. If you look in the 'Predefined Setups' drawer you'll find the video to jpg settings. Just load it and go. By default it will grab frames from 1 second of the video. The nuber of pictures you get in 1 second is equal to the framerate. If you want to get 1 frame per framerate just leave the framerate set to the default 25 then type -r 1 in the add options area. This should give you 1 frame per second of video. You can use the start offset and duration to pick out any frames you want to capture.

Enjoy!

Edit: Needs to be a space between the -r and 1. :|


Edited by ktadd on 2009/1/26 22:43:32
Go to top
Re: DVDs, AVIs, and video work on the A1
Just popping in
Just popping in


See User information
@ktadd

Just a question about mpeg4.

On my dvplayer, I can read avi (mpeg4) but if I make a movie in mpeg4 format, the movie can't be seen (except on my A1).

I must use msmpegv1 to encode.

So, there are some differences with os4 mpeg4 and other oses mpeg4. May be bytes order, litle endian ?

What do you think of that ?

Go to top
Re: DVDs, AVIs, and video work on the A1
Quite a regular
Quite a regular


See User information
Quote:

yescop wrote:

Just a question about mpeg4.

On my dvplayer, I can read avi (mpeg4) but if I make a movie in mpeg4 format, the movie can't be seen (except on my A1).


By default ffmpeg, I'm assume that is what you are using, codes mpeg4 with a fourcc code of FMP4. Try changing it to DIVX using the option -vtag DIVX or
-vtag XVID. If your using ffmpegGUI you can place this is the additional options field. Make sure to hit return.

The fourcc is a 4 byte tag that tells the player how the video is coded and therefore what routine to use for playback. Not knowing your DVD player I don't know if this will work for sure but you can try it.


Quote:
I must use msmpegv1 to encode.

If I remember correctly this is an old Microsoft varient of the mpeg4 video codec.

If all esle fails using the DVD choices from ffmpegGUI's quick setup menu should work but it uses the mpeg2 video codec. Not quite as efficient as mpeg4.

Hope this helps.

edit: corrected XDIV typo.


Edited by ktadd on 2009/2/4 20:53:00
Go to top
Re: DVDs, AVIs, and video work on the A1
Just popping in
Just popping in


See User information
@ktadd

I tested your idea and it is fantastic.
That works.

Here are my results.

I tested 4 files created with ffmpeggui.
I used a mpeg4 "foreign" encoded file.

I encoded 4 files of 20 s.

1 - mpeg4 file without changing the original fourcc
2 - same file with vtag = DIVX
3 --------------------- = XDIV
4 --------------------- = XVID

All but xdiv are played with mplayer.
With wdiv only audio is played.

On my DV player, only DIVX and XVID are played.

Now I could encode with mpeg4 which is better than msmpegv1.

Another question, do you have news about a new version of ffmepg with aac decoder ?

Thanks again.

Go to top
Re: DVDs, AVIs, and video work on the A1
Quite a regular
Quite a regular


See User information
Quote:

yescop wrote:
@ktadd

I tested your idea and it is fantastic.
That works.

On my DV player, only DIVX and XVID are played.


Yep, sorry the XDIV was a typo. Glad it worked for you.

Quote:
Another question, do you have news about a new version of ffmepg with aac decoder ?

Soon......
It will include an aac encoder in addition to an aac decoder so you can read and write files with that audio codec. The new version will also properly read ac3 audio from DVD's as well so it can now be converted to other formats. Hmm.....let's see....ogg (vorbis), flac audio and additional graphic formats jpg, bmp, tiff as well.

Go to top
Re: DVDs, AVIs, and video work on the A1
Just popping in
Just popping in


See User information
@ktadd

Thanks for your answer.

I didn't use to ask this question because I know it is useless but I NEED to ask.

Soon ?
Is it more when it is done or 3 weeks or something like this ? :)

I prefer asking you because I no we know that a lot of users want to know and shout "We Want A new FFmpeg !!!"

May be a new slogan ?

Let's see.

Bye,
Jesus

Go to top
Re: DVDs, AVIs, and video work on the A1
Quite a regular
Quite a regular


See User information
Quote:

yescop wrote:
@ktadd
Soon ?
Is it more when it is done or 3 weeks or something like this ? :)

Being in Software/Firmware Quality Assurance for many years, and seeing what happens to people when they give dates and miss them, I won't give a date but I will say that I received a release candidate version of ffmpeg from Andrea today and I'll be updating ffmpegGUI with the final touches tonight but you never know what might be found during testing, so let me just stick with....Soon! Andrea and I will be doing a cordinated release of ffmpeg and ffmpgeGUI. Soon.

Go to top
Re: DVDs, AVIs, and video work on the A1
Quite a regular
Quite a regular


See User information
@ktadd

This is AweSome news and I never use such colourful adjectives!

VERY good work! I do get inspired when I see commitment and team work and also end product...

I'm going to get there one day too

~Yes I am a Kiwi, No, I did not appear as an extra in 'Lord of the Rings'~
1x AmigaOne X5000 2.0GHz 2gM RadeonR9280X AOS4.x
3x AmigaOne X1000 1.8GHz 2gM RadeonHD7970 AOS4.x
Go to top

  Register To Post
(1) 2 »

 




Currently Active Users Viewing This Thread: 3 ( 0 members and 3 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project