No video on exported image movie as h2.64

Bug #457732 reported by Vadim Peretokin
40
This bug affects 7 people
Affects Status Importance Assigned to Milestone
OpenShot Video Editor
Confirmed
Undecided
Unassigned

Bug Description

I imported a bunch of images as a sequence, added a title one and an audio track. I tried exporting to mp4 h.264 and youtubehd but I always get audio without the video.

Here's how my project looks like, seems everything is fine with it:

http://www.ubuntu-pics.de/bild/28163/screenshot_05_tCLAYY.png
http://www.ubuntu-pics.de/bild/28162/screenshot_02_efdM2f.png

and the preview function does work as I'd expect it to be.

it worked fine with ogg for whatever reason.

Revision history for this message
Jonathan Thomas (jonoomph) wrote : Re: [Openshot.developers] [Bug 457732] [NEW] No video on exported image movie as h2.64

I would guess that you are having trouble with the x264 package. How did
you install OpenShot? If you didn't try the .DEB installers, you might want
to give that a try. Do other video formats work?

Thanks,
-Jonathan

On Wed, Oct 21, 2009 at 6:39 PM, Vadim Peretokin <email address hidden>wrote:

> Public bug reported:
>
> I imported a bunch of images as a sequence, added a title one and an
> audio track. I tried exporting to mp4 h.264 and youtubehd but I always
> get audio without the video.
>
> Here's how my project looks like, seems everything is fine with it:
>
> http://www.ubuntu-pics.de/bild/28163/screenshot_05_tCLAYY.png
> http://www.ubuntu-pics.de/bild/28162/screenshot_02_efdM2f.png
>
> and the preview function does work as I'd expect it to be.
>
> it worked fine with ogg for whatever reason.
>
> ** Affects: openshot
> Importance: Undecided
> Status: New
>
> --
> No video on exported image movie as h2.64
> https://bugs.launchpad.net/bugs/457732
> You received this bug notification because you are a member of OpenShot
> Developers, which is subscribed to OpenShot Video Editor.
>
> Status in OpenShot Video Editor: New
>
> Bug description:
> I imported a bunch of images as a sequence, added a title one and an audio
> track. I tried exporting to mp4 h.264 and youtubehd but I always get audio
> without the video.
>
> Here's how my project looks like, seems everything is fine with it:
>
> http://www.ubuntu-pics.de/bild/28163/screenshot_05_tCLAYY.png
> http://www.ubuntu-pics.de/bild/28162/screenshot_02_efdM2f.png
>
> and the preview function does work as I'd expect it to be.
>
> it worked fine with ogg for whatever reason.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openshot.developers<https://launchpad.net/%7Eopenshot.developers>
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~openshot.developers<https://launchpad.net/%7Eopenshot.developers>
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Vadim Peretokin (vperetokin) wrote :

I installed from the PPA at first, but as you remember everything was going
wrong - so for this update, I installed all the stuff from the .debs.
ogg is working fine for exporting. mov/mpeg4 worked too.

Revision history for this message
GMaq (info-bandshed) wrote :

Hello,

I am also experiencing this bug. libx264 is present on the system and renders correctly from WinFF and also using ffmpeg from CLI. H.264 exported from Openshot in .ipod, .m4v and .mp4 containers will display without video or the player will complain about unknown streams or missing decoders even when other H.264 files from WinFF playback OK (decoders are present on the system). Players used were Xine, Totem GStreamer and MPlayer all with the same result. Other export formats are working fine including libxvid in .mp4. This seems to affect libx264 only.

Using Openshot 0.9.52 running on AV Linux (Debian Testing) with a customized mlt 0.4.6 and Debian-multimedia ffmpeg and libx264 -76. Everything other than H.264 export is working fabulously!

Revision history for this message
Vadim Peretokin (vperetokin) wrote : Re: [Bug 457732] Re: No video on exported image movie as h2.64

Yeah, the "x264" binary itself does export properly, should add to that. So
we have the same symptoms.

Revision history for this message
GMaq (info-bandshed) wrote :

Well that's two of us!

I should also mention that I installed the openshot-x264 deb package just for kicks and the problem remains the same, which rules out the openshot-x264 package as a solution. I've looked into the export presets .xml files and I don't see anything out of whack there.

Speaking of XML I developed most of the presets for the WinFF project and I don't mean to sound biased but they have potential for much better quality output and in some cases deal better with interlacing, bitrates and HQ switches within ffmpeg. There are also presets already existing for pretty much every device and A/V scenario. If Openshot could import WinFF presets or even allow for further customizing of ffmpeg options in the export advanced dialog it would make for finer tuning and significant quality increases specifically with H.264 since so many portable devices use it (PSP's etc).

Anyway just a thought,

Revision history for this message
centralpark (sjhgaffney) wrote :

This bug affects my ability to convert my avchd files into an mp4 using the x264 package. When i convert the video it has audio but no video. I am using a fresh install of Ubuntu 9.04 64bit.

Revision history for this message
Jonathan Thomas (jonoomph) wrote : Re: [Openshot.developers] [Bug 457732] Re: No video on exported image movie as h2.64

I think it would be great if we could import WinFF presets! I just haven't
had time to do that yet. =) I'm not sure how to resolve the x264 problems.
It's almost certainly related to x264 or FFmpeg, which some versions leave
out x264 support. If you can use "$ ffmpeg" to convert to h.264 codec, I
would be surprised. I'm not sure the exact syntax, but give that a try, and
let's see what happens. Good luck.

Thanks,
-Jonathan

On Tue, Oct 27, 2009 at 9:57 PM, centralpark <email address hidden> wrote:

> This bug affects my ability to convert my avchd files into an mp4 using
> the x264 package. When i convert the video it has audio but no video.
> I am using a fresh install of Ubuntu 9.04 64bit.
>
> --
> No video on exported image movie as h2.64
> https://bugs.launchpad.net/bugs/457732
> You received this bug notification because you are a member of OpenShot
> Developers, which is subscribed to OpenShot Video Editor.
>
> Status in OpenShot Video Editor: New
>
> Bug description:
> I imported a bunch of images as a sequence, added a title one and an audio
> track. I tried exporting to mp4 h.264 and youtubehd but I always get audio
> without the video.
>
> Here's how my project looks like, seems everything is fine with it:
>
> http://www.ubuntu-pics.de/bild/28163/screenshot_05_tCLAYY.png
> http://www.ubuntu-pics.de/bild/28162/screenshot_02_efdM2f.png
>
> and the preview function does work as I'd expect it to be.
>
> it worked fine with ogg for whatever reason.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openshot.developers<https://launchpad.net/%7Eopenshot.developers>
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~openshot.developers<https://launchpad.net/%7Eopenshot.developers>
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
GMaq (info-bandshed) wrote :
Download full text (4.7 KiB)

OK,

I can't speak for the other subscribers but here is the license from my build which clearly contains libx264:

tester@av3mobile:~$ ffmpeg -L
FFmpeg version SVN-r20130, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  built on Oct 1 2009 23:02:32 with gcc 4.3.4
  configuration: --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libtheora --enable-libdc1394 --enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger --disable-encoder=libschroedinger --enable-avfilter-lavf --enable-libopenjpeg --enable-version3 --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
  libavutil 50. 3. 0 / 50. 3. 0
  libavcodec 52.36. 0 / 52.37. 0
  libavformat 52.39. 0 / 52.39. 0
  libavdevice 52. 2. 0 / 52. 2. 0
  libavfilter 0. 5. 0 / 0. 5. 0
  libswscale 0. 7. 1 / 0. 7. 1
  libpostproc 51. 2. 0 / 51. 2. 0
This version of FFmpeg has nonfree parts compiled in.
Therefore it is not legally redistributable.
tester@av3mobile:~$

Also here is the output of ffmpeg running a successful x264 conversion from an iPod WinFF preset:

tester@av3mobile:~$ ffmpeg -i /mnt/DATA/Videos/test.flv -r 29.97 -acodec libfaac -ab 112k -ac 2 -s 640x480 -vcodec libx264 -vpre hq -vpre ipod640 -crf 21 -bt 256k -aspect 4:3 -f ipod /home/tester/video.m4v
FFmpeg version SVN-r20130, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  built on Oct 1 2009 23:02:32 with gcc 4.3.4
  configuration: --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libtheora --enable-libdc1394 --enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger --disable-encoder=libschroedinger --enable-avfilter-lavf --enable-libopenjpeg --enable-version3 --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
  libavutil 50. 3. 0 / 50. 3. 0
  libavcodec 52.36. 0 / 52.37. 0
  libavformat 52.39. 0 / 52.39. 0
  libavdevice 52. 2. 0 / 52. 2. 0
  libavfilter 0. 5. 0 / 0. 5. 0
  libswscale 0. 7. 1 / 0. 7. 1
  libpostproc 51. 2. 0 / 51. 2. 0

Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.97 (30000/1001)
Input #0, flv, from '/mnt/DATA/Videos/test.flv':
  Duration: 00:05:17.28, start: 0.000000, bitrate: 260 kb/s
    Stream #0.0: Video: flv, yuv420p, 320x214, 260 kb/s, 29.97 tbr, 1k tbn, 1k tbc
    Stream #0.1: Audio: mp3, 22050 Hz, 1 channels, s16
  Metadata
    duration : 317
    starttime : 0
    totalduration : 317
    width : 320
    height : 214
    videodatarate : 254
    a...

