Not a blind bit of notice seems to have been taken of this bug report,
which was just as well, because it is mistaken in a couple of respects.
In particular, there is nothing wrong with MP4Box or OGMrip (which, for
some of its functions, depends on MP4Box) in Precise. I got an odd
result, in the latter, because of the chapters-file I used. It wasn't
the non-displaying characters: when i prepared the same file in Precise,
with the same characters, MP4Box handled it fine; it was (I think) the
fact that i had prepped the earlier chapters-file in Windows, and the
line-endings, carriage-returns, blah, blah, blah were wrong.

OK, nothing wrong with Precise, then; but MP4Box in Raring is definitely
up the creek, at least when it comes to importing chapters. Tried
another experiment. This time with a short clip, and a very simple,
plain English chapters file. Without the chapters file, MP4Box works
fine:

azed@azed-N110:~/Videos/Alcina$ MP4Box -new -nodrop -brand mp42 -itags 
name="Alcina Chapters 13 and 14" -add AlcinaCh13and14.mp4#video -add 
AlcinaCh13and14.mp4#audio:fmt=aac:lang=ita:group=1 ../AlcinaCh13and14.mp4 
IsoMedia import AlcinaCh13and14.mp4 - track ID 1 - Video (size 720 x 400) 
IsoMedia import AlcinaCh13and14.mp4 - track ID 2 - Audio (SR 48000 - 2 
channels) 
Saving ../AlcinaCh13and14.mp4: 0.500 secs Interleaving    
azed@azed-N110:~/Videos/Alcina$

But when we add a chapters-file:

azed@azed-N110:~/Videos/Alcina$ MP4Box -nodrop -brand mp42 -itags name="Alcina 
Chapters 13 and 14" -add AlcinaCh13and14.mp4#video -add 
AlcinaCh13and14.mp4#audio:fmt=aac:lang=ita:group=1 -chap AlcinaCh13and14.txt 
../AlcinaCh13and14.mp4 
IsoMedia import AlcinaCh13and14.mp4 - track ID 1 - Video (size 720 x 400) 
IsoMedia import AlcinaCh13and14.mp4 - track ID 2 - Audio (SR 48000 - 2 
channels) 
[Chapter import] Guessed video frame rate 29.97 (30000:1001) 
Segmentation fault (core dumped) 
azed@azed-N110:

Note the penultimate line, above. The Raring-system (a clean install on
a Samsung N110, by the way) also puts up a crash report.

And, as noted, earlier, in my previous post: because MP4Box doesn't work
properly, OGMrip doesn't work properly either. But there is a work-
around for OGMrip (assuming you don't want to install handbrake): just
encode the source to an x264+aac+mkv-file; i.e., switch the muxer to
MKV, then re-mux the finished file to mp4 (if desired) with ffmpeg.
Tried this with a short 30s encode, prepared by OGMrip in my Raring-
system:

azed@azed-N110:~/Videos/Alcina$ ffmpeg -i AlcinaAct3Sc8and9.mkv -acodec copy 
-vcodec copy AlcinaAct3Sc8and9.mp4 
ffmpeg version 0.8.6-6:0.8.6-1ubuntu2, Copyright (c) 2000-2013 the Libav 
developers 
built on Mar 30 2013 22:23:21 with gcc 4.7.2 
*** THIS PROGRAM IS DEPRECATED *** 
This program is only provided for compatibility and will be removed in a future 
release. Please use avconv instead. 
[matroska,webm @ 0x919aa20] Estimating duration from bitrate, this may be 
inaccurate 
Input #0, matroska,webm, from 'AlcinaAct3Sc8and9.mkv': 
Metadata: 
title           : AlcinaAct3Sc8and9 
Duration: 00:00:34.56, start: 0.000000, bitrate: N/A 
Chapter #0.0: start 0.000000, end 21.132000 
Metadata: 
title           : Chapter 12 
Chapter #0.1: start 21.132000, end 34.563000 
Metadata: 
title           : Chapter 13 
Stream #0.0: Video: h264 (High), yuv420p, 720x400 [PAR 100:101 DAR 180:101], 
29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc (default) 
Stream #0.1: Audio: aac, 48000 Hz, stereo, s16 (default) 
Output #0, mp4, to 'AlcninAct3Sc8and9.mp4': 
Metadata: 
title           : AlcinaAct3Sc8and9 
encoder         : Lavf53.21.1 
Chapter #0.0: start 0.000000, end 21.132000 
Metadata: 
title           : Chapter 12 
Chapter #0.1: start 21.132000, end 34.563000 
Metadata:
title           : Chapter 13 
Stream #0.0: Video: libx264, yuv420p, 720x400 [PAR 100:101 DAR 180:101], 
q=2-31, 30k tbn, 29.97 tbc (default) 
Stream #0.1: Audio: libvo_aacenc, 48000 Hz, stereo (default) 
Stream mapping: 
Stream #0.0 -> #0.0 
Stream #0.1 -> #0.1 
Press ctrl-c to stop encoding 
frame= 1005 fps=  0 q=-1.0 Lsize=    4966kB time=33.47 bitrate=1215.5kbits/s    
video:4122kB audio:805kB global headers:0kB muxing overhead 0.785415% 
azed@azed-N110:~/Videos/Alcina$

Back to me. Given the simplicity of the original command, ffmpeg did a
very good job; as shown in the terminal o/p above, it even copied the
chapters-metadata accurately. Only one snag: it clipped-off a second of
the original video at the end, leaving the audio to run on. Other than
that, the finished mp4 played extremely well.

Sorry to carp-on about this. The Raring Ringtail is actually the
strongest Ubuntu release for some time - especially on the audio-viual
front. Congrats to all concerned.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1176596

Title:
  MP4Box crashes in Precise and Raring when importing chapters text-file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gpac/+bug/1176596/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to