Re: [Cin] Sad news: Our developer Good Guy has passed away
What a sad news! All my gratitude to GG for bringing us all wonderfull things in Cinelerra-GG and my deepest condolences to Phyllis and family. -- Cin mailing list Cin@lists.cinelerra-gg.org https://lists.cinelerra-gg.org/mailman/listinfo/cin
Re: [Cin] actually, added few more formats to theme.C
Firstly, I'm not a programmer, but as I'm retired and hope to spend some time forward to learn Cin-GG to edit my hobby recorded and archived SD and HDV. In general, the most user friendly would be if the automatic selected Preset format fits correctly to each loaded standard video w/audio file format. For unknown formats, PAL vs NTSC should preferably be choosed based on the actual time zone (CGG manual page 416, above Figure 13.1). *) User custom verification and selection of presets or video technical details, assume the user is skilled on the video format in use. Den 11.11.2020 18:54, skrev Andrew Randrianasulu via Cin: В сообщении от Wednesday 11 November 2020 20:12:44 Terje J. Hanssen via Cin написал(а): I will just add that the HDV format consist of three versions: https://en.wikipedia.org/wiki/HDV#Specifications HDV 720p 720p/60, 720p/30, 720p/24, 720p/50, 720p/25 but may be those can be already selected, just not as preset with HDV in name? 720p/60 is the only 720p preset available. *) Each details can be custom selected, although not ideally? According to the Wikipedia HDV specifications: 720p: Pixel aspect ratio 1.00 (PAR), Frame size in pixels 1280x720, Frame aspect ratio 16:9 (DAR), MPEG2 Video compr. (profile & level: MP@H-14/HL) 1080i: Pixel aspect ratio 1.33 (PAR), Frame size in pixels 1440x1080, Frame aspect ratio 16:9 (DAR), MPEG2 Video compr. (profile & level: MP@H-14) From the Cin Preset Canvas size I noticed the following proportions can be derived, in case they tell something . 720p: W Ratio/H Ratio=0.8889/0.6667=1.33, Width/W Ratio=1280/0.8889=1440, Height/H Ratio=720/0.6667=1080 1080i: W Ratio/H Ratio=1./1.=1.33, Width/W Ratio=1920/1.=1440, Height/H Ratio=1080/1.000=1080 HDV 1080i 1080i/30 (29.97), 1080i/25 HDV 1080p 1080p/30 (29.97), 1080p/24 (23.98), 1080p/25 Those seems to be more tricky, because I still not sure how they should show up in Compositor and Viewer. With correct-for-display aspect ratio? But then how masks/titles will work? In case you have not seen it, the replies to my related mail request on the old CinCVS mail list might have some more information: https://www.mail-archive.com/cinelerra@skolelinux.no/msg05573.html This CinCVS Mail Archive is also searchable and contains several threads about that time new HDV format https://www.mail-archive.com/cinelerra@skolelinux.no/ Terje J. H At the same time I will also suggest to consistently use lower case "i" for all interlaced HDV and HD formats like that on the SD formats. Attached screen shots from the Set_Format_Preset menue. ok Terje J. H Den 01.11.2020 19:35, skrev Pierre autourduglobe via Cin: Yes it's clear HDV 1080i "Top field first" and DV "Bottom field first" In my case I can verify this with my old HDV camera HVR-Z1U, which can record and transfer either in HDV or DV (ntsc). Here is what mediainfo says about the material shot: An example of HDV material General ID : 255 (0xFF) Complete name : exemple.m2t Format : MPEG-TS Commercial name : HDV 1080i File size : 30.2 MiB Duration : 10s 878ms Start time : UTC 2016-01-11 11:15:03 End time : UTC 2016-01-11 11:15:14 Overall bit rate mode : Variable Overall bit rate : 23.2 Mbps Maximum Overall bit rate : 33.0 Mbps Encoded date : UTC 2016-01-11 11:15:03 Video ID : 2064 (0x810) Menu ID : 100 (0x64) Format : MPEG Video Commercial name : HDV 1080i Format version : Version 2 Format profile : Main@High 1440 Format settings, BVOP : Yes Format settings, Matrix : Default Format settings, GOP : M=3, N=15 Format settings, picture structure : Frame Codec ID : 2 Duration : 10s 544ms Bit rate : 21.7 Mbps Maximum bit rate : 25.0 Mbps Width : 1 440 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate : 29.970 (3/1001) fps Standard : Component Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Interlaced Scan order : Top Field First Compression mode
Re: [Cin] UPD: Re: DNxHR presets
I think you need to copy Andrew's presets to ".../bin/ffmpeg/video" after compilation. At least that's what I do. If you want to do it before compiling then you have to copy the presets to ".../ffmpeg/video", which is in the main directory, without entering "/bin". But I don't understand the code at all, sorry. In this way DNxHR.mov. are also displayed. To me only the 420 appears without other options. Since the 420 is not supported by DNxHR then the render fails. For Andrew it works fine. -- Cin mailing list Cin@lists.cinelerra-gg.org https://lists.cinelerra-gg.org/mailman/listinfo/cin
Re: [Cin] UPD: Re: DNxHR presets
On Wed, 11 Nov 2020 15:03:46 +0100, Andrea paz via Cin wrote: >> >> May be some pathes are too long? >> Where exactly you put those profile files? >> > >/home/paz/cinelerra5/cinelerra-5.1/bin/ffmpeg/video/DNxHR_444.mov > >about 70 characters. > >@MatN >can you try to put Andrew's presets in your CinGG to see if they work for you? >The path should be: > >/home/USER/cinelerra5/cinelerra-5.1/bin/ffmpeg/video/ I'm not sure what the exact procedure is. I did: - fresh pull from git. - "sudo ./bld.sh" to make sure it builds ok, then "sudo make clean" - move Andrew's .mov files in the cinelerra-5.1/bin/ffmpeg/video/ directory. - As sudo I did ./autogen.sh ./configure --with-single-user make 2>&1 | tee log make install - in the bin directory, /cin. load a jellyfish h264 mp4 file - Render menu, select file format ffmpeg.mov, then clicked the tool for video presets. There I see compression mov.mov, and for pixels only the option yuv420 . I guess I should see more pixel options? Or what? MatN -- Cin mailing list Cin@lists.cinelerra-gg.org https://lists.cinelerra-gg.org/mailman/listinfo/cin
Re: [Cin] actually, added few more formats to theme.C
В сообщении от Wednesday 11 November 2020 20:12:44 Terje J. Hanssen via Cin написал(а): > I will just add that the HDV format consist of three versions: > https://en.wikipedia.org/wiki/HDV#Specifications > > HDV 720p > 720p/60, 720p/30, 720p/24, 720p/50, 720p/25 but may be those can be already selected, just not as preset with HDV in name? > > HDV 1080i > 1080i/30 (29.97), 1080i/25 > > HDV 1080p > 1080p/30 (29.97), 1080p/24 (23.98), 1080p/25 Those seems to be more tricky, because I still not sure how they should show up in Compositor and Viewer. With correct-for-display aspect ratio? But then how masks/titles will work? > > > At the same time I will also suggest to consistently use lower case "i" > for all interlaced HDV and HD formats like that on the SD formats. > Attached screen shots from the Set_Format_Preset menue. ok > > > Terje J. H > > > > > Den 01.11.2020 19:35, skrev Pierre autourduglobe via Cin: > > Yes it's clear > > HDV 1080i "Top field first" > > and DV "Bottom field first" > > > > In my case I can verify this with my old HDV camera HVR-Z1U, which can > > record and transfer either in HDV or DV (ntsc). > > > > Here is what mediainfo says about the material shot: > > > > > > An example of HDV material > > > > General > > ID : 255 (0xFF) > > Complete name : exemple.m2t > > Format : MPEG-TS > > Commercial name : HDV 1080i > > File size : 30.2 MiB > > Duration : 10s 878ms > > Start time : UTC 2016-01-11 11:15:03 > > End time : UTC 2016-01-11 11:15:14 > > Overall bit rate mode : Variable > > Overall bit rate : 23.2 Mbps > > Maximum Overall bit rate : 33.0 Mbps > > Encoded date : UTC 2016-01-11 11:15:03 > > > > Video > > ID : 2064 (0x810) > > Menu ID : 100 (0x64) > > Format : MPEG Video > > Commercial name : HDV 1080i > > Format version : Version 2 > > Format profile : Main@High 1440 > > Format settings, BVOP : Yes > > Format settings, Matrix : Default > > Format settings, GOP : M=3, N=15 > > Format settings, picture structure : Frame > > Codec ID : 2 > > Duration : 10s 544ms > > Bit rate : 21.7 Mbps > > Maximum bit rate : 25.0 Mbps > > Width : 1 440 pixels > > Height : 1 080 pixels > > Display aspect ratio : 16:9 > > Frame rate : 29.970 (3/1001) fps > > Standard : Component > > Color space : YUV > > Chroma subsampling : 4:2:0 > > Bit depth : 8 bits > > Scan type : Interlaced > > Scan order : Top Field First > > Compression mode : Lossy > > Bits/(Pixel*Frame) : 0.466 > > Stream size : 27.3 MiB (90%) > > Color primaries : BT.709 > > Transfer characteristics : BT.709 > > Matrix coefficients : BT.709 > > > > Audio > > ID : 2068 (0x814) > > Menu ID : 100 (0x64) > > Format : MPEG Audio > > Format version : Version 1 > > Format profile : Layer 2 > > Codec ID : 3 > > Duration : 10s 584ms > > Bit rate mode : Constant > > Bit rate : 384 Kbps > > Channel(s) : 2 channels > > Sampling rate : 48.0 KHz > > Compression mode : Lossy > > Delay relative to video : -252ms > > Stream size : 496 KiB (2%) > > > > Menu > > ID : 129 (0x81) > > Menu ID : 100 (0x64) > > List : 2064 (0x810) (MPEG Video) / > > 2068 (0x814) (MPEG Audio) / 2069 (0x815) () / 2065 (0x811) () > > > > > > > > An example of DV material (ntsc) > > > > General > > Complete name : exemple.avi > > Format : AVI > > Format/Info
Re: [Cin] UPD: Re: DNxHR presets
В сообщении от Wednesday 11 November 2020 17:03:46 Andrea paz via Cin написал(а): > > > > May be some pathes are too long? > > Where exactly you put those profile files? > > > > /home/paz/cinelerra5/cinelerra-5.1/bin/ffmpeg/video/DNxHR_444.mov > > about 70 characters. Just compiled Cin with just one switch: ./configure --with-single-use it worked with some local hacks (/usr/X11R7 for X libs, disabling swscale integration in x264 snapshot) I can load my profile to /dev/shm/cinelerra/cinelerra-5.1$ ls bin/ffmpeg/video/ DNxHR_HQX.mov and it show up correctly and let me render. Does your build enable vdpau/vaapi? As far as I can see those options loaded in https://git.cinelerra-gg.org/git/?p=goodguy/cinelerra.git;a=blob;f=cinelerra-5.1/cinelerra/ffmpeg.C;h=97b6698acbb2ffc342f93049dbd54537d0a39235;hb=HEAD 2081 2082 void FFMPEG::scan_video_options(Asset *asset, EDL *edl) 2083 { 2084 char cin_pix_fmt[BCSTRLEN]; 2085 int cin_fmt = AV_PIX_FMT_NONE; 2086 const char *options = asset->ff_video_options; 2087 if( !get_ff_option("cin_pix_fmt", options, cin_pix_fmt) ) 2088 cin_fmt = (int)av_get_pix_fmt(cin_pix_fmt); 2089 if( cin_fmt < 0 ) { 2090 char video_codec[BCSTRLEN]; video_codec[0] = 0; 2091 AVCodec *av_codec = !get_codec(video_codec, "video", asset->vcodec) ? 2092 avcodec_find_encoder_by_name(video_codec) : 0; 2093 if( av_codec && av_codec->pix_fmts ) { 2094 if( 0 && edl ) { // frequently picks a bad answer 2095 int color_model = edl->session->color_model; 2096 int max_bits = BC_CModels::calculate_pixelsize(color_model) * 8; 2097 max_bits /= BC_CModels::components(color_model); 2098 cin_fmt = avcodec_find_best_pix_fmt_of_list(av_codec->pix_fmts, 2099 (BC_CModels::is_yuv(color_model) ? 2100 (max_bits > 8 ? AV_PIX_FMT_AYUV64LE : AV_PIX_FMT_YUV444P) : 2101 (max_bits > 8 ? AV_PIX_FMT_RGB48LE : AV_PIX_FMT_RGB24)), 0, 0); 2102 } 2103 else 2104 cin_fmt = av_codec->pix_fmts[0]; 2105 } 2106 } 2107 if( cin_fmt < 0 ) cin_fmt = AV_PIX_FMT_YUV420P; search for 'cin_pix_fmt' so for some reason it fails to find best format via avcodec_find_best_pix_fmt_of_list ? Also, I tried with default RGBA-8 colormodel . may be it fails with YUV/RGBA-float? no, seems to work too You can try and add printf("doing X \n"); in this function and see that branch it takes :} and also print out exact value of cin_fmt printf("cin_fmt= %i \n", cin_fmt); something like this ... > > @MatN > can you try to put Andrew's presets in your CinGG to see if they work for you? > The path should be: > > /home/USER/cinelerra5/cinelerra-5.1/bin/ffmpeg/video/ -- Cin mailing list Cin@lists.cinelerra-gg.org https://lists.cinelerra-gg.org/mailman/listinfo/cin
Re: [Cin] UPD: Re: DNxHR presets
> > May be some pathes are too long? > Where exactly you put those profile files? > /home/paz/cinelerra5/cinelerra-5.1/bin/ffmpeg/video/DNxHR_444.mov about 70 characters. @MatN can you try to put Andrew's presets in your CinGG to see if they work for you? The path should be: /home/USER/cinelerra5/cinelerra-5.1/bin/ffmpeg/video/ -- Cin mailing list Cin@lists.cinelerra-gg.org https://lists.cinelerra-gg.org/mailman/listinfo/cin
Re: [Cin] UPD: Re: DNxHR presets
В сообщении от Wednesday 11 November 2020 13:28:21 Andrea paz via Cin написал(а): > 1- I compiled from root, but the result doesn't change: your presets > don't work in my CinGG; it only offers the yuv420p option which, not > being supported, produces error. > > 2- I compiled from root with the ./build.sh provided by GG but the > result is the same as point 1- > > 3- I compiled with ffmpeg-git --> compile error yeah, I removed bigger patch (it basically adds fixes for blu-ray creation - I have no such device): mv thirdparty/src/ffmpeg.git.patch2 thirdparty/src/_ffmpeg.git.patch2 this way it really not picked up by build. > > The trouble is that I compile with the copy and paste, without knowing > what I do. > The steps I use are: > > $ git clone --depth 1 > "git://git.cinelerra-gg.org/goodguy/cinelerra.git" cinelerra5 > > $ cd /home/paz/cinelerra5/cinelerra-5.1 > > $ ./autogen.sh > > $ ./configure --without-oss --with-single-user --with-booby > --with-opencv=sta,tar=http://cinelerra-gg.org/download/opencv/opencv-20200306.tgz Most bigger difference is "--with-single-user", as far as I can see... I do system-build May be some pathes are too long? Where exactly you put those profile files? /home/paz/cinelerra5/cinelerra-5.1/bin something ? I'll try --single-user somemoment later. > > $ make 2>&1 | tee /tmp/cin5.log && make install > > All this without being Root. > > Do you think I'm wrong? Should I try your ./configure? (but most of > the strings I don't understand them!) -- Cin mailing list Cin@lists.cinelerra-gg.org https://lists.cinelerra-gg.org/mailman/listinfo/cin
Re: [Cin] UPD: Re: DNxHR presets
Hi Andrea, I always do "sudo ./bld.sh" in the cinelerra5.1 directory. And before a rebuild, "sudo make clean". I have not looked at what would be required to build it as normal user. MatN On Wed, 11 Nov 2020 11:28:21 +0100, Andrea paz via Cin wrote: >1- I compiled from root, but the result doesn't change: your presets >don't work in my CinGG; it only offers the yuv420p option which, not >being supported, produces error. > >2- I compiled from root with the ./build.sh provided by GG but the >result is the same as point 1- > >3- I compiled with ffmpeg-git --> compile error > >The trouble is that I compile with the copy and paste, without knowing >what I do. >The steps I use are: > >$ git clone --depth 1 >"git://git.cinelerra-gg.org/goodguy/cinelerra.git" cinelerra5 > >$ cd /home/paz/cinelerra5/cinelerra-5.1 > >$ ./autogen.sh > >$ ./configure --without-oss --with-single-user --with-booby >--with-opencv=sta,tar=http://cinelerra-gg.org/download/opencv/opencv-20200306.tgz > >$ make 2>&1 | tee /tmp/cin5.log && make install > >All this without being Root. > >Do you think I'm wrong? Should I try your ./configure? (but most of >the strings I don't understand them!) >-- >Cin mailing list >Cin@lists.cinelerra-gg.org >https://lists.cinelerra-gg.org/mailman/listinfo/cin > -- Cin mailing list Cin@lists.cinelerra-gg.org https://lists.cinelerra-gg.org/mailman/listinfo/cin
Re: [Cin] UPD: Re: DNxHR presets
1- I compiled from root, but the result doesn't change: your presets don't work in my CinGG; it only offers the yuv420p option which, not being supported, produces error. 2- I compiled from root with the ./build.sh provided by GG but the result is the same as point 1- 3- I compiled with ffmpeg-git --> compile error The trouble is that I compile with the copy and paste, without knowing what I do. The steps I use are: $ git clone --depth 1 "git://git.cinelerra-gg.org/goodguy/cinelerra.git" cinelerra5 $ cd /home/paz/cinelerra5/cinelerra-5.1 $ ./autogen.sh $ ./configure --without-oss --with-single-user --with-booby --with-opencv=sta,tar=http://cinelerra-gg.org/download/opencv/opencv-20200306.tgz $ make 2>&1 | tee /tmp/cin5.log && make install All this without being Root. Do you think I'm wrong? Should I try your ./configure? (but most of the strings I don't understand them!) -- Cin mailing list Cin@lists.cinelerra-gg.org https://lists.cinelerra-gg.org/mailman/listinfo/cin