Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Matterhorn distribute-hls stacktrace
2015-07-28 17:45:16 INFO (AbstractCmdlineEncoderEngine:237) - Executing encoding command: /usr/bin/ffmpeg -i /usr/local/matterhorn/work/opencast/workspace/mediapackage/8677661e-0e40-4585-a94d-6ae8c4af664d/bf058e85-3770-4607-b10e-82b09f4c7bec/filename.mp4 -codec copy -map 0 -bsf h264_mp4toannexb -f segment -segment_list /usr/local/matterhorn/work/opencast/workspace/mediapackage/8677661e-0e40-4585-a94d-6ae8c4af664d/bf058e85-3770-4607-b10e-82b09f4c7bec/filename_b20051ba-dc9c-409b-b62d-6ad46e068dce.m3u8 -segment_time 10 /usr/local/matterhorn/work/opencast/workspace/mediapackage/8677661e-0e40-4585-a94d-6ae8c4af664d/bf058e85-3770-4607-b10e-82b09f4c7bec/filename_b20051ba-dc9c-409b-b62d-6ad46e068dce-%03d.ts
2015-07-28 17:45:16 INFO (AbstractCmdlineEncoderEngine:261) - Video track filename.mp4 successfully encoded using profile 'profile.hls.http'
2015-07-28 17:45:16 WARN (HLSDistributionServiceImpl:269) - Error distributing http://avalon.example.com:18080/files/mediapackage/8677661e-0e40-4585-a94d-6ae8c4af664d/d48ec703-008f-49bc-88f3-74e8ab6a6e8a/filename.mp4
org.opencastproject.distribution.api.DistributionException: Unable to generare HLS segments and playlists for /usr/local/matterhorn/work/opencast/workspace/mediapackage/8677661e-0e40-4585-a94d-6ae8c4af664d/d48ec703-008f-49bc-88f3-74e8ab6a6e8a/filename.mp4 in /var/avalon/hls_streams/8677661e-0e40-4585-a94d-6ae8c4af664d/d48ec703-008f-49bc-88f3-74e8ab6a6e8a
at org.opencastproject.distribution.hls.HLSDistributionServiceImpl.distributeElement(HLSDistributionServiceImpl.java:252)
at org.opencastproject.distribution.hls.HLSDistributionServiceImpl.distribute(HLSDistributionServiceImpl.java:181)
at org.opencastproject.distribution.hls.HLSDistributionServiceImpl.process(HLSDistributionServiceImpl.java:446)
at org.opencastproject.job.api.AbstractJobProducer$JobRunner.call(AbstractJobProducer.java:192)
at org.opencastproject.job.api.AbstractJobProducer$JobRunner.call(AbstractJobProducer.java:157)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.opencastproject.composer.api.EncoderException: Could not rename segment file!
at org.opencastproject.distribution.hls.FFmpegHLSEncoderEngine.relitiviseAndMovePlaylist(FFmpegHLSEncoderEngine.java:82)
at org.opencastproject.distribution.hls.HLSDistributionServiceImpl.distributeElement(HLSDistributionServiceImpl.java:250)
... 8 more
@shfarr

This comment has been minimized.

Copy link

commented Dec 2, 2015

Hi,

Our client experiences this exact same error for any movie uploaded lately. It started suddenly for no reason, or at least I am unaware what the reason is. Do you have any insight for what it could be?

My client uses Linux, I have checked permission, made sure directories are marked executable. Files are uploaded via dropbox, made sure the file is readable and writable for that matter. All the conversion goes fine up to the point where the HLS segments are being generated and the playlist is being created (renamed) at which point fails and I see the exact same error in the logs (the typo is there too: generare instead of generate). To my logic, there are only two reasons a file cannot be renamed: either there is no permission, or there is already a file with that name in the directory, but in this case I cannot pin it on neither.

Any help is appreciated,
Thank you,
Stefan

@jogiraju

This comment has been minimized.

Copy link

commented Aug 27, 2016

Hi,

I also encountered exactly the same problem with audio and video files uploaded to Avalon Media System, installed using Puppet Installation Method on CentOs 6.5 (64 bit OS). I am also very badly in need of some solution to get rid of this error. If you have found a cause and solution for this problem please let me know. "Could not rename segment file!" error probably may be linked to file permission problem in linux as expressed by Stefan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.