Log in

View Full Version : rtJPEG -> mpeg2


bruce1271
1st December 2003, 22:50
Does anyone know how to have .nuv (nuppelvideo) be trancoded into mpeg2?

I have a 1 8 Gig file I woudl like to turn into a 2 gig mpeg2.

I am using mythtv

Any ideas?

mean
2nd December 2003, 08:06
Transcode or avidemux2

bruce1271
3rd December 2003, 07:52
Thanks,

You wouldnt happen to know which commands in transcode actually do it do ya? I keep getting..
Autoprobing source filname.nuv FAILED.import format unknown.

Any ideas?

mean
3rd December 2003, 07:58
The problem with mythTv nuv file is that they may be or not vanilla nuv
file. I don't know if transcode supports the extended nuv file.
Avidemux2 is then your best option, it should read all nuv variant.

bruce1271
4th December 2003, 21:26
thanks for the suggestion. I can read it in now, but the documentation isnt very clear.

have you used this tool? Do you have any scripts to output mpeg2 from .nuv?

thanks in advance.

mean
4th December 2003, 21:30
Yes, in fact i wrote it :)

Select SVCD or DVD as video codec (vcodec button)
Configure -> Set your wishes
Set vprocess to on
File ->save foo.m2v

You will find a (small) tutorial here
http://fixounet.free.fr/avidemux/doc/en

mean
4th December 2003, 21:30
Ps: Don"t try VCD on 2.0.18 it is bugged

bruce1271
4th December 2003, 22:33
Great..you are the man. I would like to script this. Is there any way to do it without the gui? Also, How do I output mpeg2?
I tried reading the doc, but I cant seem to find the right commands. I started with the example tutorial, but the audio.m2p never got wrote out.

Here is what I did:
avidemux2 --load ../myth_videos/1067_20031129093000_20031129100000.nuv --audio-process --audio-normalize --audio-resample --audio-codec MP2 --audio-toolame audio.mp2


any ideas. I just ignored the gui. Is that ok?

mean
4th December 2003, 23:05
It should be something along
avidemux2 --load foo.m2v --audio-process --audio-resample --audio-bitrate 224 --audio-toolame foo.mp2 --quit


But you just found a bug (Fixed in cvs if you dare to try :)

On the other hand, this will work
avidemux2 --load /work/samples/2mn.avi --audio-process --audio-resample --audio-bitrate 224 --audio-codec MP2 --save-uncompressed-audio /tmp/foo.mp2

but with an audio codec a bit inferior to toolame

bruce1271
4th December 2003, 23:17
I dont have an m2v to load. I only have a mythtv .nuv as my start point.
I want to have a .m2v as my output not input.

Can you be more explicit as to what files are input/output to turn a mythtv .nuv into a working mpeg2 file I can play on my dvd player.

what bug did I find?

I dont have cvs set-up. Can I download a new version?

you have to understand I am new to video/audio codec's in general. I have been using linux for 4 years, but never really got into video/audio manipulation.

thanks.

mean
5th December 2003, 07:53
It was an example ( i tried it to be sure it was working)
The bug is --audio-toolame is now working when called from command line


Replace foo.m2v or 2mn.avi by you input file xxxx.nuv

One you have the audio ditto for video

avidemux2 --load yourfile.nuv --video-codec DVD --video-conf cq=10 --video-process --save foo_dvd.m2v

But you'd better do it once with the UI

Afterward mux them with mplex, and you will have a DVD compliant mpeg file, ready to be handled by dvdauthor

bruce1271
5th December 2003, 20:45
thank oyu sir. It seemed to have worked, but now I get this error:

root@bruce myth_videos]ssh:# mplex -o hunting.all hunting.video hunting.audio
INFO: [mplex] mplex version 1.6.1.92 (2.2.3 $Date: 2003/11/26 04:19:33 $)
INFO: [mplex] File hunting.video looks like an MPEG Video stream.
INFO: [mplex] File hunting.audio looks like an AC3 Audio stream.
INFO: [mplex] Found 1 audio streams and 1 video streams
INFO: [mplex] Selecting generic MPEG1 output profile
INFO: [mplex] Multiplexing video program stream!
INFO: [mplex] Scanning for header info: Video stream e0 (hunting.video)
INFO: [mplex] VIDEO STREAM: e0
INFO: [mplex] Frame width : 480
INFO: [mplex] Frame height : 480
INFO: [mplex] Aspect ratio : 1:0.6735
INFO: [mplex] Picture rate : 29.970 frames/sec
INFO: [mplex] Bit rate : 5000000 bits/sec
INFO: [mplex] Vbv buffer size : 229376 bytes
INFO: [mplex] CSPF : 0
INFO: [mplex] Scanning for header info: AC3 Audio stream 00 (hunting.audio)
INFO: [mplex] AC3 frame size = 556