Read more...

Revision history for this message
Jonathan Thomas (jonoomph) wrote :
Download full text (6.4 KiB)

Let's try this. Let's see if the MLT command line (melt) can correctly
encode video as h.264. Here is an example command:

$ melt -verbose -profile dv_pal_wide
*/home/jonathan/Desktop/example.avi*-consumer avformat:
*/home/jonathan/Desktop/example.mp4* acodec=mpeg2 ab=128k ar=44100 f=mp4
vcodec=libx264 minrate=0 b=900k

Let me know if this works. Hopefully this will give us some clue to what's
going on.

Thanks,
-Jonathan

On Mon, Nov 2, 2009 at 12:20 PM, GMaq <email address hidden> wrote:

> OK,
>
> I can't speak for the other subscribers but here is the license from my
> build which clearly contains libx264:
>
> tester@av3mobile:~$ ffmpeg -L
> FFmpeg version SVN-r20130, Copyright (c) 2000-2009 Fabrice Bellard, et al.
> built on Oct 1 2009 23:02:32 with gcc 4.3.4
> configuration: --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc'
> --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad
> --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid
> --enable-postproc --enable-x11grab --enable-libgsm
> --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264
> --enable-libtheora --enable-libdc1394 --enable-libspeex --enable-nonfree
> --disable-stripping --enable-avfilter --enable-libdirac
> --disable-decoder=libdirac --enable-libschroedinger
> --disable-encoder=libschroedinger --enable-avfilter-lavf
> --enable-libopenjpeg --enable-version3 --disable-altivec --disable-armv5te
> --disable-armv6 --disable-vis
> libavutil 50. 3. 0 / 50. 3. 0
> libavcodec 52.36. 0 / 52.37. 0
> libavformat 52.39. 0 / 52.39. 0
> libavdevice 52. 2. 0 / 52. 2. 0
> libavfilter 0. 5. 0 / 0. 5. 0
> libswscale 0. 7. 1 / 0. 7. 1
> libpostproc 51. 2. 0 / 51. 2. 0
> This version of FFmpeg has nonfree parts compiled in.
> Therefore it is not legally redistributable.
> tester@av3mobile:~$
>
>
> Also here is the output of ffmpeg running a successful x264 conversion from
> an iPod WinFF preset:
>
>
> tester@av3mobile:~$ ffmpeg -i /mnt/DATA/Videos/test.flv -r 29.97 -acodec
> libfaac -ab 112k -ac 2 -s 640x480 -vcodec libx264 -vpre hq -vpre ipod640
> -crf 21 -bt 256k -aspect 4:3 -f ipod /home/tester/video.m4v
> FFmpeg version SVN-r20130, Copyright (c) 2000-2009 Fabrice Bellard, et al.
> built on Oct 1 2009 23:02:32 with gcc 4.3.4
> configuration: --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc'
> --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad
> --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid
> --enable-postproc --enable-x11grab --enable-libgsm
> --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264
> --enable-libtheora --enable-libdc1394 --enable-libspeex --enable-nonfree
> --disable-stripping --enable-avfilter --enable-libdirac
> --disable-decoder=libdirac --enable-libschroedinger
> --disable-encoder=libschroedinger --enable-avfilter-lavf
> --enable-libopenjpeg --enable-version3 --disable-altivec --disable-armv5te
> --disable-armv6 --disable-vis
> libavutil 50. 3. 0 / 50. 3. 0
> libavcodec 52.36. 0 / 52.37. 0
> libavformat 52.39. 0 / 52.39. 0
> libavdevice 52. 2. 0 / 52. 2. 0
> libavfilter 0. 5. 0 / 0. 5. 0
> libswsca...

Read more...

Revision history for this message
GMaq (info-bandshed) wrote :
Download full text (7.1 KiB)

OK

Firstly thanks for your attention on this, it is truly appreciated. I am very much looking forward to featuring your hard work in the upcoming release of AV Linux 3.0 coming out by the end of November, I know I personally will use x264 export all the time and am very much looking forward to hopefully assisting you in resolving it.

I am using mlt 0.4.6, I'm not sure if the CLI syntax has changed or not. but I'm not having a lot luck so far, here's the output:

tester@av3dev:~$ melt -verbose -profile dv_pal_wide
Usage: melt [options] [producer [name=value]* ]+
Options:
  -attach filter[:arg] [name=value]* Attach a filter to the output
  -attach-cut filter[:arg] [name=value]* Attach a filter to a cut
  -attach-track filter[:arg] [name=value]* Attach a filter to a track
  -attach-clip filter[:arg] [name=value]* Attach a filter to a producer
  -audio-track | -hide-video Add an audio-only track
  -blank frames Add blank silence to a track
  -consumer id[:arg] [name=value]* Set the consumer (sink)
  -debug Set the logging level to debug
  -filter filter[:arg] [name=value]* Add a filter to the current track
  -group [name=value]* Apply properties repeatedly
  -help Show this message
  -join clips Join multiple clips into one cut
  -mix length Add a mix between the last two cuts
  -mixer transition Add a transition to the mix
  -null-track | -hide-track Add a hidden track
  -profile name Set the processing settings
  -progress Display progress along with position
  -remove Remove the most recent cut
  -repeat times Repeat the last cut
  -query List all of the registered services
  -query "consumers" | "consumer"=id List consumers or show info about one
  -query "filters" | "filter"=id List filters or show info about one
  -query "producers" | "producer"=id List producers or show info about one
  -query "transitions" | "transition"=id List transitions, show info about one
  -serialise [filename] Write the commands to a text file
  -silent Do not display position/transport
  -split relative-frame Split the last cut into two cuts
  -swap Rearrange the last two cuts
  -track Add a track
  -transition id[:arg] [name=value]* Add a transition
  -verbose Set the logging level to verbose
  -version Show the version and copyright
  -video-track | -hide-audio Add a video-only track
For more help: <http://www.mltframework.org/>
tester@av3dev:~$

Not sure if that is what you are looking for there, next command:

tester@av3dev:~$ melt /home/tester/test.avi* -consumer avformat:
+-----+ +-----+ +-----+ +-----+ +-----+ +----...

Read more...

Revision history for this message
GMaq (info-bandshed) wrote :

Ooops... if all else fails RTFM!

Apparently the melt CLI syntax has vastly changed from what you originally asked me to input, sorry for the previous post you may want to delete it, here is the updated terminal output:

NOTE: Executing this command now opens a playback window, the output is from the end of the file in both cases.

tester@av3dev:~$ melt -avformat: /home/tester/test.avi+-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+
|1=-10| |2= -5| |3= -2| |4= -1| |5= 0| |6= 1| |7= 2| |8= 5| |9= 10|
+-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+
+---------------------------------------------------------------------+
| H = back 1 minute, L = forward 1 minute |
| h = previous frame, l = next frame |
| g = start of clip, j = next clip, k = previous clip |
| 0 = restart, q = quit, space = play |
+---------------------------------------------------------------------+
Current Position: 9921

Output from the second command:

tester@av3dev:~$ melt -avformat: /home/tester/test.avi acodec=libfaac ab=128k f=mp4 vcodec=libx264 minrate=0 b=900k
+-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+
|1=-10| |2= -5| |3= -2| |4= -1| |5= 0| |6= 1| |7= 2| |8= 5| |9= 10|
+-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+
+---------------------------------------------------------------------+
| H = back 1 minute, L = forward 1 minute |
| h = previous frame, l = next frame |
| g = start of clip, j = next clip, k = previous clip |
| 0 = restart, q = quit, space = play |
+---------------------------------------------------------------------+
Current Position: 9921

Revision history for this message
GMaq (info-bandshed) wrote :

Jonathan,

I apologize for my hasty assumption that there was an error in your command, I should have known better. I didn't realize it was intended to be one contiguous command, however I've tried slicing it up several different ways based on your example but I'm getting nowhere. Can you see by this example where I'm going wrong?

Sorry about the 2 previous confused and confusing posts.

