Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
59 user(s) are online (55 user(s) are browsing Forums)

Members: 0
Guests: 59

more...

Support us!

Headlines

 
  Register To Post  

FFMPeg Revision
Quite a regular
Quite a regular


See User information
Just curious to when we can convert our nice vob files that we now can host under SFS2 partitions... wanting to convert my 6.7Gig Princess Bride into an avi I can then store on my Modded Xbox... to my horror some audio codecs is missing...

help ;)

ffmpeg -i PB.vob -f avi -vcodec mpeg4 -b 800k -g 250 -bf 2 -acodec mp3 -ab 128k PB.avi
FFmpeg version SVN-r5969, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --cc=ppc-amigaos-gcc --enable-pthreads --disable-shared --extra-libs=-lpthread -lm --cross-compile --enable-amr_nb --enable-faad --enable-mp3lame --enable-gpl --extra-cflags=-/usr/local/include
libavutil version: 49.0.0
libavcodec version: 51.11.0
libavformat version: 50.5.0
built on Aug 12 2006 21:30:31, gcc: 4.0.3 (AmigaOS build 20060509)
Input #0, mpeg, from 'PB.vob':
Duration: N/A, bitrate: 9032 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576, 8360 kb/s, 25.00 fps(r)
Stream #0.1[0x81]: Audio: 0x0000, 48000 Hz, stereo, 224 kb/s
Stream #0.2[0x8a]: Audio: 0x0000
Stream #0.3[0x80]: Audio: 0x0000, 48000 Hz, 5:1, 448 kb/s
Output #0, avi, to 'PB.avi':
Stream #0.0: Video: mpeg4, yuv420p, 720x576, q=2-31, 800 kb/s, 25.00 fps(c)
Stream #0.1: Audio: mp3, 48000 Hz, stereo, 128 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
[mpeg4 @ 0x6961b148]removing common factors from framerate
Unsupported codec (id=86020) for input stream #0.1

I reluctantly tried mencoder and was kindly informed that it didn't support mp3...

I know it seems to be a problem... but any update in this area?

thanks!

another ffmpeg thread exists but that looked like it dealt more with the gui... I like the shell also :D

~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: FFMPeg Revision
Quite a regular
Quite a regular


See User information
@Slayer

At the moment ffmpeg lacks faac audio support, as faac and libfaac have only just been ported to OS4.
Kevin (KTadd) stated that ffmpeg needed to be re-compiled to include support for them, before they could be used.

This means that converting files to mp4v (ipod) format can only be done without audio. Are you using aac audio format?

Looking at this page,
DVD is mpeg2 compression for both video and audio, and DivX is mpeg4 for video, and mp3 for audio. Which should give you your .avi file.

Your input file shows three audio streams?
Do you know what they are?
Maybe it is one of them that is not supported?

Also what is your shell input line, can you force mp3, or another audio format to work?

Sorry if the above is more questions than answers, but I am only learning about this stuff myself.

Peter Swallow

Eyetech A1XE-G3 800Mhz OS4.1
Towered A1200 OS3.9
Go to top
Re: FFMPeg Revision
Quite a regular
Quite a regular


See User information
@Swoop

I do appreciate the interest and yes I did try the map feature to select the different audios...

-map 0:0 0:2 for instance

I think maybe I need to do some serious reading... I don't mind manuals etc, it's just finding the right information first that is quite the problem :D

the complete input line is clearly in my initial post... I don't think one can force anything if the program can't identify what it is it is supposed to read and understand first let alone go on to convert it :D

~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: FFMPeg Revision
Quite a regular
Quite a regular


See User information
@Slayer

Quote:
ffmpeg -i PB.vob -f avi -vcodec mpeg4 -b 800k -g 250 -bf 2 -acodec mp3 -ab 128k PB.avi
Sorry, I didn't see that.

As far as documentation Here is the ffmpeg doc page.
I am not sure what is/is not implemented in the Amiga version compared to the original.

Here is a list of functions from the Os4 version:-
Quote:
usage: ffmpeg [[infile options] -i infile]... {[outfile options] outfile}...
Hyper fast Audio and Video encoder

Main options:
-L show license
-h show help
-version show version
-formats show available formats, codecs, protocols, ...
-f fmt force format
-img img_fmt force image format
-i filename input file name
-y overwrite output files
-t duration set the recording time
-fs limit_size set the limit file size
-ss time_off set the start time offset
-itsoffset time_off set the input ts offset
-title string set the title
-timestamp time set the timestamp
-author string set the author
-copyright string set the copyright
-comment string set the comment
-v verbose control amount of logging
-target type specify target file type ("vcd", "svcd", "dvd", "dv", "dv50", "pal-vcd", "ntsc-svcd", ...)
-dframes number set the number of data frames to record
-scodec codec force subtitle codec ('copy' to copy stream)
-newsubtitle add a new subtitle stream to the current output stream
-slang code set the ISO 639 language code (3 letters) of the current subtitle stream

Video options:
-b bitrate set video bitrate (in kbit/s)
-vframes number set the number of video frames to record
-r rate set frame rate (Hz value, fraction or abbreviation)
-s size set frame size (WxH or abbreviation)
-aspect aspect set aspect ratio (4:3, 16:9 or 1.3333, 1.7777)
-croptop size set top crop band size (in pixels)
-cropbottom size set bottom crop band size (in pixels)
-cropleft size set left crop band size (in pixels)
-cropright size set right crop band size (in pixels)
-padtop size set top pad band size (in pixels)
-padbottom size set bottom pad band size (in pixels)
-padleft size set left pad band size (in pixels)
-padright size set right pad band size (in pixels)
-padcolor color set color of pad bands (Hex 000000 thru FFFFFF)
-vn disable video
-bt tolerance set video bitrate tolerance (in kbit/s)
-maxrate bitrate set max video bitrate tolerance (in kbit/s)
-minrate bitrate set min video bitrate tolerance (in kbit/s)
-bufsize size set ratecontrol buffer size (in kByte)
-vcodec codec force video codec ('copy' to copy stream)
-sameq use same video quality as source (implies VBR)
-pass n select the pass number (1 or 2)
-passlogfile file select two pass log file name
-newvideo add a new video stream to the current output stream

Advanced Video options:
-pix_fmt format set pixel format
-g gop_size set the group of picture size
-intra use only intra frames
-vdt n discard threshold
-qscale q use fixed video quantiser scale (VBR)
-qmin q min video quantiser scale (VBR)
-qmax q max video quantiser scale (VBR)
-lmin lambda min video lagrange factor (VBR)
-lmax lambda max video lagrange factor (VBR)
-mblmin q min macroblock quantiser scale (VBR)
-mblmax q max macroblock quantiser scale (VBR)
-qdiff q max difference between the quantiser scale (VBR)
-qblur blur video quantiser scale blur (VBR)
-qsquish squish how to keep quantiser between qmin and qmax (0 = clip, 1 = use differentiable function)
-qcomp compression video quantiser scale compression (VBR)
-rc_init_cplx complexity initial complexity for 1-pass encoding
-b_qfactor factor qp factor between p and b frames
-i_qfactor factor qp factor between p and i frames
-b_qoffset offset qp offset between p and b frames
-i_qoffset offset qp offset between p and i frames
-ibias bias intra quant bias
-pbias bias inter quant bias
-rc_eq equation set rate control equation
-rc_override override rate control override for specific intervals
-me method set motion estimation method
-me_threshold motion estimaton threshold
-mb_threshold macroblock threshold
-bf frames use 'frames' B frames
-preme pre motion estimation
-bug param workaround not auto detected encoder bugs
-strict strictness how strictly to follow the standards
-deinterlace deinterlace pictures
-psnr calculate PSNR of compressed frames
-vstats dump video coding statistics to file
-vhook module insert video processing module
-intra_matrix matrix specify intra matrix coeffs
-inter_matrix matrix specify inter matrix coeffs
-top top=1/bottom=0/auto=-1 field first
-sc_threshold threshold scene change threshold
-me_range range limit motion vectors range (1023 for DivX player)
-dc precision intra_dc_precision
-mepc factor (1.0 = 256) motion estimation bitrate penalty compensation
-vtag fourcc/tag force video tag/fourcc
-skip_threshold threshold frame skip threshold
-skip_factor factor frame skip factor
-skip_exp exponent frame skip exponent
-genpts generate pts
-qphist show QP histogram
-vbsf bitstream filter

Audio options:
-aframes number set the number of audio frames to record
-ab bitrate set audio bitrate (in kbit/s)
-aq quality set audio quality (codec-specific)
-ar rate set audio sampling rate (in Hz)
-ac channels set number of audio channels
-an disable audio
-acodec codec force audio codec ('copy' to copy stream)
-vol volume change audio volume (256=normal)
-newaudio add a new audio stream to the current output stream
-alang code set the ISO 639 language code (3 letters) of the current audio stream

Advanced Audio options:
-atag fourcc/tag force audio tag/fourcc
-absf bitstream filter

Subtitle options:
-scodec codec force subtitle codec ('copy' to copy stream)
-newsubtitle add a new subtitle stream to the current output stream
-slang code set the ISO 639 language code (3 letters) of the current subtitle stream

