News:

--

Main Menu

Can't convert to DVD from flv

Started by Mikhail, July 27, 2012, 03:57:54 PM

Previous topic - Next topic

Mikhail

#15
I've done this. See my script:

//AD  <- Needed to identify//
//--automatically built--
//--Project: E:\  My Documents \ Videos \ToDVD.js

var app = new Avidemux();

//** Video **
// 01 videos source
app.load("E:/My Documents/Videos/Nastavniki (2006year).avi");
//01 segments
app.clearSegments();
app.addSegment(0,0,1899);
app.markerA=0;
app.markerB=1898;

//** Postproc **
app.video.setPostProc(3,3,0);

app.video.fps1000 = 25000;

//** Filters **
app.video.addFilter("mpresize","w=720","h=408","algo=0");
app.video.addFilter("addblack","left=0","right=0","top=84","bottom=84");

//** Video Codec conf **
app.video.codecPlugin("DBAECD8B-CF29-4846-AF57-B596427FE7D3", "mpeg2video", "2PASSBITRATE=6000", "<?xml version='1.0'?><Mpeg2Config><Mpeg2Options><minBitrate>0</minBitrate><maxBitrate>8000</maxBitrate><xvidRateControl>true</xvidRateControl><bufferSize>224</bufferSize><widescreen>false</widescreen><interlaced>none</interlaced><gopSize>12</gopSize></Mpeg2Options></Mpeg2Config>");

//** Audio **
app.audio.reset();
app.audio.codec("copy",0,279,"3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 27 31 2e 30 27 3f 3e 3c 4d 70 65 67 32 43 6f 6e 66 69 67 3e 3c 4d 70 65 67 32 4f 70 74 69 6f 6e 73 3e 3c 6d 69 6e 42 69 74 72 61 74 65 3e 30 3c 2f 6d 69 6e 42 69 74 72 61 74 65 3e 3c 6d 61 78 42 69 74 72 61 74 65 3e 38 30 30 30 3c 2f 6d 61 78 42 69 74 72 61 74 65 3e 3c 78 76 69 64 52 61 74 65 43 6f 6e 74 72 6f 6c 3e 74 72 75 65 3c 2f 78 76 69 64 52 61 74 65 43 6f 6e 74 72 6f 6c 3e 3c 62 75 66 66 65 72 53 69 7a 65 3e 32 32 34 3c 2f 62 75 66 66 65 72 53 69 7a 65 3e 3c 77 69 64 65 73 63 72 65 65 6e 3e 66 61 6c 73 65 3c 2f 77 69 64 65 73 63 72 65 65 6e 3e 3c 69 6e 74 65 72 6c 61 63 65 64 3e 6e 6f 6e 65 3c 2f 69 6e 74 65 72 6c 61 63 65 64 3e 3c 67 6f 70 53 69 7a 65 3e 31 32 3c 2f 67 6f 70 53 69 7a 65 3e 3c 2f 4d 70 65 67 32 4f 70 74 69 6f 6e 73 3e 3c 2f 4d 70 65 67 32 43 6f 6e 66 69 67 3e ");
app.audio.normalizeMode=0;
app.audio.normalizeValue=0;
app.audio.delay=0;
app.audio.mixer="NONE";
app.setContainer("PS", "00 00 00 00 00 00 00 00 ");
setSuccess(1);
//app.Exit();

//End of script


But after clicing to ToDVD аn Error occurs - illegal character. See attachment. There is mistake?

Jan Gruuthuse

Don't see what is going wrong? I've attached ToDVD.js. This one works here. If that does not work in your environment???? Windows English versus your localized Windows or Windows <> Linux?

These you need to leave out! Or you can't use the job for other videos!
//** Video **
// 01 videos source
app.load("E:/My Documents/Videos/Nastavniki (2006year).avi");
//01 segments
app.clearSegments();
app.addSegment(0,0,1899);
app.markerA=0;
app.markerB=1898;


Mikhail

I've copied your ToDVD.js to mine folder, run Avidemux. Loaded video. Cliced to ToDVD in menu. Then a message pup up "Incompatible audio
For DVD sound should be in the form of 48 kHz MP2, AC3 or LPCM" (transcription from Russian). I have turned Audio to 48 kHz MP2 or AC3 and the result was the same - en error and avidemux was shut down (log file in attachment )

Mikhail

Windows of crushind in attachment

Jan Gruuthuse

For DVD, audio must be 48 kHz and one of:
  • AC3 (FFmpeg AC3)
  • MP2 (FFmpeg MP2 or TwoLAME)
  • LPCM (WAV LPCM)
If the audio track from the source video is suitable, the best might be to use it and let the audio to Copy. Else select your favorite encoder (for me it would be TwoLAME).
Don't forget to setup the audio filter. Setup downmixing if needed and don't forget that the audio must be 48 kHz. Use a resampling filter if needed.
So for example, you will set downmixing to Dolby Prologic 2, resampling to 48 kHz, TwoLAME encoder at 160 kb/s.
source: Avidemux wiki: Converting to DVD

If that fails: can you upload a 5 second sample/size 20 MB original video that you load in avidemux? To Rapidshare or similar service? and provide a link for it here?

Mikhail

