Kdenlive no audio in MP4 output

Kdenlive no audio in MP4 output

Postby banjo » Nov 22nd, '15, 20:47

I am trying to format a video to upload to Youtube.

The camera I am using provides a .mov file, which I have imported and edited in kdenlive. The video from the camera is 640 x 480 format, which is high enough resolution for what I am doing. When kdenlive renders the edited video to a file, the choices it gives me for file formats are shown below.

Available formats displayed by kdenlive
Code: Select all
MP4
MPEG-2
Matroska
HDV
Raw DV


If I render to MPEG-2, it all works fine, video and audio. If I render to MP4, only the video works. I am not familiar with the other formats. The problem is that Youtube claims to accept only the MP4 format, not the MPEG format, so I need to somehow get this thing into MP4 format in order to upload it.

Here are the CODECs that are provided for the two formats and the results of using each one.

Code: Select all
CODECS for MP4
H.264/AAC High Profile - results in empty file
H.264/AAC (CBR) - results in empty file
MPEG-4/MP3 Advanced Simple Profile - renders video only
MPEG-4/MP3 (CBR) - renders video only


Code: Select all
CODECS for MPEG-2
MPEG-2 - works OK
MPEG-2 (CBR) - works OK


When I look at the exif info in the files, it looks like there is audio in the mpg, but no audio in the mp4 file.

I'm not sure what to do. Record it again in a different format and try again? Look for missing CODECs? Find a converter from mpg to mp4? Fix kdenlive to render audio into the mp4 file? So far, the Google and "trial and error" are not solving the problem. Many hours wasted.

Thanks to all.
Banjo

MPG exiftool output:

Code: Select all
ExifTool Version Number         : 9.70
File Name                       : CoonHuntWalkaround.mpg
Directory                       : .
File Size                       : 20 MB
File Modification Date/Time     : 2015:11:22 11:42:57-05:00
File Access Date/Time           : 2015:11:22 11:42:33-05:00
File Inode Change Date/Time     : 2015:11:22 11:42:57-05:00
File Permissions                : rw-rw-r--
File Type                       : MPEG
MIME Type                       : video/mpeg
Image Width                     : 640
Image Height                    : 480
Aspect Ratio                    : 0.6735
Frame Rate                      : 29.97 fps
Video Bitrate                   : Variable
MPEG Audio Version              : 1
Audio Layer                     : 2
Audio Bitrate                   : 256 kbps
Sample Rate                     : 48000
Channel Mode                    : Stereo
Mode Extension                  : Bands 4-31
Copyright Flag                  : False
Original Media                  : True
Emphasis                        : None
Image Size                      : 640x480


MP4 exiftool output.

Code: Select all
ExifTool Version Number         : 9.70
File Name                       : CoonHuntWalkaround.mp4
Directory                       : .
File Size                       : 7.6 MB
File Modification Date/Time     : 2015:11:22 12:28:47-05:00
File Access Date/Time           : 2015:11:22 11:30:27-05:00
File Inode Change Date/Time     : 2015:11:22 12:28:47-05:00
File Permissions                : rw-rw-r--
File Type                       : MP4
MIME Type                       : video/mp4
Major Brand                     : MP4  Base Media v1 [IS0 14496-12:2003]
Minor Version                   : 0.2.0
Compatible Brands               : isom, iso2, mp41
Movie Header Version            : 0
Create Date                     : 0000:00:00 00:00:00
Modify Date                     : 0000:00:00 00:00:00
Time Scale                      : 1000
Duration                        : 0:01:14
Preferred Rate                  : 1
Preferred Volume                : 100.00%
Preview Time                    : 0 s
Preview Duration                : 0 s
Poster Time                     : 0 s
Selection Time                  : 0 s
Selection Duration              : 0 s
Current Time                    : 0 s
Next Track ID                   : 2
Track Header Version            : 0
Track Create Date               : 0000:00:00 00:00:00
Track Modify Date               : 0000:00:00 00:00:00
Track ID                        : 1
Track Duration                  : 0:01:14
Track Layer                     : 0
Track Volume                    : 0.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Image Width                     : 640
Image Height                    : 480
Media Header Version            : 0
Media Create Date               : 0000:00:00 00:00:00
Media Modify Date               : 0000:00:00 00:00:00
Media Time Scale                : 30000
Media Duration                  : 0:01:14
Media Language Code             : und
Handler Description             : VideoHandler
Graphics Mode                   : srcCopy
Op Color                        : 0 0 0
Compressor ID                   : mp4v
Source Image Width              : 640
Source Image Height             : 480
X Resolution                    : 72
Y Resolution                    : 72
Bit Depth                       : 24
Video Frame Rate                : 29.97
Handler Type                    : Metadata
Handler Vendor ID               : Apple
Encoder                         : Lavf56.4.101
Movie Data Size                 : 7951031
Movie Data Offset               : 22448
Avg Bitrate                     : 858 kbps
Image Size                      : 640x480
Rotation                        : 0
Last edited by banjo on Nov 23rd, '15, 04:39, edited 1 time in total.
If only the best bird sang, the forest would be a very quiet place.
User avatar
banjo
 