Audio/Video grab options:
-vd device set video grab device
-vc channel set video grab channel (DV1394 only)
-tvstd standard set television standard (NTSC, PAL (SECAM))
-ad device set audio device
-grab format request grabbing using
-gd device set grab device

Advanced options:
-map file:stream[:syncfile:syncstream] set input stream mapping
-map_meta_data outfile:infile set meta data information of outfile from infile
-benchmark add timings for benchmarking
-dump dump each input packet
-hex when dumping packets, also dump the payload
-re read input at native frame rate
-loop_input loop (current only works with images)
-loop_output number of times to loop output in formats that support looping (0 loops forever)
-threads count thread count
-vsync video sync method
-async audio sync method
-vglobal video global header storage type
-copyts copy timestamps
-shortest finish encoding within shortest input
-dts_delta_threshold timestamp discontinuity delta threshold
-ps size set packet size in bits
-error rate error rate
-muxrate rate set mux rate
-packetsize size set packet size
-muxdelay seconds set the maximum demux-decode delay
-muxpreload seconds set the initial demux-decode delay
Although you probably already have those if you are using the shell.

Have you tried to just simplify your input and see what happens. something like:-
Quote:
ffmpeg -i filename.flv -b 300 filename.avi
If that works you could then add in the various settings to see what happens.
I have used ffmpeg -i path/filename to find out the details of files created with ffmpeg, which again might be a source of info.

Peter Swallow

Eyetech A1XE-G3 800Mhz OS4.1
Towered A1200 OS3.9
Go to top
Re: FFMPeg Revision
Quite a regular
Quite a regular


See User information
@Slayer

I have just looked at the ffmpeg FAQ, and the following might be helpful
Quote:
2.7 Why does FFmpeg not decode audio in VOB files?

The audio is AC-3 (a.k.a. A/52). AC-3 decoding is an optional component in FFmpeg as the component that handles AC-3 decoding is currently released under the GPL. Enable AC-3 decoding with ./configure --enable-gpl. Take care: By enabling AC-3, you automatically change the license of libavcodec from LGPL to GPL.


I am not sure as to whether this is a compile option, or a usage option, but at least it refers to your problem.

Peter Swallow

Eyetech A1XE-G3 800Mhz OS4.1
Towered A1200 OS3.9
Go to top
Re: FFMPeg Revision
Quite a regular
Quite a regular


See User information
@Swoop

Thanks again there Swoop... yip, I tend to live in a shell :D and I think that latter suggestion is a compile option...

I will try the simplified approach but as far as I can tell my only options are this... seperate the audio and convert it into raw or aiff or what not and then use FFMPeg to take only the video from the MPeg DVD Vob and merge with the new audio... the complication involved in this is getting the audio bit rate in sync I suppose... not sure I'm prepared to knock myself out over this... lol

I was reading in another thread on here that the neccessary support had been implemented but wasn't publically available since it caused other problems in other support namely cell phone formats??

I'd like to get my hands on that since I wouldn't use FFMPeg to convert anything else but vobs :D

lets see that ;) heh

~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: FFMPeg Revision
Quite a regular
Quite a regular


See User information
@Slayer

One thought I had was that you could try the ac3 audio format instead of forcing it to mp3. That might be where the problem is.
I have a small VOB file I recorded from the TV, If I get time later on today, I'll copy it to my hard drive and have a play.

Using the following,
Quote:
ffmpeg -i Media:Videos/TV.VOB -f avi -vcodec mpeg4 -acodec ac3 PB.avi
I get
Quote:
Media:Videos/TV.VOB: could not find codec parameters
I get the same result if I just use
Quote:
ffmpeg -i Media:Videos/TV.VOB


Edited by Swoop on 2008/4/13 12:40:02
Peter Swallow

Eyetech A1XE-G3 800Mhz OS4.1
Towered A1200 OS3.9
Go to top
Re: FFMPeg Revision
Not too shy to talk
Not too shy to talk


See User information
@Slayer

You could just rename the VOB files from PB.VOB to PB_01.avi & try avisplice on os4 depot to make one big file. I'm assuming there's more then 1 VOB video file. At least dvplayer & mplayer will play the renamed video.

Look, only one leg, count em, one!
X1000/PA6T@1800MHz/2Gb/Radeon 4850

Go to top
Re: FFMPeg Revision
Quite a regular
Quite a regular


See User information
@Swoop

not a bad idea, I'll try that soon... might cause some problems with bitrate? since the resulting avi will be smaller... which would again lead to the problem of trying to load in the original audio and manipulate it...

@sundown

not sure what you are solving here but thanks for the thoughts... I have no problem storing the large file... I already joined the 7 vob files in total to one file in a SFS2 partition that supports files larger than 4 gig...

PB.vob is 6.7 gigs - used cat to join it

:D

~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

 




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




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project