tester@av3dev:~$ melt -verbose -profile dv_pal_wide*/home/tester/test.avi* -consumer avformat:*/home/tester/test.mp4* acodec=mpeg2 ab=128k ar=44100 f=mp4 vcodec=libx264 minrate=0 b=900k
Usage: melt [options] [producer [name=value]* ]+
Options:
  -attach filter[:arg] [name=value]* Attach a filter to the output
  -attach-cut filter[:arg] [name=value]* Attach a filter to a cut
  -attach-track filter[:arg] [name=value]* Attach a filter to a track
  -attach-clip filter[:arg] [name=value]* Attach a filter to a producer
  -audio-track | -hide-video Add an audio-only track
  -blank frames Add blank silence to a track
  -consumer id[:arg] [name=value]* Set the consumer (sink)
  -debug Set the logging level to debug
  -filter filter[:arg] [name=value]* Add a filter to the current track
  -group [name=value]* Apply properties repeatedly
  -help Show this message
  -join clips Join multiple clips into one cut
  -mix length Add a mix between the last two cuts
  -mixer transition Add a transition to the mix
  -null-track | -hide-track Add a hidden track
  -profile name Set the processing settings
  -progress Display progress along with position
  -remove Remove the most recent cut
  -repeat times Repeat the last cut
  -query List all of the registered services
  -query "consumers" | "consumer"=id List consumers or show info about one
  -query "filters" | "filter"=id List filters or show info about one
  -query "producers" | "producer"=id List producers or show info about one
  -query "transitions" | "transition"=id List transitions, show info about one
  -serialise [filename] Write the commands to a text file
  -silent Do not display position/transport
  -split relative-frame Split the last cut into two cuts
  -swap Rearrange the last two cuts
  -track Add a track
  -transition id[:arg] [name=value]* Add a transition
  -verbose Set the logging level to verbose
  -version Show the version and copyright
  -video-track | -hide-audio Add a video-only track
For more help: <http://www.mltframework.org/>
tester@av3dev:~$

Revision history for this message
Helen McCall (wildnfree) wrote :

Hello GMaq

You are using an invalid audio codec for the video codec you are using.

H.264 only valid if with audio codec ac3 or better is aac

Try audio codec libfaac

Helen

Revision history for this message
Jonathan Thomas (jonoomph) wrote :

Sorry, apparently I bolded some of the words for emphasis (in my email), and LaunchPad replaced it with asterisks... thus destroying the syntax of the command. Try this command:

$ melt -verbose -profile dv_pal_wide /home/jonathan/Desktop/example.avi -consumer avformat:/home/jonathan/Desktop/example.mp4 acodec=mpeg2 ab=128k ar=44100 f=mp4 vcodec=libx264 minrate=0 b=900k

Let's try this again. =)

Revision history for this message
GMaq (info-bandshed) wrote :

@ Helen

Thanks for the tip, I had actually tried libfaac several times as well without any luck so after a while I decided not to stray from Jonathans original script as much as possible.

@ Jonathan,

OK, I'm relieved to know I wasn't totally delusional! OK here's what we have now and it looks like we have a culprit. About 3/4 of AV Linux's video apps depend on the Debian libx264 package, this will not be pretty. The "test.mp4" file created by melt displays without video as per the original problem.

Does Openshot have to use melt exclusively for export? Is there a way to frameserve or pipe the output directly to ffmpeg like Cinelerra does? melt doesn't seem to like the builds of ffmpeg/libx264 some subscribers are using but it is unlikely that the distributions in question are going to change their builds for one program especially when they are working properly from the CLI, and as you know building ffmpeg or libx264 for the end user is no trivial task especially when most distros will only stat their own native builds as a dependency when other ffmpeg dependent program's packages are installed (Avidemux, Cinelerra Kino etc etc etc. In my experience if you build your own ffmpeg you have to build your own libx264 and then every ffmpeg program following has to be built from source to work. Is it possible in python or feasible for Openshot to contain a static ffmpeg and libx264 build within it's own folder?

I can only imagine how frustrating this kind of stuff is on your end! Please let me know how I can assist further. Thanks again for your personal attention on this!

-GLEN

tester@av3dev:~$ melt -verbose -profile dv_pal_wide /home/tester/test.avi -consumer avformat:/home/tester/test.mp4 acodec=libfaac ab=128k ar=44100 f=mp4 vcodec=libx264 minrate=0 b=900k
+-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+
|1=-10| |2= -5| |3= -2| |4= -1| |5= 0| |6= 1| |7= 2| |8= 5| |9= 10|
+-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+
+---------------------------------------------------------------------+
| H = back 1 minute, L = forward 1 minute |
| h = previous frame, l = next frame |
| g = start of clip, j = next clip, k = previous clip |
| 0 = restart, q = quit, space = play |
+---------------------------------------------------------------------+
[libx264 @ 0x8a65480]interlace + direct=temporal is not implemented
[libx264 @ 0x8a65480]broken ffmpeg default settings detected
[libx264 @ 0x8a65480]use an encoding preset (vpre)
Current Position: 9921
tester@av3dev:~$

Revision history for this message
GMaq (info-bandshed) wrote :

Hmmm,

It seems to want a 'vpre" switch like the newer ffmpeg builds use, I tried this command with vpre presets based on a WinFF iPod preset and it rendered the test .m4v file but there is still no video!?

tester@av3dev:~$ melt -verbose -profile square_ntsc /home/tester/test.avi -consumer avformat:/home/tester/test.m4v acodec=libfaac ab=128k ac=2 ar=44100 f=ipod vpre=hq vcodec=libx264 vpre=ipod640 aspect=4:3 crf=21 bt=256
+-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+
|1=-10| |2= -5| |3= -2| |4= -1| |5= 0| |6= 1| |7= 2| |8= 5| |9= 10|
+-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+
+---------------------------------------------------------------------+
| H = back 1 minute, L = forward 1 minute |
| h = previous frame, l = next frame |
| g = start of clip, j = next clip, k = previous clip |
| 0 = restart, q = quit, space = play |
+---------------------------------------------------------------------+
[libx264 @ 0x83f1550]broken ffmpeg default settings detected
[libx264 @ 0x83f1550]use an encoding preset (vpre)
Current Position: 11894
tester@av3dev:~$

Revision history for this message
Jonathan Thomas (jonoomph) wrote :
Download full text (3.1 KiB)

Hmmm... This does sound tricky. =) OpenShot doesn't actually use "melt" to
export the video, but we use "libmlt", which is the same library under the
hood in "melt". So, if MLT doesn't work with x264, then it won't work in
OpenShot. This might be a question for the MLT mailing list (
<email address hidden>). I do know you can have a static build of
FFmpeg for MLT, but that would be part of the MLT build process. Sorry I'm
not more help. I've learned alot about MLT over the past year, but I'm no
expert packager. =)