INFO: [mplex] AC3 AUDIO STREAM:
INFO: [mplex] Bit rate : 16384 bytes/sec (128 kbit/sec)
INFO: [mplex] Frequency : 44100 Hz
INFO: [mplex] SYSTEMS/PROGRAM stream:
INFO: [mplex] rough-guess multiplexed stream data rate : 5209248
INFO: [mplex] Setting best-guess data rate.
INFO: [mplex] Run-in Sectors = 21 Video delay = 5944 Audio delay = 8947
INFO: [mplex] New sequence commences...
INFO: [mplex] Video e0: buf= 47104 frame=000000 sector=00000000
INFO: [mplex] Audio bd: buf= 16384 frame=000000 sector=00000000
INFO: [mplex] Padding : sector=00000000
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=5944 required(DTS)=5944
++ WARN: [mplex] Video e0: buf= 4542 frame=000000 sector=00000021
++ WARN: [mplex] Audio bd: buf= 16384 frame=000000 sector=00000000
++ WARN: [mplex] Padding : sector=00000000
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=27246216 required(DTS)=27246157
++ WARN: [mplex] Video e0: buf= 18453 frame=009072 sector=00079233
++ WARN: [mplex] Audio bd: buf= 3885 frame=008711 sector=00002399
++ WARN: [mplex] Padding : sector=00014622
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=40348483 required(DTS)=40348246
++ WARN: [mplex] Video e0: buf= 18629 frame=013435 sector=00118609
++ WARN: [mplex] Audio bd: buf= 4096 frame=012891 sector=00003550
++ WARN: [mplex] Padding : sector=00020382
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=41132292 required(DTS)=41132029
++ WARN: [mplex] Video e0: buf= 10370 frame=013695 sector=00120997
++ WARN: [mplex] Audio bd: buf= 1766 frame=013145 sector=00003620
++ WARN: [mplex] Padding : sector=00020693
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=44925091 required(DTS)=44924818
++ WARN: [mplex] Video e0: buf= 17066 frame=014959 sector=00132376
++ WARN: [mplex] Audio bd: buf= 2199 frame=014354 sector=00003953
++ WARN: [mplex] Padding : sector=00022380
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=45087005 required(DTS)=45086980
++ WARN: [mplex] Video e0: buf= 12085 frame=015012 sector=00132920
++ WARN: [mplex] Audio bd: buf= 2845 frame=014405 sector=00003967
++ WARN: [mplex] Padding : sector=00022394
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=47648750 required(DTS)=47648539
++ WARN: [mplex] Video e0: buf= 12050 frame=015865 sector=00140825
++ WARN: [mplex] Audio bd: buf= 803 frame=015226 sector=00004193
++ WARN: [mplex] Padding : sector=00023313
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=49369507 required(DTS)=49369258
++ WARN: [mplex] Video e0: buf= 22678 frame=016439 sector=00146047
++ WARN: [mplex] Audio bd: buf= 5216 frame=015767 sector=00004342
++ WARN: [mplex] Padding : sector=00024021
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=54973078 required(DTS)=54972856
++ WARN: [mplex] Video e0: buf= 19088 frame=018305 sector=00163220
++ WARN: [mplex] Audio bd: buf= 3977 frame=017557 sector=00004835
++ WARN: [mplex] Padding : sector=00026151
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=55528453 required(DTS)=55528411
++ WARN: [mplex] Video e0: buf= 21986 frame=018490 sector=00165014
++ WARN: [mplex] Audio bd: buf= 1439 frame=017738 sector=00004885
++ WARN: [mplex] Padding : sector=00026269
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=55693764 required(DTS)=55693576
++ WARN: [mplex] Video e0: buf= 18736 frame=018545 sector=00165554
++ WARN: [mplex] Audio bd: buf= 4104 frame=017786 sector=00004898
++ WARN: [mplex] Padding : sector=00026300
**ERROR: [mplex] Too many frame drops -exiting
[root@bruce myth_videos]ssh:#

mean
5th December 2003, 22:55
mplex -f 8 -V -o hunt.mpg hunt.audio hunt.video
(from memory -f 8 is for DVD -V for VBR)

bruce1271
6th December 2003, 04:19
Mean,

thanks a ton for your help. It appears to have worked. the audio is synced perfectly.
Only a few issues remain.

1) The audio is synced but the volume is very low. Anyway to fix this?
2) How can I write out a command file based on the options I select through the gui? That would be nice to do. I didnt do any edit, just setting bitrates and things like that would be useful to do from the command line.

thanks again!!! I will spread the word over at mythtv on your program if you wish.