Comments (24)
It means the input is not using a supported format. Can you attach your example.mp4 file?
from shaka-packager.
i am not able to attach the mp4 file the mail is bouncing back everytime i am trying to do it
from shaka-packager.
i downloaded it from youtube ...or any normal mp4 files i am trying to move on with i am still stuck with the above error
from shaka-packager.
Can you host it somewhere, e.g. upload to google drive and copy the link here?
from shaka-packager.
http://en.savefrom.net/#url=http://youtube.com/watch?v=OgJeq4Cwvs4&utm_source=youtube.com&utm_medium=short_domains&utm_campaign=ssyoutube.com
this is the link i downloaded the mp4 from and was trying to deal with
from shaka-packager.
I am not seeing any problem.
Can you run the below two commands and let me know what happens:
packager input=/media/example.mp4 --dump_stream_info
packager input=/edash_packager/src/packager/media/test/data/bear-640x360.mp4 --dump_stream_info
from shaka-packager.
File "/edash_packager/src/packager/media/test/data/bear-640x360.mp4":
Found 2 stream(s).
Stream [0] type: Video
codec_string: avc1.64001e
time_scale: 30000
duration: 82082 (2.7 seconds)
is_encrypted: false
codec: H264
width: 640
height: 360
pixel aspect ratio: 1:1
trick_play_rate: 0
nalu_length_size: 4
Stream [1] type: Audio
codec_string: mp4a.40.2
time_scale: 44100
duration: 121856 (2.8 seconds)
is_encrypted: false
codec: AAC
sample_bits: 16
num_channels: 2
sampling_frequency: 44100
language: und
Packaging completed successfully.
...this is what i got after executing above commands
i need to know whether my mp4 file should be inside the test/data folder for packing properly
from shaka-packager.
i tried copying my mp4 file inside test/data and tried executing the mp4 file but it now shows the following error
root@b966d054799c:/media# packager input=/edash_packager/src/packager/media/test/data/example.mp4 --dump_stream_info
[1209/043249:INFO:demuxer.cc(55)] Initialize Demuxer for file '/edash_packager/src/packager/media/test/data/example.mp4'.
[1209/043249:ERROR:packager_main.cc(250)] Demuxer failed to initialize: 5 (FILE_FAILURE): Cannot open file for reading /edash_packager/src/packager/media/test/data/example.mp4
from shaka-packager.
No, you can put it anywhere.
What happens with the first command?
Can you dump the contents of the file, e.g. using xxd:
xxd /media/example.mp4
from shaka-packager.
Limit number of bytes:
xxd -l 500 /media/example.mp4
from shaka-packager.
this is what i got after executing first command
root@b966d054799c:/media# packager input=/media/example.mp4 --dump_stream_info
[1209/043840:INFO:demuxer.cc(55)] Initialize Demuxer for file '/media/example.mp4'.
[1209/043840:ERROR:demuxer.cc(91)] Not implemented reached in edash_packager::media::Status edash_packager::media::Demuxer::Initialize()
[1209/043840:ERROR:packager_main.cc(250)] Demuxer failed to initialize: 4 (UNIMPLEMENTED): Container not supported.
from shaka-packager.
Can you paste the result of running xxd?
from shaka-packager.
yeah sure...this is it
root@b966d054799c:/media# xxd -l 500 /media/example.mp4
0000000: 0000 0018 6674 7970 6d70 3432 0000 0000 ....ftypmp42....
0000010: 6d70 3432 6d70 3431 0000 7190 6d6f 6f76 mp42mp41..q.moov
0000020: 0000 006c 6d76 6864 0000 0000 d268 b14f ...lmvhd.....h.O
0000030: d268 b14f 0001 5f90 0051 db00 0001 0000 .h.O.._..Q......
0000040: 0100 0000 0000 0000 0000 0000 0001 0000 ................
0000050: 0000 0000 0000 0000 0000 0000 0001 0000 ................
0000060: 0000 0000 0000 0000 0000 0000 4000 0000 ............@...
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0000080: 0000 0000 0000 0000 0000 0003 0000 3add ..............:.
0000090: 7472 616b 0000 005c 746b 6864 0000 0001 trak...\tkhd....
00000a0: d268 b14f d268 b14f 0000 0001 0000 0000 .h.O.h.O........
00000b0: 0051 cae3 0000 0000 0000 0000 0000 0000 .Q..............
00000c0: 0000 0000 0001 0000 0000 0000 0000 0000 ................
00000d0: 0000 0000 0001 0000 0000 0000 0000 0000 ................
00000e0: 0000 0000 4000 0000 03ae 0000 023a 0000 ....@........:..
00000f0: 0000 0024 6564 7473 0000 001c 656c 7374 ...$edts....elst
0000100: 0000 0000 0000 0001 0051 cae3 0000 03e9 .........Q......
0000110: 0001 0000 0000 3a55 6d64 6961 0000 0020 ......:Umdia...
0000120: 6d64 6864 0000 0000 d268 b14f d268 b14f mdhd.....h.O.h.O
0000130: 0000 5dc0 0015 cfb4 15c7 0000 0000 0040 ..]............@
0000140: 6864 6c72 0000 0000 0000 0000 7669 6465 hdlr........vide
0000150: 0000 0000 0000 0000 0000 0000 1f4d 6169 .............Mai
0000160: 6e63 6f6e 6365 7074 2056 6964 656f 204d nconcept Video M
0000170: 6564 6961 2048 616e 646c 6572 0000 39ed edia Handler..9.
0000180: 6d69 6e66 0000 0014 766d 6864 0000 0001 minf....vmhd....
0000190: 0000 0000 0000 0000 0000 0033 6864 6c72 ...........3hdlr
00001a0: 0000 0000 0000 0000 616c 6973 0000 0000 ........alis....
00001b0: 0000 0000 0000 0000 416c 6961 7320 4461 ........Alias Da
00001c0: 7461 2048 616e 646c 6572 0000 0000 2464 ta Handler....$d
00001d0: 696e 6600 0000 1c64 7265 6600 0000 0000 inf....dref.....
00001e0: 0000 0100 0000 0c75 726c 2000 0000 0100 .......url .....
00001f0: 0039 7a73 .9zs
from shaka-packager.
it is same for all mp4 files ....container not supported
from shaka-packager.
Don't know yet why, what packager sees is different to what xxd sees.
Can you edit /edash_packager/src/packager/media/base/demuxer.cc and add the below lines before line 74: container_name_ = DetermineContainer(...)
LOG(INFO) << "Read bytes " << bytes_read;
for (size_t i = 0; i < std::min(bytes_read, 256ul); ++i) {
if ((i % 16) == 0) fprintf(stdout, "\n");
fprintf(stdout, "%02x ", buffer_.get()[i]);
}
Then compile edash-packager and run example.mp4 again:
cd /edash_packager/src
ninja -C out/Release
packager input=/media/example.mp4 --dump_stream_info
from shaka-packager.
now i am trying to run ninja it is not working showing error
OptiPlex-3020:~/edash_packager/src$ ninja
log: warning: no configuration file specified, using default values
log: ninja version 0.1.3 initializing
die: error: must run as root
from shaka-packager.
previously it was working like charm....y is that
from shaka-packager.
and
cd /edash_packager/src
ninja -C out/Release
packager input=/media/example.mp4 --dump_stream_info
should i execute inside container??
from shaka-packager.
Yes, it should be executed inside the container.
from shaka-packager.
thank you very very much for spending your valuable time its working fine ...if i get any more issues while working will ping you hope you dont mind...
from shaka-packager.
i am getting another error while encrypting the file
root@d109c0040b23:/media# packager input=media/example.mp4,stream=video,output=demo/encrypted_sintel.mp4 \
--enable_widevine_encryption
--key_server_url "https://license.uat.widevine.com/cenc/getcontentkey/widevine_test"
--content_id "3031323334353637"
--signer "widevine_test"
--rsa_signing_key_path "widevine_test_private.der"
[1209/062541:ERROR:packager_util.cc(54)] Failed to read from 'widevine_test_private.der'.
from shaka-packager.
So what is the problem earlier? Something wrong with the file path?
from shaka-packager.
i edited the code what you gave for demuxer.cc and it worked fine all steps except the encryption....i got stuck there and wanted to know if i can use that cenc widevine encryption for free or not and if not which encryption with edash packager is best and how to use it some guide for that
from shaka-packager.
i need no services like widevine or any paid service just want to have
video encryption with edash packager i will be providing with the key to
encrypt or might it b generated ........thats why i was looking for the
clear key encryption but i did'nt find any details of encryption other than
using widevine .......will you please tell me how to do the video
encryption without any paid service with edash with the steps cause i saw
edash uses PSSh boxes but no guidelines are on google .............i will
be really gtrful to you if you kindly provide me with such technique for
encryption with the steps how to use with the edash packager
On Wed, Dec 9, 2015 at 1:09 PM, Kongqun Yang [email protected]
wrote:
So what is the problem earlier? Something wrong with the file path?
—
Reply to this email directly or view it on GitHub
#53 (comment)
.
from shaka-packager.
Related Issues (20)
- Unable to run executable via NPM module on Apple Silicon (even with Rosetta 2 enabled) HOT 1
- ShakaPackager v3 doesn't generate <BaseURL> in MPEG-DASH manifest so that ShakaPlayer cannot play video completely.
- demux error HOT 2
- Packager fails to copy tmp files into place once its done when using a container volume + sshfs mount HOT 8
- Error building shaka packager in windows 10 HOT 2
- NALU length exceeds stream size HOT 2
- error: generic:18 Failed to write playlist HOT 3
- Shaka packager design in document HOT 3
- `ninja -C build pssh-box.py` not working HOT 5
- Packager Adaptation Set Switching values point to representation IDs instead of Adaptation Set IDs. HOT 1
- Error when using long path in input/output (Windows) HOT 4
- Shaka-packager's subtitle output and timing is broken for real-time flows when the input has "gaps/periods" without subtitle streams. HOT 3
- Packager Adaptation Set Switching doesn't work with forced command-line ordering HOT 1
- [DASH] Add content steering support.
- audioSamplingRate in representation is "0" for high sample rates HOT 2
- helpxml removed? HOT 1
- Macro DISALLOW_COPY_AND_ASSIGN include/file.h HOT 5
- For Packaging webm to mpd i am getting (MUXER_FAILURE): Error adding sample to segment: Cluster::AddFrame failed
- Packager doesn't work with macOS Big Sur 11.6 HOT 3
- Local/ Downloaded encrypted videos using Shaka Packager doesn't work on iOS.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shaka-packager.