Giter Club home page Giter Club logo

Comments (24)

kqyang avatar kqyang commented on July 17, 2024

It means the input is not using a supported format. Can you attach your example.mp4 file?

from shaka-packager.

abhi0001 avatar abhi0001 commented on July 17, 2024

i am not able to attach the mp4 file the mail is bouncing back everytime i am trying to do it

from shaka-packager.

abhi0001 avatar abhi0001 commented on July 17, 2024

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.

kqyang avatar kqyang commented on July 17, 2024

Can you host it somewhere, e.g. upload to google drive and copy the link here?

from shaka-packager.

abhi0001 avatar abhi0001 commented on July 17, 2024

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.

kqyang avatar kqyang commented on July 17, 2024

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.

abhi0001 avatar abhi0001 commented on July 17, 2024

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.

abhi0001 avatar abhi0001 commented on July 17, 2024

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.

kqyang avatar kqyang commented on July 17, 2024

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.

kqyang avatar kqyang commented on July 17, 2024

Limit number of bytes:

xxd -l 500 /media/example.mp4

from shaka-packager.

abhi0001 avatar abhi0001 commented on July 17, 2024

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.

kqyang avatar kqyang commented on July 17, 2024

Can you paste the result of running xxd?

from shaka-packager.

abhi0001 avatar abhi0001 commented on July 17, 2024

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.

abhi0001 avatar abhi0001 commented on July 17, 2024

it is same for all mp4 files ....container not supported

from shaka-packager.

kqyang avatar kqyang commented on July 17, 2024

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.

abhi0001 avatar abhi0001 commented on July 17, 2024

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.

abhi0001 avatar abhi0001 commented on July 17, 2024

previously it was working like charm....y is that

from shaka-packager.

abhi0001 avatar abhi0001 commented on July 17, 2024

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.

kqyang avatar kqyang commented on July 17, 2024

Yes, it should be executed inside the container.

from shaka-packager.

abhi0001 avatar abhi0001 commented on July 17, 2024

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.

abhi0001 avatar abhi0001 commented on July 17, 2024

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.

kqyang avatar kqyang commented on July 17, 2024

So what is the problem earlier? Something wrong with the file path?

from shaka-packager.

abhi0001 avatar abhi0001 commented on July 17, 2024

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.

abhi0001 avatar abhi0001 commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.