Posts: 445
Joined: May 4th, '11, 03:50
Location: Reading, Massachusetts

Re: Kdenlive no audiio in MP4 output

Postby doktor5000 » Nov 22nd, '15, 21:27

Please show the output of
Code: Select all
urpmq --list-media active --list-url
rpm -qa | sort | grep -iE "aa[c,d]"
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Kdenlive no audiio in MP4 output

Postby banjo » Nov 23rd, '15, 04:30

Here it is:

Code: Select all
urpmq --list-media active --list-url
Core Release2 http://mageia.jameswhitby.net/mageia/distrib/5/x86_64/media/core/release
Core Updates http://mageia.jameswhitby.net/mageia/distrib/5/x86_64/media/core/updates
Nonfree Release2 http://mageia.jameswhitby.net/mageia/distrib/5/x86_64/media/nonfree/release
Nonfree Updates http://mageia.jameswhitby.net/mageia/distrib/5/x86_64/media/nonfree/updates
Tainted Release http://mageia.jameswhitby.net/mageia/distrib/5/x86_64/media/tainted/release
Tainted Updates http://mageia.jameswhitby.net/mageia/distrib/5/x86_64/media/tainted/updates
Core 32bit Release http://mageia.jameswhitby.net/mageia/distrib/5/i586/media/core/release
Core 32bit Updates http://mageia.jameswhitby.net/mageia/distrib/5/i586/media/core/updates
Nonfree 32bit Release http://mageia.jameswhitby.net/mageia/distrib/5/i586/media/nonfree/release
Nonfree 32bit Updates http://mageia.jameswhitby.net/mageia/distrib/5/i586/media/nonfree/updates
google-chrome http://dl.google.com/linux/chrome/rpm/stable/x86_64


Code: Select all
rpm -qa | sort | grep -iE "aa[c,d]"
lib64faad2-2.7-9.mga5.tainted
If only the best bird sang, the forest would be a very quiet place.
User avatar
banjo
 
Posts: 445
Joined: May 4th, '11, 03:50
Location: Reading, Massachusetts

Re: Kdenlive no audio in MP4 output

Postby benmc » Nov 23rd, '15, 05:38

Hi Banjo
banjo wrote:Find a converter from mpg to mp4?

VLC- if you have it, is able to perform this function.

regards
benmc
 
Posts: 1175
Joined: Sep 2nd, '11, 12:45
Location: Pirongia, New Zealand

Re: Kdenlive no audio in MP4 output

Postby banjo » Nov 23rd, '15, 15:00

I have VLC installed, but I thought that it was just a player. I did not know that it will do conversions.

I am not at my Linux computer right now, but I will look tonight to see what is there.

Thanks,
Banjo
(_)=='=~
If only the best bird sang, the forest would be a very quiet place.
User avatar
banjo
 
Posts: 445
Joined: May 4th, '11, 03:50
Location: Reading, Massachusetts

Re: Kdenlive no audio in MP4 output

Postby doktor5000 » Nov 23rd, '15, 17:55

vlc is not only a player, but it can do streaming, conversion and quite some more.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Kdenlive no audio in MP4 output

Postby banjo » Nov 24th, '15, 02:31

I am back at my Linux computer, and I just tried the VLC conversion.

I ended up with a mp4 file that works fine in VLC and Dragon Player, but when I play it with Xine it glitches and flashes and fairly well locks up the computer. :shock:

I have not tried to boost it to Youtube yet, so I don't know if it will work there or not. If it works on Youtube then I am good to go because that is the goal of all this. Not sure what is going on with Xine.

I did notice a strangeness in the size of the files though. The .mpg file is 25.3 MiB and the .mp4 file is 4.7 MiB. That is quite a bit of a compression from the original. I cannot see any difference in the quality even at full screen. Of course, since it was shot at 640 x 480 the quality is pretty bad anyway.

Thanks to all for the help.
I will post the results if/when I get the vid uploaded to Youtube.
Banjo
(_)=='=~
If only the best bird sang, the forest would be a very quiet place.
User avatar
banjo
 
Posts: 445
Joined: May 4th, '11, 03:50
Location: Reading, Massachusetts

Re: Kdenlive no audio in MP4 output

Postby doktor5000 » Nov 24th, '15, 18:14

Well, that's the point of newer compression formats, original mpeg and mpeg-2 don't offer that much video compression at all.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Video

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron