Re: [CinCV] Howto produce HD mpg 1080 from Cinelerra

2009-06-10 Thread Ed Vaessen
 Ed,
 I had a similar problem getting the output from my Canon 5D Mark II into a
 Cinelerra-usable format.  My solution was to reencode the 1080P H264 into
 1080P MPEG-TS.

 Here is my tale of woe from earlier this year:
 http://crazedmuleproductions.blogspot.com/2009/02/dark-of-winter-has-me-in-its-grasp.html

 The MPEG2-TS is the section you'd want to focus on.

 scott
 http://crazedmuleproductions.blogspot.com


Hello Scott,

Thanks for the information. I see that you had to recode a .mov file to
make it acceptable to Cinelerra.
You also say that the mjpeg does not live up to quality standards and I
think you are right. Besides, I would like to offer footage to Cinelerra
that has not been recoded so that the original recording quality is
maintained. That is possible because the .tod files that my JVC GZ-HD30
produces are in fact mpeg2 files. When feeding the .tod to avidemux, it is
recognize as a MPEG TS.
As said in a previous message, I used ffmpeg to convert the .tod file to
mpg as Cinelerra accepts it, while avoiding encoding by copying the
codecs:

fmpeg -i footage.tod -acodec copy -vcodec copy footage.mpg

The drawback is the fact that when imported in the Cinelerra timeline, the
video part is a few frames longer than the audio part at the end due to
the fact that the tail of the audio is apparantly cut. So it is not a
synchronization problem.
When importing the file footage.mpg to MainActor, everything is all right:
video and audio are equally long. So it is not a problem of footage.mpg
itself but the way Cinelera looks at it or the way the timeline presents
this particular mpeg footage.

I am going to experiment a bit more.



Regards,

Ed



___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: [CinCV] Howto produce HD mpg 1080 from Cinelerra

2009-06-10 Thread Ed Vaessen
Hello Simeon,

That is certainly a good idea. But first I try to experiment a bit to see
if I can still feed the orginal footage to Cinelerra, so without any
re-encoding.


Regards,

Ed


 Hello Ed,

 Nice to hear that you finally got your rendering working. It would be
 great
 if you could add your experiences and gained knowledge to the Cinelerra
 Wiki in order to share it with the other users of Cinelerra!

 http://cvs.cinelerra.org/docs/wiki/doku.php

 can take some additinonal information, especially

 http://cvs.cinelerra.org/docs/wiki/doku.php?id=english_manual:cinelerra_cv_en_20


 in this case. For example a section titled One way to produce a FullHD
 mpg
 in Cinelerra would be nice to have :)

 Simeon


 ___
 Cinelerra mailing list
 Cinelerra@skolelinux.no
 https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra




___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: [CinCV] Howto produce HD mpg 1080 from Cinelerra

2009-06-09 Thread Ed Vaessen
Succes at last, though my workflow is far from elegant.

Convert the .tod files from my JVC GZ-HD30 camcorder with avidemux: export
with video as MJPEG and audio as WAV, format AVI. This will make all
clips, when imported in Cinelerra, have video and audio matching exactly
in length.

After editing in Cinelerra, export as advised by Simeon:

 To export the video through YUV4MPEG Stream use the following pipe
command:

 ffmpeg -f yuv4mpegpipe -i - -y -r 25 -b 2800 -f mpeg2video %

 As Cinelerra Format settings i would suggest a frame rate 25. fps
 and 1920x1080 as size of your canvas.

 Export your audio as MPEG Audio, select Layer II and 384 kbit/s.

Next, the muxing must be done using avidemux again: first importing the
.m2v and adding the audio file using the Audio-main track-external MP3
Export with video and audio set to copy and format MPEG TS (A+V).

This will result in an mpg file that will play both in mplayer and on my
networked media tank HDX1000.



___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: [CinCV] Howto produce HD mpg 1080 from Cinelerra

2009-06-09 Thread Simeon Völkel
Hello Ed,

Nice to hear that you finally got your rendering working. It would be great
if you could add your experiences and gained knowledge to the Cinelerra
Wiki in order to share it with the other users of Cinelerra!

http://cvs.cinelerra.org/docs/wiki/doku.php

can take some additinonal information, especially

http://cvs.cinelerra.org/docs/wiki/doku.php?id=english_manual:cinelerra_cv_en_20


in this case. For example a section titled One way to produce a FullHD mpg
in Cinelerra would be nice to have :)

Simeon


___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: [CinCV] Howto produce HD mpg 1080 from Cinelerra

2009-06-09 Thread sfrase6%40comcast.net
Ed,
I had a similar problem getting the output from my Canon 5D Mark II into a 
Cinelerra-usable format.  My solution was to reencode the 1080P H264 into 1080P 
MPEG-TS.

Here is my tale of woe from earlier this year:
http://crazedmuleproductions.blogspot.com/2009/02/dark-of-winter-has-me-in-its-grasp.html

