Hi all, my problem is solved now. See my findings below. I fixed the sound by running this command: ffmpeg -i DSCN0798.MOV -b 45M -s 1920x1080 -vcodec dnxhd -acodec libfaac -ab 127K Video1.MOV
By the way: During my analysis I noticed that the ffmpeg command is being substituted by the avconv commad, it seems the arguments I used to ffmpeg are compatible to avconv. The important command arguments are "-acodec libfaac -ab 127K". Without the "-ab 127K" the converting stopped after 1 sec and gave the errors "[libfaac @ 0x971fd60] libfaac doesn't support this output format!" and "Error while opening encoder for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height". I chose the "127K" bit rate because I saw the same rate in the original video file. You can see the details of a video file by applying just the "-i <input file>" to avconv, like on the following lines: avconv -i DSCN0798.MOV avconv version 0.8.3-4:0.8.3-0ubuntu0.12.04.1+codecs1, Copyright (c) 2000-2012 the Libav developers built on Jun 19 2012 13:18:58 with gcc 4.6.3 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'DSCN0798.MOV': Metadata: major_brand : qt minor_version : 537331968 compatible_brands: qt niko creation_time : 2012-09-12 18:31:20 Duration: 00:00:48.04, start: 0.000000, bitrate: 14507 kb/s Stream #0.0(eng): Video: h264 (Constrained Baseline), yuvj420p, 1920x1080 [PAR 1:1 DAR 16:9], 14213 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc Metadata: creation_time : 2012-09-12 18:31:20 Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 127 kb/s Metadata: creation_time : 2012-09-12 18:31:20 At least one output file must be specified In above line "Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 127 kb/s" you can see the bit rate of "127 kb/s". I had played with some encoders I found capable of encoding audio like "mp3" and "mp3ac" but, surprisingly, they were not known to ffmpeg/avconv although the appear in the list of support codecs. You can see the codecs in the output of "avconv -codecs". Sound is working now in cinelerra and I will start editing my videos in the next days. Thanks very much to all who helped. Andre -------- Original-Nachricht -------- Datum: Tue, 25 Sep 2012 15:18:01 +0200 Von: user...@gmx.net An: eina...@smail.ee, cinelerra@skolelinux.no Betreff: Fwd: Re: [CinCV] CinCV 2.2: No sound in playback Hello, I converted the original 30fps video with this command: ffmpeg -i DSCN0798.MOV -b 45M -s 1920x1080 -vcodec dnxhd -acodec pcm_s16le Video1.MOV The file size grew from 86 MB to 280 MB. I can load it into cinelerra but when I play it back there still is no sound and after 8-10 secs cinelerra crashes. The qtinfo command applied to the new video shows the following output. qtinfo Video1.MOV Type: Quicktime 1 audio tracks. 2 channels, 16 bits, sample rate 48000, length 2306048 samples, compressor lpcm. Sample format: 16 bit signed. Channel setup: Not available Language: eng supported. 1 video tracks. 1920x1080, depth 24 rate 29.970030 [30000:1001] constant length 1440 frames compressor AVdn. Native colormodel: YUV 4:2:2 planar Interlace mode: None (Progressive) No timecodes available supported. 0 text tracks. I restarted cinelerra from the command line ( I used a desktop icon of the Unity desktop to start it before ) to check for hints to the problem: Here is a sample: Cinelerra 2.2CV (C) 2006 Heroine Virtual Ltd. (C) 2006-2011 The CinelerraCV Community Internal ffmpeg Compiled on Wed Mar 7 20:48:46 UTC 2012 Cinelerra is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. There is absolutely no warranty for Cinelerra. [h264 @ 0xb721a460]AVC: Consumed only 25 bytes instead of 28 [h264 @ 0xb721a460]brainfart cropping not supported, this could look slightly wrong ... [h264 @ 0xb721a460]AVC: Consumed only 264269 bytes instead of 264276 [h264 @ 0xb721a460]AVC: Consumed only 25 bytes instead of 28 [h264 @ 0xb721a460]brainfart cropping not supported, this could look slightly wrong ... [h264 @ 0xb721a460]AVC: Consumed only 205742 bytes instead of 205748 .... [h264 @ 0xb721a460]AVC: Consumed only 41102 bytes instead of 41108 [h264 @ 0xb721a460]AVC: Consumed only 71744 bytes instead of 71748 AudioALSA::write_buffer underrun at sample 88726 [h264 @ 0xb721a460]AVC: Consumed only 83600 bytes instead of 83604 [h264 @ 0xb721a460]AVC: Consumed only 25 bytes instead of 28 [h264 @ 0xb721a460]brainfart cropping not supported, this could look slightly wrong ... [h264 @ 0xb721a460]AVC: Consumed only 192905 bytes instead of 192908 Above line starting with "AudioALSA" looks bad to me. Does it worry somebody else, too? I then tried another video I had created with a different camera, it is in AVI format with these details: qtinfo SN850545.AVI Type: AVI 1 audio tracks. 1 channels, 8 bits, sample rate 11025, length 885560 samples, wav_id 0x07. Sample format: 16 bit signed. Channel setup: Not available Language: eng supported. 1 video tracks. 640x480, depth 24 rate 30.000300 [1000000:33333] not constant length 2401 frames compressor MJPG. Native colormodel: YUV 4:2:2 planar (jpeg) Interlace mode: None (Progressive) No timecodes available supported. 0 text tracks. This video play back fine in cinelerra, including sound! So I must assume the coding of the video I tried first is problematic. I hope to be able to convert it into something useful for cinelerra. We will see. I will keep you informed of the progress. Andre -------- Original-Nachricht -------- Datum: Tue, 25 Sep 2012 14:12:02 +0200 Von: user...@gmx.net An: "Einar Rünkaru" <eina...@smail.ee>, cinelerra@skolelinux.no Betreff: Re: [CinCV] CinCV 2.2: No sound in playback Einar, my Alsa device in Cinelerra playback preferences is called "default". When I drop down the list of devices I also see "HDA Intel #0" and "HDA Intel #1". The syslog entries I posted on IRC seem to refer to another problem. My $HOME is below /home ( "echo $HOME" = "/home/andre" ). I am trying to play videos in cinelerra which I created with my camera, they are 1920x1080. Here is the output of "qtinfo DSCN0798.MOV" Type: Quicktime 1 audio tracks. 2 channels, 16 bits, sample rate 48000, length 2306048 samples, compressor mp4a. Sample format: Floating point. Channel setup: Front Left, Front Right Language: eng supported. 1 video tracks. 1920x1080, depth 24 rate 29.970030 [30000:1001] constant length 1440 frames compressor avc1. Native colormodel: YUV 4:2:0 planar (jpeg) Interlace mode: None (Progressive) No timecodes available supported. 0 text tracks. I will try to convert them following the information at http://www.g-raffa.eu/Cinelerra/HOWTO/get_media_ready.html and will post the results here. Thanks. Andre -------- Original-Nachricht -------- > Datum: Tue, 25 Sep 2012 13:19:30 +0300 > Von: "Einar Rünkaru" <eina...@smail.ee> > An: cinelerra@skolelinux.no, user...@gmx.net > Betreff: Re: [CinCV] CinCV 2.2: No sound in playback > On Tue, Sep 25, 2012 at 10:57 AM, <user...@gmx.net> wrote: > > Hi Einar, > > yes, it is the same problem as at http://irclog.cinelerra.org/2012/9/23 > at 18:30. > > I had tried to get help on that day via IRC. > > > > Here is the output of "aplay -l" > > **** List of PLAYBACK Hardware Devices **** > > card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog] > > Subdevices: 1/1 > > Subdevice #0: subdevice #0 > > card 0: Intel [HDA Intel], device 1: STAC92xx Digital [STAC92xx Digital] > > Subdevices: 1/1 > > Subdevice #0: subdevice #0 > > > ok - seems normal > > You did not answer the question: > >> What is the Alsa device in Cinelerra playback preferences? > > According to irclog you have a problem with your home directory: > <DellA> also this : pulseaudio[1618]: [pulseaudio] authkey.c: Failed > to load authorization key '/etc/timidity/.pulse-cookie': No such file > or directory > 18:45:04 <DellA> and this: pulseaudio[1618]: [autospawn] core-util.c: > Home directory /etc/timidity not ours. > > Something points to wrong place. Home directory should not be in /etc, > normally it is under /home > > What is the output of 'echo $HOME' ? The pointer to home should be > fixed first of all. > > Next queston: what type of file you try to play with cinelerra? > Cinelerra decoding may silently fail - symptoms: black video, silence > in audio. Decoding may fail independently (video is decoded audio > not). Look at http://www.g-raffa.eu/Cinelerra/HOWTO/get_media_ready.html > Standard PAL DV or VOB should work. > > Einar