#20
I configured the audio as you said, but fails remind.
I noticed a feature ââ,¬â€œ text in js-files, which are in avidemux as a default, by opening it in notepad is shown as one long line, but not as a column. But your sample scripts, Iââ,¬â,,¢ve copied and pasted from this forum to notepad and saved as js, in js-files was like in your posts - in the column (each entry begins with a new line). Your last ToDVD.js in attachment is shown as a long line in a notepad. Maybe this is the reason? Link for example of muvie https://rapidshare.com/files/226503885/0.avi
See also attachments

Jan Gruuthuse

using 2.5.6 with supplied avi and using auto function optical disc dvd, the program rashes here to:
*********** BACKTRACK **************
/usr/lib/libADM_core.so(ADM_backTrack+0x5c) [0x7f12ca6fb4ac]:0:<ADM_backTrack>:-2
/lib/x86_64-linux-gnu/libc.so.6(+0x364c0) [0x7f12c79ef4c0]:1:<>:-2
/lib/x86_64-linux-gnu/libc.so.6(+0x8bfab) [0x7f12c7a44fab]:2:<>:-2
/usr/lib/ADM_plugins/audioEncoders//libADM_ae_twolame.so(twolame_malloc+0x35) [0x7f12afdc2ff5]:3:<twolame_malloc>:-2
/usr/lib/ADM_plugins/audioEncoders//libADM_ae_twolame.so(psycho_3+0x1651) [0x7f12afdc6211]:4:<psycho_3>:-2
/usr/lib/ADM_plugins/audioEncoders//libADM_ae_twolame.so(+0x54ec) [0x7f12afdc14ec]:5:<>:-2
/usr/lib/ADM_plugins/audioEncoders//libADM_ae_twolame.so(twolame_encode_buffer_interleaved+0xdb) [0x7f12afdc2aeb]:6:<twolame_encode_buffer_interleaved>:-2
/usr/lib/ADM_plugins/audioEncoders//libADM_ae_twolame.so(_ZN19AUDMEncoder_Twolame9getPacketEPhPjS1_+0xbb) [0x7f12afdc03fb]:7:<AUDMEncoder_Twolame::getPacket(unsigned char*, unsigned int*, unsigned int*)>:0
/usr/bin/avidemux2_qt4(_Z17defaultAudioSlaveP7muxerMT+0x3a) [0x50446a]:8:<defaultAudioSlave(muxerMT*)>:0
/usr/lib/nvidia-current/libGL.so.1(+0xa7b74) [0x7f12c7531b74]:9:<>:-2
*********** BACKTRACK **************

Jan Gruuthuse

With avidemux 2.6 I was able to process the provided video clip.
The end result is uploaded here: https://rapidshare.com/files/1118400/test.mpg
The Tinypy project for it is in attachment.
Hope this is what you wanted

Mikhail

Thanks a lot! If I correctly understood you ver 2.5.6. doesn't work. Can you send me a link for Avidemux 2.6. preferably with russian menu?

Jan Gruuthuse


Mikhail

There are 2 versions for Win 32 bit - avidemux_r8108_devel_win32.7z and avidemux_r8108_win32.7z,
Which of them I should download?

Mikhail

As I right, These programms without installation. How do I use it? Simply unpack the archieve and run avidemux3.exe?

Jan Gruuthuse

on the second link you have installer.

Mikhail

#28
Thank you very much. It is work with your ToDVD.py file. But there are some troubles:
- internal function Auto-DVD doesn't work. No any responses after clicking to Auto-DVD
- the programm with your ToDVD.py file doesn't work with another flv muvie (for example see its properties below:

Format: Flash Video
File Size: 49.8 MB


Video
Format: AVC
Format / Info: Advanced Video Codec
Viewing Format: Main@L3.0
The parameter format CABAC: Yes
The parameter format ReFrames: 3 frames
GOP format parameter: M = 1, N = 30
Codec ID: 7
Width: 640 pixels
Height: 480 pixels
Aspect ratio: 4:3
Frame rate mode: Constant
Frame rate: 30.000 frames / sec
Color Space: YUV
Saturation subsampling: 4:2:0
Bit Depth: 8 bits
Scan type: Progressive

Audio
Format: AAC
Format / Info: Advanced Audio Codec
Viewing Format: LC
Codec ID: 10
Channels: 2 channels
The location of channels: Front: LR
Frequency: 44.1 kHz
Compression Method: With the loss of

After clicking to Auto-DVD or Run Project-ToDVD.py appears an errors (see attachments), How to solve this problem?

Jan Gruuthuse

#29
Quote- internal function Auto-DVD doesn't work. No any responses after clicking to Auto-DVD
Is not activated, don't know when this will be activated by developers.
QuoteWidth: 640 pixels x Height: 480 pixels
The program tells you: this is not up to dvd specification. DVD is very strict!
Match output to Width: 720 x Height: 576 pixels with one of these options in
Video Output: Filters:
  • swResize, vdpau: resize or openGL resize: Resize: W: 720 H:576, last 2 if hardware support this.
  • Add Borders:
    720-640= 80/2 = 40 on Left and Right Border
    576-480= 96/2 = 48 on Top Border and Bottom Border