Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

melt error #1

Open
tatbag opened this issue Jan 8, 2014 · 11 comments
Open

melt error #1

tatbag opened this issue Jan 8, 2014 · 11 comments
Assignees

Comments

@tatbag
Copy link

tatbag commented Jan 8, 2014

Hi,

I get this when running patero.py

DEBUG:root:Start: /home/ubuntu/mbc-playout/caspa/small.mp4
DEBUG:root:Stage: audio-norm
Running: melt -progress /home/ubuntu/mbc-playout/caspa/small.mp4 -filter sox:ana
lysis -consumer xml:/tmp/tmpteVjhu.mlt video_off=1 all=1
Current Frame: 77, percentage: 46 0
DEBUG:root:Progress: 46.0
Current Frame: 153, percentage: 91 52
DEBUG:root:Progress: 91.0
stderr Current Frame: 166, percentage: 99

DEBUG:root:Progress: 99.0
DEBUG:root:Stage: video-transcode
Running: melt -progress /tmp/tmpteVjhu.mlt -consumer avformat:/home/ubuntu/mbc-p
layout/caspa/small.m4v properties=H.264 strict=experimental progressive=1
stderr Current Frame: 1, percentage: 0
ERROR:root:Error: Melt error

So video isn't added to caspa, what's wrong?

@pardo-bsso
Copy link
Member

Hello @tatbag, could you please run the two melt instances from a commandline? That will give a more detailed log of the error.

Also, this also requires the 'patero' branch of Caspa (that is quite a bit behind master and yet not merged) to properly ingest the transcoded material.

@tatbag
Copy link
Author

tatbag commented Jan 9, 2014

Yes i have patero branch checked out
I run 2 melt commands in terminal, I get this

root@ip-xxx-xxx-xxx-xxx:/home/ubuntu/mbc-playout/mbc-patero# melt -progress /home/
ubuntu/mbc-playout/caspa/small.mp4 -filter sox:analysis -consumer xml:/tmp/tmpdQ
c85Y.mlt video_off=1 all=1
Current Frame: 166, percentage: 99
root@ip-xxx-xxx-xxx-xxx:/home/ubuntu/mbc-playout/mbc-patero# melt -progress /tmp/t
mpdQc85Y.mlt -consumer avformat:/home/ubuntu/mbc-playout/caspa/small.m4v propert
ies=H.264 strict=experimental progressive=1
Segmentation fault 1, percentage: 0

It says "Segmentation fault".
Also I've noticed that there is no "sample.m4v" file in that directory

@pardo-bsso
Copy link
Member

I run 2 melt commands in terminal, I get this
[...]
Segmentation fault 1, percentage: 0

Mmm, that is not good. Where are you installing melt from? Normally we use the latest git version.
Also, on my machine I'm linking to libx264-120 as newer versions from time to time crash.

Could you please send me (either here or in private) your small.mp4 file to test here?

Thanks and best regards.

@ghost ghost assigned pardo-bsso Jan 9, 2014
@tatbag
Copy link
Author

tatbag commented Jan 10, 2014

For melt I've used Build Script from here http://www.mltframework.org/bin/view/MLT/BuildScripts
I have libx264-123:amd64 package on Linux 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2
013 x86_64 x86_64 x86_64 GNU/Linux
And here is small.mp4 https://www.dropbox.com/s/kl877fbl32jb31n/small.mp4
Thanks very much for support!

@pardo-bsso
Copy link
Member

Thanks. I'll look into it today.

@pardo-bsso
Copy link
Member

Well, it works on my machine.
Could you run it under gdb and give us the output of the trace?

@pardo-bsso
Copy link
Member

If you need assistance with that tell me and I'll be more than glad to help.

@tatbag
Copy link
Author

tatbag commented Jan 10, 2014

Ok thanks very much I'll try to do it by myself but it will take some time 'cause I have no experience with GDB :)

Anyways, I've re-installed Melt using github edition, now I get this when running patero.py

DEBUG:root:Start: /home/ubuntu/mbc-playout/caspa/2small.mp4
DEBUG:root:Stage: audio-norm
Running: melt -progress /home/ubuntu/mbc-playout/caspa/2small.mp4 -filter sox:an
alysis -consumer xml:/tmp/tmpK3Y_Na.mlt video_off=1 all=1
stderr Failed to load "/home/ubuntu/mbc-playout/caspa/2small.mp4"
Failed to load "/home/ubuntu/mbc-playout/caspa/2small.mp4"

ERROR:root:Error: Failed to load "/home/ubuntu/mbc-playout/caspa/2small.mp4"
Failed to load "/home/ubuntu/mbc-playout/caspa/2small.mp4"

Is there possibility to remove old files from patero config? Everytime I run it it tries to process old media that i've deleted.

@pardo-bsso
Copy link
Member

Is there possibility to remove old files from patero config? Everytime I run it it tries to process old media that i've deleted.

That's my fault. Cleaning the 'transcode_collection' in Mongo should fix it.

@tatbag
Copy link
Author

tatbag commented Jan 10, 2014

yes db.transcode_queue.remove() fixed it!

@tatbag
Copy link
Author

tatbag commented Jan 13, 2014

Hello,
I've tried to run melt commands from patero.py under gdb, here's what i got

(gdb) run -progress /home/ubuntu/mbc-playout/caspa/small.mp4 -filter sox:analysi
s -consumer xml:/tmp/tmpaiFb55.mlt video_off=1 all=1
Starting program: /usr/local/bin/melt -progress /home/ubuntu/mbc-playout/caspa/s
mall.mp4 -filter sox:analysis -consumer xml:/tmp/tmpaiFb55.mlt video_off=1 all=1
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Failed to load "/home/ubuntu/mbc-playout/caspa/small.mp4"
Failed to load "/home/ubuntu/mbc-playout/caspa/small.mp4"
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
-jack Enable JACK transport synchronization
-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
-query "profiles" | "profile"=id List profiles, show info about one
-query "presets" | "preset"=id List presets, show info about one
-query "formats" List audio/video formats
-query "audio_codecs" List audio codecs
-query "video_codecs" List video codecs
-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/
Inferior 1 (process 17997) exited normally

Even when i run "melt small.mp4" it says "Failed to load "small.mp4""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants