axiomatic-systems / Bento4

Full-featured MP4 format, MPEG DASH, HLS, CMAF SDK and tools
http://www.bento4.com
1.97k stars 479 forks source link

sample_rate Error? #99

Open tekuonline opened 7 years ago

tekuonline commented 7 years ago

I used mp4fragment to generate .mp4 files from .ismv and when i try to use mp4dash, it gives me an error

Processing MP4 file AsterixAndObelix1080-E_230-fragmented.mp4
  found 216292 segments
COMMAND:  ['/Applications/XAMPP/xamppfiles/htdocs/video/bento/utils/../bin/mp4info', '--fast', '--format', 'json', 'AsterixAndObelix1080-E_230-fragmented.mp4']
Traceback (most recent call last):
  File "./../utils/mp4-dash.py", line 1655, in <module>
    main()
  File "./../utils/mp4-dash.py", line 1424, in main
    (audio_sets, video_sets, subtitles_sets, mp4_files) = SelectTracks(options, media_sources)
  File "./../utils/mp4-dash.py", line 878, in SelectTracks
    mp4_file = Mp4File(Options, media_source)
  File "/Applications/XAMPP/xamppfiles/htdocs/video/bento/utils/mp4utils.py", line 502, in __init__
    self.tracks[track['id']] = Mp4Track(self, track)
  File "/Applications/XAMPP/xamppfiles/htdocs/video/bento/utils/mp4utils.py", line 410, in __init__
    self.sample_rate = sample_desc['sample_rate']
KeyError: 'sample_rate' 

Any suggestions?

barbibulle commented 7 years ago

Hi Tek,

I will look into this and followup shortly.

On Wed, Nov 2, 2016 at 11:58 AM, Tek Nepal notifications@github.com wrote:

I used mp4fragment to generate .mp4 files from .ismv and when i try to use mp4dash, it gives me an error Parsing media file 1: AsterixAndObelix1080-E_230-fragmented.mp4 Processing MP4 file AsterixAndObelix1080-E_230-fragmented.mp4 found 216292 segments COMMAND: ['/Applications/XAMPP/xamppfiles/htdocs/video/bento/utils/../bin/mp4info', '--fast', '--format', 'json', 'AsterixAndObelix1080-E_230-fragmented.mp4'] Traceback (most recent call last): File "./../utils/mp4-dash.py", line 1655, in main() File "./../utils/mp4-dash.py", line 1424, in main (audio_sets, video_sets, subtitles_sets, mp4_files) = SelectTracks(options, media_sources) File "./../utils/mp4-dash.py", line 878, in SelectTracks mp4_file = Mp4File(Options, media_source) File "/Applications/XAMPP/ xamppfiles/htdocs/video/bento/utils/mp4utils.py", line 502, in init self.tracks[track['id']] = Mp4Track(self, track) File "/Applications/XAMPP/ xamppfiles/htdocs/video/bento/utils/mp4utils.py", line 410, in init self.sample_rate = sample_desc['sample_rate'] KeyError: 'sample_rate' Any suggestions?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/axiomatic-systems/Bento4/issues/99, or mute the thread https://github.com/notifications/unsubscribe-auth/ACWJjR1U2DEcdHXvMArucRwPHBT50H8wks5q6N1VgaJpZM4Knn1t .

tekuonline commented 7 years ago

@barbibulle Any help would be appreciated.