The MPEG2-TS is the section you'd want to focus on.

scott
http://crazedmuleproductions.blogspot.com

___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: [CinCV] Howto produce HD mpg 1080 from Cinelerra

2009-06-08 Thread Simeon Völkel
Hello Ed,

I can't really speak out of experience but I would try the following:

To export the video through YUV4MPEG Stream use the following pipe command:

ffmpeg -f yuv4mpegpipe -i - -y -r 25 -b 2800 -f mpeg2video %

As Cinelerra Format settings i would suggest a frame rate 25. fps and
1920x1080 as size of your canvas.

Export your audio as MPEG Audio, select Layer II and 384 kbit/s.

Then mux your video and audio together using a command like

ffmpeg -i foo_video.m2v -i foo_audio.mp2 -acodec copy foo_muxed.mpg

Hope that helps...

Simeon

___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: [CinCV] Howto produce HD mpg 1080 from Cinelerra

2009-06-08 Thread Ed Vaessen
Hello Simeon,

That works. Much better than using the pipe with mpeg2enc, which always
resulted in errors, no matter what settings I used in the format as well
as the parameters passed to mpeg2enc.
I have been busy in the mean time and found that exporting to mov or mkv
or avi, using a variety of codecs, and then using ffmpeg to convert the
result to mpg also does the trick.
But in all cases (also when I follow your advise) something strange
happens: when playing the movie, there is a little pause whem the border
between two scenes is crossed. You see, for purpose of testing, I used 5
pieces of footage in the timeline, one after another and no gaps in
between.So there are 4 places where a new scene starts and always this
little pause occurs when passing this border, a pause that last no longer
than a fraction of a second but is still very noticable.

Is this typical for mpeg footage?


Regards,

Ed


 Hello Ed,

 I can't really speak out of experience but I would try the following:

 To export the video through YUV4MPEG Stream use the following pipe
 command:

 ffmpeg -f yuv4mpegpipe -i - -y -r 25 -b 2800 -f mpeg2video %

 As Cinelerra Format settings i would suggest a frame rate 25. fps and
 1920x1080 as size of your canvas.

 Export your audio as MPEG Audio, select Layer II and 384 kbit/s.

 Then mux your video and audio together using a command like

 ffmpeg -i foo_video.m2v -i foo_audio.mp2 -acodec copy foo_muxed.mpg

 Hope that helps...

 Simeon

 ___
 Cinelerra mailing list
 Cinelerra@skolelinux.no
 https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra




___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: [CinCV] Howto produce HD mpg 1080 from Cinelerra

2009-06-08 Thread Simeon Völkel
Hello Ed,

I did just try some HDV footage (1440x1080 not FullHD), exported the
assembled clips using the ffmpeg command i posted earlier and couldn't see
any gaps when playing the video in mplayer or vlc.

Simeon

___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: [CinCV] Howto produce HD mpg 1080 from Cinelerra

2009-06-08 Thread Brendan

Ed Vaessen wrote:

Is this typical for mpeg footage?


Are there gaps in the original footage?  I discovered (the hard way) my 
Sanyo Xacti VPC-HD2000 would stop/start recording every time it had to 
open a new file (4GB file limit).  This resulted in gaps every ~23 
minutes with 1920x1080/60P footage.


-Brendan

___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: [CinCV] Howto produce HD mpg 1080 from Cinelerra

2009-06-08 Thread Ed Vaessen
 Ed Vaessen wrote:
 Is this typical for mpeg footage?

 Are there gaps in the original footage?  I discovered (the hard way) my
 Sanyo Xacti VPC-HD2000 would stop/start recording every time it had to
 open a new file (4GB file limit).  This resulted in gaps every ~23
 minutes with 1920x1080/60P footage.

 -Brendan

 ___
 Cinelerra mailing list
 Cinelerra@skolelinux.no
 https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra

Hello Brendan,

I think gaps may have been present BETWEEN the footages. I have to check
these things out.

Ed




___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: [CinCV] Howto produce HD mpg 1080 from Cinelerra

2009-06-08 Thread Ed Vaessen
 Hello Ed,

 I did just try some HDV footage (1440x1080 not FullHD), exported the
 assembled clips using the ffmpeg command i posted earlier and couldn't see
 any gaps when playing the video in mplayer or vlc.

 Simeon

 ___
 Cinelerra mailing list
 Cinelerra@skolelinux.no
 https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra

Hello Simeon,

I think I will have to check again a few things. There could have been
gaps between the footages.
In the meantime, I followed an alternative approach. I used avidemux to
convert the .tod files to MJPEG-files with WAV as audio. These files I
carefully aligned next to eachother in the Cinelerra timeline and I then
produced the .m2v and the .mp3 file, following your advise. Yes, mp3
instead of mp2, as this was the default.
Unfortunately, the muxing was no succes.
This was what happened when trying your last suggestion:

$ ffmpeg -i output59Cinelerra.m2v -i output59Cinelerra.mp3 -acodec copy
foo_muxed.mpg
FFmpeg version SVN-r11599, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --prefix=/usr --enable-shared --libdir=/usr/lib
--enable-liba52 --enable-pp --enable-gpl --enable-pthreads
--enable-libnut --enable-libtheora --enable-libvorbis --enable-x11grab
--enable-dirac --enable-libmp3lame --enable-libfaad --enable-libfaac
--enable-libx264 --enable-libxvid --enable-libamr_nb --enable-libamr_wb
  libavutil version: 49.6.0
  libavcodec version: 51.49.0
  libavformat version: 52.5.0
  libavdevice version: 52.0.0
  built on Jan 16 2009 00:52:59, gcc: 4.2.3 (4.2.3-6mnb1)
Input #0, mpegvideo, from 'output59Cinelerra.m2v':
  Duration: 00:00:16.3, bitrate: 104857 kb/s
Stream #0.0: Video: mpeg2video, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9],
104857 kb/s, 25.00 tb(r)
Input #1, mp3, from 'output59Cinelerra.mp3':
  Duration: 00:01:01.2, start: 0.00, bitrate: 384 kb/s
Stream #1.0: Audio: mp2, 48000 Hz, stereo, 384 kb/s
File 'foo_muxed.mpg' already exists. Overwrite ? [y/N] y
Output #0, mpeg, to 'foo_muxed.mpg':
Stream #0.0: Video: mpeg1video, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9],
q=2-31, 200 kb/s, 25.00 tb(c)
Stream #0.1: Audio: libmp3lame, 48000 Hz, stereo, 384 kb/s
Stream mapping:
  Stream #0.0 - #0.0
  Stream #1.0 - #0.1
Press [q] to stop encoding
error, non monotone timestamps 2160 = 0
av_interleaved_write_frame(): Error while opening file
[vaes...@localhost TestJVChd30]$

The result was a file with length zero.


Regards,

Ed



___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: [CinCV] Howto produce HD mpg 1080 from Cinelerra

2009-06-08 Thread Ed Vaessen
 Hello Ed,

 I did just try some HDV footage (1440x1080 not FullHD), exported the
 assembled clips using the ffmpeg command i posted earlier and couldn't see
 any gaps when playing the video in mplayer or vlc.

 Simeon

 ___
 Cinelerra mailing list
 Cinelerra@skolelinux.no
 https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra

Talking about gaps. I think that they may have been there, due to
insufficient alignment by me in the timeline. But while investigating this
matter, I found something else. When placing the mpg-files in the
timeline, I mean the files produced from the original footage with the
command:

ffmpeg -i movie.tod -vcodec copy -acodec copy movie.mpg

I found that the audio part was slightly shorter\d than the video part.
Perhaps only 1 or 2 percent.
Sigh

After all these years, the conversion wizards still manage to screw this
up. After 20 years of programming, they still cannot align video and
audio.




___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


[CinCV] Howto produce HD mpg 1080 from Cinelerra

2009-06-07 Thread Ed Vaessen
Hello,

I purchased a HD camcoder (JVC GZ-HD30) that can record both in AVCHD and
MPEG2-TS in 1920x1080i. I used it during my holidays and recorded in
MPEG2-TS. The files all have extension .tod, that must be converted to mpg
with ffmpeg to make Cinelerra willing to import them:

ffmpeg -i movie.tod -vcodec copy -acodec copy movie.mpg

Using tcprobe gives the following information about the converted file:

$ tcprobe -i movie.mpg
[tcprobe] MPEG program stream (PS)
[tcprobe] summary for movie.mpg, (*) = not default, 0 = not detected
import frame size: -g 1920x1088 [720x576] (*)
 aspect ratio: 16:9 (*)
   frame rate: -f 25.000 [25.000] frc=3
   PTS=12382.5579, frame_time=40 ms, bitrate=28000 kbps
  audio track: -a 0 [0] -e 48000,16,2 [48000,16,2] -n 0x50 [0x2000] (*)
   bitrate=384 kbps

Funny enough it has 1088 lines instead of 1080. Anyway, this file,
slightly smaller in size than tye original .tod file, I can play
flawlessly on my media player HDX1000.

So I would like now Cinelerra to produce that kind of file after editing
and that is where the problem starts: I tried some containers and formats
and codecs when rendering but the result did not play on the HDX1000 or
only with an annoying amount of stuttering. Yet the HDX1000 is able to
play quite some formats and codecs. Cinelerra also does not seem to have a
format that produces 1920x1080p with frame rate 25.
Do I have to export to quicktime for linux, for example with Compression
Component Y'CbCr 8-bit 4:2:2 (yuv2) and then use ffmpeg to produce the
kind of file I want?

Please some advice.


Ed



___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra