View previous topic :: View next topic |
Author |
Message |
mpiter n00b
Joined: 21 Feb 2005 Posts: 65 Location: France
|
Posted: Fri Mar 31, 2006 8:29 pm Post subject: cinelerra and mpeg2enc [SOLVED] |
|
|
When I try to encode video samples in mpeg2 using cinelerra-cvs-2.0, I got this error message: Code: | FileMPEG::open_file: Running /usr/lib/cinelerra/mpeg2enc.plugin -q 15 -a 3 -F 3 -I 1 -M 1 -z t -f 3 -g 45 -G 45 -R 0 -o '/root/test.mpv'
sh: /usr/lib/cinelerra/mpeg2enc.plugin: No such file or directory
|
After some web search, I found out that cinelerra has not use an mpeg2enc plugin anymore since version 1.1.7 or 1.7 but statically links mpeg2enc in the program. Apparently, some part of the source code does not know it . I am using an AMD-64 Turion M-37 and I got the same problem with a Pentium 4. Has anyone succedeed in encoding videos in mpeg2 using cinelerra? _________________ Michel Pitermann
Last edited by mpiter on Sat Apr 01, 2006 6:30 am; edited 1 time in total |
|
Back to top |
|
|
lo-jay l33t
Joined: 27 Feb 2005 Posts: 862
|
Posted: Fri Mar 31, 2006 10:01 pm Post subject: |
|
|
same thing here
Code: | trying popen( mpeg2enc -f 8 -o /home/jan/VIDEO/Britney_YUV.mpg)
INFO: [mpeg2enc] SETTING EXTENDED MMX for MOTION!
INFO: [mpeg2enc] SETTING SSE and MMX for TRANSFORM!
INFO: [mpeg2enc] SETTING EXTENDED MMX for PREDICTION!
INFO: [mpeg2enc] Selecting DVD output profile
INFO: [mpeg2enc] Interlaced input - selecting interlaced encoding.
INFO: [mpeg2enc] Encoding MPEG-2 video to /home/jan/VIDEO/Britney_YUV.mpg
INFO: [mpeg2enc] Horizontal size: 1280 pel
INFO: [mpeg2enc] Vertical size: 720 pel
INFO: [mpeg2enc] Aspect ratio code: 1 = 1:1 pixels
INFO: [mpeg2enc] Frame rate code: 7 = 60000.0/1001.0 (NTSC FIELD RATE)
INFO: [mpeg2enc] Bitrate: 7500 KBit/s
INFO: [mpeg2enc] Quality factor: 8 (Quantisation = 9) (1=best, 31=worst)
INFO: [mpeg2enc] Field order for input: bottom-field-first
INFO: [mpeg2enc] Sequence unlimited length
INFO: [mpeg2enc] Search radius: 16
INFO: [mpeg2enc] DualPrime: no
INFO: [mpeg2enc] Using one-pass rate controller
INFO: [mpeg2enc] GOP SIZE RANGE 9 TO 15
INFO: [mpeg2enc] Setting colour/gamma parameters to "unspecified"
INFO: [mpeg2enc] Progressive format frames = 0
**ERROR: [mpeg2enc] Picture rate greater than permitted in specified Level
Received sigpipe
write_frame() failed: system error (failed read/write)
Received sigpipe
write_frame() failed: system error (failed read/write)
trying popen( mpeg2enc -f 2 -o /home/jan/VIDEO/Britney_YUV.mpg)
INFO: [mpeg2enc] SETTING EXTENDED MMX for MOTION!
INFO: [mpeg2enc] SETTING SSE and MMX for TRANSFORM!
INFO: [mpeg2enc] SETTING EXTENDED MMX for PREDICTION!
INFO: [mpeg2enc] Selecting VCD output profile
INFO: [mpeg2enc] Interlaced input - selecting interlaced encoding.
**ERROR: [mpeg2enc] Interlaced encoding (-I != 0) is not supported by MPEG-1.
--verbose|-v num
Level of verbosity. 0 = quiet, 1 = normal 2 = verbose/debug
--format|-f fmt
Set pre-defined mux format fmt.
[0 = Generic MPEG1, 1 = standard VCD, 2 = user VCD,
3 = Generic MPEG2, 4 = standard SVCD, 5 = user SVCD,
6 = VCD Stills sequences, 7 = SVCD Stills sequences, 8|9 = DVD]
--aspect|-a num
Set displayed image aspect ratio image (default: 2 = 4:3)
[1 = 1:1, 2 = 4:3, 3 = 16:9, 4 = 2.21:1]
--frame-rate|-F num
Set playback frame rate of encoded video
(default: frame rate of input stream)
0 = Display frame rate code table
--video-bitrate|-b num
Set Bitrate of compressed video in KBit/sec
(default: 1152 for VCD, 2500 for SVCD, 7500 for DVD)
--nonvideo-bitrate|-B num
Non-video data bitrate to assume for sequence splitting
calculations (see also --sequence-length).
--quantisation|-q num
Image data quantisation factor [1..31] (1 is best quality, no default)
When quantisation is set variable bit-rate encoding is activated and
the --bitrate value sets an *upper-bound* video data-rate
--output|-o pathname
Pathname of output file or fifo (REQUIRED!!!)
--target-still-size|-T size
Size in KB of VCD stills
--interlace-mode|-I num
Sets MPEG 2 motion estimation and encoding modes:
0 = Progressive (non-interlaced)(Movies)
1 = Interlaced source material (video)
2 = Interlaced source material, per-field-encoding (video)
--motion-search-radius|-r num
Motion compensation search radius [0..32] (default 16)
--reduction-4x4|-4 num
Reduction factor for 4x4 subsampled candidate motion estimates
[1..4] [1 = max quality, 4 = max. speed] (default: 2)
--reduction-2x2|-2 num
Reduction factor for 2x2 subsampled candidate motion estimates
[1..4] [1 = max quality, 4 = max. speed] (default: 3)
--min-gop-size|-g num
Minimum size Group-of-Pictures (default depends on selected format)
--max-gop-size|-G num
Maximum size Group-of-Pictures (default depends on selected format)
If min-gop is less than max-gop, mpeg2enc attempts to place GOP
boundaries to coincide with scene changes
--closed-gop|-c
All Group-of-Pictures are closed. Useful for authoring multi-angle DVD
--force-b-b-p|-P
Preserve two B frames between I/P frames when placing GOP boundaries
--quantisation-reduction|-Q num
Max. quantisation reduction for highly active blocks
[0.0 .. 4.0] (default: 0.0)
--quant-reduction-max-var|-X num
Luma variance below which quantisation boost (-Q) is used
[0.0 .. 2500.0](default: 0.0)
--video-buffer|-V num
Target decoders video buffer size in KB (default 46)
--video-norm|-n n|p|s
Tag output to suit playback in specified video norm
(n = NTSC, p = PAL, s = SECAM) (default: PAL)
--sequence-length|-S num
Place a sequence boundary in the video stream so they occur every
num Mbytes once the video is multiplexed with audio etc.
N.b. --non-video-bitrate is used to the bitrate of the other
data that will be multiplexed with this video stream
--3-2-pulldown|-p
Generate header flags for 3-2 pull down of 24fps movie material
--intra_dc_prec|-D [8..11]
Set number of bits precision for DC (base colour) of blocks in MPEG-2
--reduce-hf|-N num
[0.0..2.0] Reduce hf resolution (increase quantization) by num (default: 0.0)
--keep-hf|-H
Maximise high-frequency resolution - useful for high quality sources
and/or high bit-rates)
--sequence-header-every-gop|-s
Include a sequence header every GOP if the selected format doesn't
do so by default.
--no-dummy-svcd-SOF|-d
Do not generate dummy SVCD scan-data for the ISO CD image
generator "vcdimager" to fill in.
--playback-field-order|-z b|t
Force setting of playback field order to bottom or top first
--multi-thread|-M num
Activate multi-threading to optimise throughput on a system with num CPU's
[0..32], 0=no multithreading, (default: 0)
--correct-svcd-hds|-C
Force SVCD horizontal_display_size to be 480 - standards say 540 or 720
But many DVD/SVCD players screw up with these values.
--no-constraints
Deactivate constraints for maximum video resolution and sample rate.
Could expose bugs in the software at very high resolutions!
--no-altscan-mpeg2
Deactivate the use of the alternate block pattern for MPEG-2. This is
A work-around for a Bug in an obscure hardware decoder.
--dualprime-mpeg2
Turn ON use of dual-prime motion compensation. Default is OFF unless this option is used
--custom-quant-matrices|-K kvcd|tmpgenc|default|hi-res|file=inputfile|help
Request custom or userspecified (from a file) quantization matrices
--unit-coeff-elim|-E num
Skip picture blocks which appear to carry little information
because they code to only unit coefficients. The number specifies
how aggresively this should be done. A negative value means DC
coefficients are included. Reasonable values -40 to 40
--b-per-refframe| -R 0|1|2
The number of B frames to generate between each I/P frame
--cbr|-u
For MPEG-2 force the use of (suboptimal) ConstantBitRate (CBR) encoding
--help|-?
Print this lot out!
Received sigpipe
write_frame() failed: system error (failed read/write)
Received sigpipe
write_frame() failed: system error (failed read/write)
|
did you post it at the cinelerra-mailing list https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra?
better for cinelerra related stuff...
cheers _________________ lo-jay
The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"
taken from "Two Lane Blacktop" |
|
Back to top |
|
|
mpiter n00b
Joined: 21 Feb 2005 Posts: 65 Location: France
|
Posted: Sat Apr 01, 2006 6:29 am Post subject: |
|
|
Thank for the tip about cinelerra mailing list. I found there this link http://content.serveftp.net/video/renderTest/guideToCinExport.html detailling how to export a video with cinelerra. I quickly tested the procedure to produce an mpeg2 file and it worked. I still need to burn the test file on a RW DVD, but I will not be able to do it before Monday. Anyway, I think the problem is solved. _________________ Michel Pitermann |
|
Back to top |
|
|
cazze Apprentice
Joined: 26 Mar 2003 Posts: 155 Location: Brussels - Belgium
|
Posted: Sun Apr 23, 2006 9:23 pm Post subject: |
|
|
Hi,
the link you mentioned doesn't work anymoer. Did you test the procedure? Can you give us some tips how to do this?
Thx,
cazze _________________ Required: Windows 95 or better, so i installed Linux!!! |
|
Back to top |
|
|
mpiter n00b
Joined: 21 Feb 2005 Posts: 65 Location: France
|
Posted: Thu Apr 27, 2006 6:37 pm Post subject: |
|
|
Strange, the links still works for me. To render a movie for a DVD, you need to separately process sound and picture. The key is to use "YUV4MPEG Stream" as "File Format" instead of "Mpeg Video" for the video.
To render the sound, use SHIFT+R, then choose "Microsoft WAV" for "File Format", select "Audio" and unselect "Video"; in the "Audio" toolbox, choose "16 bit linear" and do not select "Dither". In the main "Render" diaolog box, you probably want to select "Insert nothing" as the "Insertion strategy". Then launch the rendering that should be fast for the audio. Render now the images with SHIFT+R, select "YUV4MPEG Stream" as "File Format", select "Video" and unselect "Audio"; in the "Video" toolbox select "Use Pipe", click "ffmpeg" and update the command to " ffmpeg -f yuv4mpegpipe -i - -y -target dvd -ilme -ildct -deinterlace -me full -f mpeg2video %" (-deinterlace is to be used only for interlaced source such as a DV camcorder, and -me full is probably not very usefull). You can also choose "mpeg2enc" for "Pipe Presets", but I have not found a way to produce deinterlacing as good as with ffmpeg. Once again, you probably need "Insert nothing" as "Insertion strategy", then render. It can take some time depending on your architecture and the effects you choose.
Now you have two files, one audio file (e.g. gnat.wav) and one video mpeg file (e.g. gnat.m2v). Hence you need to merge them in one mpeg file: Code: | ffmpeg -i gnat.wav -i gnat.m2v -target dvd gnat.mpg | would do the work to get gnat.mpg that can be used for a DVD.
I use dvdstyler to create my DVD menus and to associate the .mpg files. I also emerged qdvdauthor that might be better, but I have not checked it yet. I use cinelerra-cvs-20060219 and dvdstyler-1.4 on an amd64 architecture. Both work beautifully well.
Good luck. _________________ Michel Pitermann |
|
Back to top |
|
|
cazze Apprentice
Joined: 26 Mar 2003 Posts: 155 Location: Brussels - Belgium
|
Posted: Fri Apr 28, 2006 7:33 am Post subject: |
|
|
@mpiter
thx for this little howto. The link works again. He wasn't working for 3 days here Glad he is up again.
For the problem with the mpeg2enc.plugin problem, just make a symbolic link to the file like this:
ln -s /usr/bin/mpeg2enc /usr/lib/cinelerra/mpeg2enc.plugin
that should solve your problem.
As for multiplexing the audio and the video stream, you could also use
mplex -f 8 -o bla.mpg bla.m2v bla.mp2
with bla.mp2 the output of the audio rendered as an mpeg2 audio stream.
cazze _________________ Required: Windows 95 or better, so i installed Linux!!! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|