Here is a link to the *MLT Build Tips* page. It has an example of a
./configure command with static FFmpeg.
http://mltframework.org/twiki/bin/view/MLT/BuildTips

Best of luck,
-Jonathan

On Wed, Nov 4, 2009 at 8:43 AM, GMaq <email address hidden> wrote:

> Hmmm,
>
> It seems to want a 'vpre" switch like the newer ffmpeg builds use, I
> tried this command with vpre presets based on a WinFF iPod preset and it
> rendered the test .m4v file but there is still no video!?
>
> tester@av3dev:~$ melt -verbose -profile square_ntsc /home/tester/test.avi
> -consumer avformat:/home/tester/test.m4v acodec=libfaac ab=128k ac=2
> ar=44100 f=ipod vpre=hq vcodec=libx264 vpre=ipod640 aspect=4:3 crf=21 bt=256
> +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+
> |1=-10| |2= -5| |3= -2| |4= -1| |5= 0| |6= 1| |7= 2| |8= 5| |9= 10|
> +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+
> +---------------------------------------------------------------------+
> | H = back 1 minute, L = forward 1 minute |
> | h = previous frame, l = next frame |
> | g = start of clip, j = next clip, k = previous clip |
> | 0 = restart, q = quit, space = play |
> +---------------------------------------------------------------------+
> [libx264 @ 0x83f1550]broken ffmpeg default settings detected
> [libx264 @ 0x83f1550]use an encoding preset (vpre)
> Current Position: 11894
> tester@av3dev:~$
>
> --
> No video on exported image movie as h2.64
> https://bugs.launchpad.net/bugs/457732
> You received this bug notification because you are a member of OpenShot
> Developers, which is subscribed to OpenShot Video Editor.
>
> Status in OpenShot Video Editor: New
>
> Bug description:
> I imported a bunch of images as a sequence, added a title one and an audio
> track. I tried exporting to mp4 h.264 and youtubehd but I always get audio
> without the video.
>
> Here's how my project looks like, seems everything is fine with it:
>
> http://www.ubuntu-pics.de/bild/28163/screenshot_05_tCLAYY.png
> http://www.ubuntu-pics.de/bild/28162/screenshot_02_efdM2f.png
>
> and the preview function does work as I'd expect it to be.
>
> it worked fine with ogg for whatever reason.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openshot.developers<https://launchpad.net/%7Eopenshot.developers>
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~openshot.developers<https://launchpad.net/%7Eopenshot.developers>
> More help : https://help.launchpad...

Read more...

Revision history for this message
GMaq (info-bandshed) wrote :

OK,

