lord_of_cinder Posted October 1, 2022 Share Posted October 1, 2022 I followed this guide https://resources.antmedia.io/docs/user-defined-scripts. I use this file https://github.com/ant-media/Scripts/blob/master/vod_transcode.sh to convert mp4 files to hls, but when I upload vod mp4 file, I don't get any m3u8 files. And when I run it manually I get the following errors: and My setting file red5-web.properties #Sat Oct 01 01:31:28 GMT 2022 settings.dataChannelPlayerDistrubution=all db.app.name=LiveApp settings.s3AccessKey= settings.endpoint.healthCheckPeriodMs=2000 settings.webRTCFrameRate=30 settings.enableTimeTokenForPlay=false settings.dash.llEnabled=true settings.vodFolder= settings.webRTCEnabled=true settings.jwtControlEnabled=false settings.h265Enabled=false settings.dataChannelEnabled=false settings.objectDetectionEnabled=false settings.h264Enabled=true db.name=liveapp settings.stalkerDBServer= settings.stalkerDBPassword= settings.dashMuxingEnabled=false settings.dash.hlsEnabled=false webapp.virtualHosts=* settings.hashControlPlayEnabled=false webapp.contextPath=/LiveApp settings.webrtc.portRangeMin=50000 settings.playTokenControlEnabled=false settings.publishTokenControlEnabled=false settings.vp8Enabled=false settings.s3StorageClass=\ STANDARD settings.uploadExtensionsToS3=7 settings.hlsflags= settings.s3BucketName= settings.stalkerDBUsername= settings.allowedPublisherCIDR= settings.playJwtControlEnabled=false settings.webhookAuthenticateURL= webapp.dbName=liveapp.db settings.rtspTimeoutDurationMs=5000 settings.hlsTime=2 settings.acceptOnlyStreamsInDataStore=false settings.webrtc.portRangeMax=60000 settings.previewGenerate=false settings.tokenControlEnabled=false db.type=mapdb settings.endpoint.republishLimit=3 db.password= settings.forceAspectRationInTranscoding=false settings.deleteHLSFilesOnEnded=false settings.dash.llHlsEnabled=false settings.encoderSettingsString=[{"videoBitrate"\:500000,"forceEncode"\:true,"audioBitrate"\:32000,"height"\:240},{"videoBitrate"\:2000000,"forceEncode"\:true,"audioBitrate"\:256000,"height"\:1080}] settings.addDateTimeToMp4FileName=true settings.vodUploadFinishScript= settings.listenerHookURL= settings.hlsListSize=5 settings.streamFetcherRestartPeriod=0 settings.hlsEncryptionKeyInfoFile= db.user= settings.s3Endpoint= settings.timeTokenSubscriberOnly=false settings.hlsPlayListType=vod settings.deleteDASHFilesOnEnded=true settings.publishJwtControlEnabled=false settings.jwtSecretKey= settings.s3SecretKey= settings.enableTimeTokenForPublish=false settings.hlsMuxingEnabled=true settings.mp4MuxingEnabled=false settings.maxResolutionAccept=0 tokenHashSecret= settings.replaceCandidateAddrWithServerAddr=false settings.jwtStreamSecretKey= settings.webMMuxingEnabled=false settings.remoteAllowedCIDR=127.0.0.1 settings.createPreviewPeriod=5000 settings.ipFilterEnabled=false settings.s3RegionName= settings.previewOverwrite=false settings.s3RecordingEnabled=false db.host=localhost settings.s3Permission=public-read settings.hashControlPublishEnabled=false settings.vodUploadFinishScript=/usr/local/antmedia/webapps/LiveApp/WEB-INF/scripts/vod_transcode.sh Link to comment Share on other sites More sharing options...
0 Yash Posted October 1, 2022 Share Posted October 1, 2022 Hi @lord_of_cinder I hope you are fine. It appears that there is a problem with the mapping of the audio stream. Could you please check whether the mp4 file contains audio? For reference please take a look at this stackoverflow post. Also please check out the following link to use vodUploadFinishScript:https://stackoverflow.com/questions/72606811/how-to-transcode-the-uploaded-vod-files-and-play-them-as-hls-in-ant-media-server Link to comment Share on other sites More sharing options...
Question
lord_of_cinder
I followed this guide https://resources.antmedia.io/docs/user-defined-scripts. I use this file https://github.com/ant-media/Scripts/blob/master/vod_transcode.sh to convert mp4 files to hls, but when I upload vod mp4 file, I don't get any m3u8 files. And when I run it manually I get the following errors:
and
My setting file red5-web.properties
#Sat Oct 01 01:31:28 GMT 2022 settings.dataChannelPlayerDistrubution=all db.app.name=LiveApp settings.s3AccessKey= settings.endpoint.healthCheckPeriodMs=2000 settings.webRTCFrameRate=30 settings.enableTimeTokenForPlay=false settings.dash.llEnabled=true settings.vodFolder= settings.webRTCEnabled=true settings.jwtControlEnabled=false settings.h265Enabled=false settings.dataChannelEnabled=false settings.objectDetectionEnabled=false settings.h264Enabled=true db.name=liveapp settings.stalkerDBServer= settings.stalkerDBPassword= settings.dashMuxingEnabled=false settings.dash.hlsEnabled=false webapp.virtualHosts=* settings.hashControlPlayEnabled=false webapp.contextPath=/LiveApp settings.webrtc.portRangeMin=50000 settings.playTokenControlEnabled=false settings.publishTokenControlEnabled=false settings.vp8Enabled=false settings.s3StorageClass=\ STANDARD settings.uploadExtensionsToS3=7 settings.hlsflags= settings.s3BucketName= settings.stalkerDBUsername= settings.allowedPublisherCIDR= settings.playJwtControlEnabled=false settings.webhookAuthenticateURL= webapp.dbName=liveapp.db settings.rtspTimeoutDurationMs=5000 settings.hlsTime=2 settings.acceptOnlyStreamsInDataStore=false settings.webrtc.portRangeMax=60000 settings.previewGenerate=false settings.tokenControlEnabled=false db.type=mapdb settings.endpoint.republishLimit=3 db.password= settings.forceAspectRationInTranscoding=false settings.deleteHLSFilesOnEnded=false settings.dash.llHlsEnabled=false settings.encoderSettingsString=[{"videoBitrate"\:500000,"forceEncode"\:true,"audioBitrate"\:32000,"height"\:240},{"videoBitrate"\:2000000,"forceEncode"\:true,"audioBitrate"\:256000,"height"\:1080}] settings.addDateTimeToMp4FileName=true settings.vodUploadFinishScript= settings.listenerHookURL= settings.hlsListSize=5 settings.streamFetcherRestartPeriod=0 settings.hlsEncryptionKeyInfoFile= db.user= settings.s3Endpoint= settings.timeTokenSubscriberOnly=false settings.hlsPlayListType=vod settings.deleteDASHFilesOnEnded=true settings.publishJwtControlEnabled=false settings.jwtSecretKey= settings.s3SecretKey= settings.enableTimeTokenForPublish=false settings.hlsMuxingEnabled=true settings.mp4MuxingEnabled=false settings.maxResolutionAccept=0 tokenHashSecret= settings.replaceCandidateAddrWithServerAddr=false settings.jwtStreamSecretKey= settings.webMMuxingEnabled=false settings.remoteAllowedCIDR=127.0.0.1 settings.createPreviewPeriod=5000 settings.ipFilterEnabled=false settings.s3RegionName= settings.previewOverwrite=false settings.s3RecordingEnabled=false db.host=localhost settings.s3Permission=public-read settings.hashControlPublishEnabled=false settings.vodUploadFinishScript=/usr/local/antmedia/webapps/LiveApp/WEB-INF/scripts/vod_transcode.sh
Link to comment
Share on other sites
Top Posters For This Question
1
1
Popular Days
Oct 1
2
Top Posters For This Question
Yash 1 post
lord_of_cinder 1 post
Popular Days
Oct 1 2022
2 posts
Posted Images
1 answer to this question
Recommended Posts