View previous topic :: View next topic |
Author |
Message |
destroyedlolo l33t
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Sun Dec 16, 2012 6:42 pm Post subject: Cinerella destroys audio track. |
|
|
Hello,
I'm trying to edit some video took with my Olympus Tough camera :
Code: | General
Complete name : PC080464.MP4
Format : MPEG-4
Format profile : Sony PSP
Codec ID : MSNV
File size : 11.3 MiB
Duration : 16s 267ms
Overall bit rate : 5 824 Kbps
Encoded date : UTC 2012-12-08 11:05:37
Tagged date : UTC 2012-12-08 11:05:37
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L3.1
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Format settings, GOP : M=1, N=8
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 16s 267ms
Bit rate mode : Variable
Bit rate : 5 659 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 30.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.205
Stream size : 11.0 MiB (97%)
Language : Japanese
Encoded date : UTC 2012-12-08 11:05:37
Tagged date : UTC 2012-12-08 11:05:37
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 16s 254ms
Bit rate mode : Constant
Bit rate : 72.0 Kbps
Channel(s) : 1 channel
Channel positions : Front: C
Sampling rate : 44.1 KHz
Compression mode : Lossy
Delay relative to video : -11ms
Stream size : 143 KiB (1%)
Language : Japanese
Encoded date : UTC 2012-12-08 11:05:37
Tagged date : UTC 2012-12-08 11:05:37
|
I'm using Cinelerra 2.2CV, but when I'm porting this video, the sound is totally corrupted.
Cinerella identifies it as :
Code: |
MPeg4 / 1 channel / 44100 / 16b linear / Hi-Lo / Signed ...
|
The same file is perfectly loaded and played by Audacity
Any clue ? |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
destroyedlolo l33t
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Sun Dec 16, 2012 9:22 pm Post subject: |
|
|
Hello,
What I mean is if I open the file in Cinelerra, the sound is full of distortions but if I open the original file (camera's MP4) in Audacity, the sound is clean.
In other words, the Cinerella import is bad. |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
destroyedlolo l33t
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Mon Dec 17, 2012 12:04 am Post subject: |
|
|
Sure.
Quote: | dual ~ # emerge --info
Portage 2.1.11.31 (default/linux/x86/10.0/desktop, gcc-4.5.4, glibc-2.15-r3, 3.5.7-gentoo i686)
=================================================================
System uname: Linux-3.5.7-gentoo-i686-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Sun, 16 Dec 2012 17:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
distcc 3.1 i686-pc-linux-gnu [enabled]
app-shells/bash: 4.2_p37
dev-lang/python: 2.7.3-r2, 3.2.3
dev-util/cmake: 2.8.9
dev-util/pkgconfig: 0.27.1
sys-apps/baselayout: 2.1-r1
sys-apps/openrc: 0.11.8
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.13, 2.68
sys-devel/automake: 1.11.6
sys-devel/binutils: 2.22-r1
sys-devel/gcc: 4.5.4
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc: 2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.3"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles getbinpkg merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7 -l3.0"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://celeron.chez.moi/gentoo-portage"
USE="X a52 aac acl acpi alsa amr apng archive avahi bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups curl cxx dbus device-mapper dga dri dts dv dvd dvdr emboss encode exif faac fam fbcon ffmpeg firefox flac fontconfig fuse gd gdbm gif gimp gphoto2 gpm gtk gvfs hddtemp iconv ieee1394 imlib jpeg jpeg2k lcms ldap libcaca libnotify lm_sensors lxde mad matroska mmx mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nsplugin ogg oggvorbis opengl openmp pam pango pcre pdf png policykit postgres ppds pppd python qt3support qt4 readline sdl session speex spell sqlite sse sse2 sse4 ssl ssse3 svg syslog tcpd theora threads tiff truetype udev udisks unicode upower usb vorbis win32codecs wxwidgets x264 x86 xcb xinerama xml xosd xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_file authz_default authz_groupfile authz_host authz_user autoindex cgi dav dav_fs dav_lock deflate dir env filter info log_config mime negotiation setenvif status unique_id userdir" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2 canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr en" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="snapscan" USERLAND="GNU" VIDEO_CARDS="fglrx intel mga sis r128 vesa fbdev radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
|
Quote: |
Calculating dependencies... done!
[ebuild R ] media-video/cinelerra-20120707 USE="alsa ieee1394 mmx opengl -3dnow (-altivec) -css -oss" 0 kB
Total: 1 package (1 reinstall), Size of downloads: 0 kB
|
Notez-bien : I've install a binhost on my network with
Quote: | CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" |
but, as Cinelerra is only installed on this particular machine, it is compiled locally. |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
destroyedlolo l33t
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Mon Dec 17, 2012 7:20 pm Post subject: |
|
|
The video is available here :
http://dl.free.fr/fWVQZwBAC
Nothing special : only my daughter enjoying the snow |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
Posted: Mon Dec 17, 2012 8:23 pm Post subject: |
|
|
Wow. This is not good. It sounds distorted and burbly - like you're making the finger-on-lips blubbering gesture for "crazy". I tried a bunch of different settings but nothing made a difference. The file itself is OK, since the audio plays normally in OpenShot and Audacity.
I wonder if there's a bug in Cinelerra's handling of MP4 audio, or perhaps some setting neither of us knows about. I'll see if I can get a hold of someone who works on it for more input.
In the meantime, you should try converting the file to another format - that doesn't have any issues in Cinelerra - using a tool such as ffmpeg.
EDIT:
Got on #cinelerra and found out that Cinelerra's MPEG support is not that good, but in any case, one should convert to another format for the purpose of editing in Cinelerra, since mpeg4 is apparently not friendly to non-linear editing anyway. Formats suggested were MJPEG and wav.
EDIT EDIT:
Finally learned there are two branches: CV and HV. Seems like the only branch in Portage is CV. Since there are apparently things in each the other does not have, I might look into making an ebuild for HV. _________________ decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN |
|
Back to top |
|
|
destroyedlolo l33t
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Mon Dec 17, 2012 9:30 pm Post subject: |
|
|
audiodef wrote: | In the meantime, you should try converting the file to another format - that doesn't have any issues in Cinelerra - using a tool such as ffmpeg. |
Yes, I'm on way to do it ...
But I found another problem during my primary tests : I don't find a way to do a correct HD x264 export
- QuickTime can't be played by VLC or even read by Avidemux
- AVI suffer for bad color if I add a text overlay.
I'm trying to advocate for open source solutions, but ... It is really very disappointing |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
destroyedlolo l33t
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Tue Dec 18, 2012 2:51 pm Post subject: |
|
|
I will ... and share the response here |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
destroyedlolo l33t
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Fri Dec 21, 2012 12:26 am Post subject: |
|
|
So if everything is easy w/ SD video, it's a real mess as soon as we're dealing with HD
So the only workable solution found is :
- generate intermediate YUV4MPEG files for the video (caution, can be VERY large), then 2 passes x264 encoding using ffmpeg.
- Cinelerra doesn't like at all the sound track generated by my camera even being re-encoded using AVIDemux. I have to generate a separate MP3 file that I include as a separate resource in Cinelerra.
- Sound track can't be generated with YUV4MPEG export : it has to be rendered separately.
So, ok, I succeeded because I like the power of Cinelerra in object manipulation ... but the full thing is all but "Dummy" compliant |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
destroyedlolo l33t
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Wed Dec 26, 2012 5:12 pm Post subject: |
|
|
I tested only CV version (the one packaged).
I have to edit various videos and then afterward I'll have a try with the other version.
Do you know a document highlighting differences b/w both version ? |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
|