I've contacted the mailinglist detailing the issue by paraphrasing my posts here, I will wait to hear back. If a static ffmpeg can be employed is that a change you're willing to make? It would open your app up to virtually any distribution. The whole handling of multimedia apps and libs by Debian and Ubuntu make a strong case for why Linux as a Desktop is doomed unless Debian (and their derivatives like Ubuntu) get their act together. Developers shouldn't have to package and packagers/distributors shouldn't have to fix dependencies for developers. These comments are nor directed at you personally but trying to prepare a pre-packaged multimedia distro for folks from other platforms to try in a user friendly way is so hampered by this "proprietary" type of thinking it is extremely frustrating =(!

Revision history for this message
Vadim Peretokin (vperetokin) wrote : Re: [Bug 457732] Re: No video on exported image movie as h2.64

Well, what you do is use frameworks to fix this issue... ala gstreamer.
Frameworks do everything for you, and everyone can integrate with them
(don't have a codec? no problem! totem can get it for you.)

Revision history for this message
Jonathan Thomas (jonoomph) wrote : Re: [Openshot.developers] [Bug 457732] Re: No video on exported image movie as h2.64

Glen, I've replied to your message on the MLT mailing list... hopefully it
will bump it up in their inbox. I don't know the solution, but we'll see if
someone helps out soon. =)

Thanks,
-Jonathan

On Thu, Nov 5, 2009 at 3:49 PM, Vadim Peretokin <email address hidden>wrote:

> Well, what you do is use frameworks to fix this issue... ala gstreamer.
> Frameworks do everything for you, and everyone can integrate with them
> (don't have a codec? no problem! totem can get it for you.)
>
> --
> No video on exported image movie as h2.64
> https://bugs.launchpad.net/bugs/457732
> You received this bug notification because you are a member of OpenShot
> Developers, which is subscribed to OpenShot Video Editor.
>
> Status in OpenShot Video Editor: New
>
> Bug description:
> I imported a bunch of images as a sequence, added a title one and an audio
> track. I tried exporting to mp4 h.264 and youtubehd but I always get audio
> without the video.
>
> Here's how my project looks like, seems everything is fine with it:
>
> http://www.ubuntu-pics.de/bild/28163/screenshot_05_tCLAYY.png
> http://www.ubuntu-pics.de/bild/28162/screenshot_02_efdM2f.png
>
> and the preview function does work as I'd expect it to be.
>
> it worked fine with ogg for whatever reason.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openshot.developers<https://launchpad.net/%7Eopenshot.developers>
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~openshot.developers<https://launchpad.net/%7Eopenshot.developers>
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Luiz Gonzaga dos Santos Filho (marelox) wrote :

This is also happening to me. Ubuntu 9.10 64bits, Openshot lastest from PPA. Any news / workaround about the MLT / x264 issue? Thanks and congrats for the always-getting-better openshot!

Revision history for this message
GMaq (info-bandshed) wrote :

@Jonathan

I haven't forgotten about this issue, my attention has been needed elsewhere. If you received the same e-mail I did from Dan Dennedy it would appear the only solution is to have your export xmls feed a script from libmlt (or melt) to the x264 encoder to tell it what settings to use instead of relying on the defaults. Unfortunately since Ubuntu is heavily based on Debian Unstable you are going to be encountering this problem in Ubuntu soon enough (perhaps already according to the previous post) not just in Debian.

I am still looking forward to featuring Openshot in AV Linux 3.0 which will hopefully be out by the end of November, I look forward to continued progress in it's development. Despite this x264 issue it is certainly an impressive piece of work and I wish to see it continue!

Revision history for this message
GMaq (info-bandshed) wrote :

@Jonathan,

FWIW if you are interested to know AV Linux 3.0 has been released with Openshot 0.9.54 included, I have made a note on the website that x264 export is not working in Debian but I still think this is a great app which deserves promotion. If you want to link my site as a LiveDVD way to demo Openshot feel free...if not OK too, it's your call.

AV Linux 3.0 release announcement:
http://geekconnection.org/remastersys/forums/index.php?topic=429.0

AV Linux 3.0 website:
http://www.bandshed.net/AVLinux.html

Revision history for this message
Jonathan Thomas (jonoomph) wrote :

Congrats on AV Linux 3.0! I will definitely link to the LiveDVD soon.
Thanks for including OpenShot!
-Jonathan

On Mon, Dec 7, 2009 at 6:35 AM, GMaq <email address hidden> wrote:

> @Jonathan,
>
> FWIW if you are interested to know AV Linux 3.0 has been released with
> Openshot 0.9.54 included, I have made a note on the website that x264
> export is not working in Debian but I still think this is a great app
> which deserves promotion. If you want to link my site as a LiveDVD way
> to demo Openshot feel free...if not OK too, it's your call.
>
> AV Linux 3.0 release announcement:
> http://geekconnection.org/remastersys/forums/index.php?topic=429.0
>
> AV Linux 3.0 website:
> http://www.bandshed.net/AVLinux.html
>
> --
> No video on exported image movie as h2.64
> https://bugs.launchpad.net/bugs/457732
> You received this bug notification because you are a member of OpenShot
> Developers, which is subscribed to OpenShot Video Editor.
>
> Status in OpenShot Video Editor: New
>
> Bug description:
> I imported a bunch of images as a sequence, added a title one and an audio
> track. I tried exporting to mp4 h.264 and youtubehd but I always get audio
> without the video.
>
> Here's how my project looks like, seems everything is fine with it:
>
> http://www.ubuntu-pics.de/bild/28163/screenshot_05_tCLAYY.png
> http://www.ubuntu-pics.de/bild/28162/screenshot_02_efdM2f.png
>
> and the preview function does work as I'd expect it to be.
>
> it worked fine with ogg for whatever reason.
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openshot.developers<https://launchpad.net/%7Eopenshot.developers>
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~openshot.developers<https://launchpad.net/%7Eopenshot.developers>
> More help : https://help.launchpad.net/ListHelp
>

Andy Finch (fincha)
Changed in openshot:
status: New → Confirmed
Revision history for this message
hva (francesco-hermanitosverdes) wrote :

same bug here with the dev version of mlt and fresh ffmpeg and x264

Revision history for this message
hva (francesco-hermanitosverdes) wrote :

maybe this kdenlive bug is related
http://www.kdenlive.org/mantis/view.php?id=1212

Revision history for this message
Jonathan Thomas (jonoomph) wrote :

Just a thought: Are these 2 packages installed? libavformat-extra-52 and libavcodec-extra-52

Revision history for this message
hva (francesco-hermanitosverdes) wrote :
Download full text (3.4 KiB)

In my case I just built ffmpeg and x264 from svn and git repos, and configured apparently well.
this is my ffmpeg configuration:

configuration: --prefix=/usr --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libx264 --enable-libtheora --enable-libdc1394 --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger --disable-encoder=libschroedinger --enable-avfilter-lavf --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3

encoding to h264 with ffmpeg works perfectly well
(e.g. ffmpeg -i INFILE -acodec libfaac -ab 96k -vcodec libx264 -vpre hq -crf 22 -threads 0 OUTFILE.avi gives me a nice video file, with video and audio)

The problem seems to be in MLT, as I can't encode to h264 using melt, even using the suggestions given on mlt mailing list, for example, i tried the following, and the results are always error messages and a file with no video and only audio:

melt -verbose -profile dv_pal_wide INFILE -consumer avformat:OUTFILE acodec=libfaac ab=128k ac=2 ar=44100 f=avi vpre=hq vcodec=libx264 crf=22 bt=256 $(awk '{printf("%s ", $0)}' /usr/share/ffmpeg/libx264-hq.ffpreset)
[libx264 @ 0x81da0d0]interlace + direct=temporal is not implemented
[libx264 @ 0x81da0d0]interlace + weightp is not implemented
[libx264 @ 0x81da0d0]using SAR=64/45
[libx264 @ 0x81da0d0]interlaced (1) > level limit (0)
[libx264 @ 0x81da0d0]using cpu capabilities: MMX2 Cache64
+-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+
|1=-10| |2= -5| |3= -2| |4= -1| |5= 0| |6= 1| |7= 2| |8= 5| |9= 10|
+-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+
+---------------------------------------------------------------------+
| H = back 1 minute, L = forward 1 minute |
| h = previous frame, l = next frame |
| g = start of clip, j = next clip, k = previous clip |
| 0 = restart, q = quit, space = play |
+---------------------------------------------------------------------+
[libx264 @ 0x81da0d0]bitrate tolerance too small, using .01
[libx264 @ 0x81da0d0]profile High, level 5.1
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 2 max_channels 2
[consumer avformat] error with video encode
[consumer avformat] error with video encode
[consumer avformat] error with video encode
[consumer avformat] error with video encode
[consumer avformat] error with video encode
[consumer avformat] error with video encode
[consumer avformat] error with video encode
[consumer avformat] error with video encode
[consumer avformat] error with video encode
[consumer avformat] error with video encode
[consumer avformat] error with video encode
[consumer avformat] error with video encode
[consumer avformat] error with video encode
[consumer avformat] error with video encode
[consumer avformat] error with video encode
[consumer avformat] error with video encode
[consumer avformat] error with video encode
[consumer a...

Read more...

Revision history for this message
hva (francesco-hermanitosverdes) wrote :

seems due to recent changes in ffmpeg api and x264. reported the bug to MTL and they're investigating it

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.